ltchiptool-v4.11.1.exe triggers MCAfee Virus threat ti!EBCF3BF55DBF - 4.11.0 does not trigger

ltchiptool-v4.11.1.exe triggers MCAfee Virus threat ti!EBCF3BF55DBF
No problems with  ltchiptool-v4.11.0.exe

See #10. TL;DR: antivirus false-positives are just random. If you're worried about your PC getting infected, please use the Python version (pip install ltchiptool[gui]).


Widgets underneath ConfirmationDialog aren't properly getting events when it opens

To reproduce

Add a button and an invisible confirmation dialog that will overlap the button. Pressing the button opens the dialog.
Press the button, putting it in a pressed state, then a hovered state.
When you move your mouse, the pressed button won't return to the normal state.

What should it do
When you press the button and the dialog starts blocking it, it should immediately get told that the mouse is no longer hovering it. The button behind the dialog end up in a normal state.

Should be fixed


proxy: add NO_PROXY to /etc/environment

Signed-off-by: Christian Berendt<EMAIL_ADDRESS>

We had just tested this at Dataport. Only with no_proxy you could not reach the internal APIs. After we have added NO_PROYX additionally manually it worked.

hmm, o.k.

I also found it strange . But if it helps...


refactor is_already_locked and add better test coverage

Simplify the is_already_locked code and make sure
that we're testing that code better.
The test are more explicit around blocks by username and ip to be able to catch regression bugs better.
closes #20

The builds are failing on travis ci but not on my local box (using redis). I will try to figure out what is going on.

Coverage increased (+0.01%) when pulling 351148b239f743136795618162b6675607f61b1f on marcusmartins:better_test_coverage into a0d94d5220167f35cc13bd7334287b5d85e45fb1 on kencochrane:master.

Coverage increased (+0.01%) when pulling 103e29a437acda0b68660a5131b6c2ee6bafdeab on marcusmartins:better_test_coverage into a0d94d5220167f35cc13bd7334287b5d85e45fb1 on kencochrane:master.

LGTM


Formulae not retained on export

When a worksheet has cells with valid .f properties (formula), the value is not retained during exporting to XLSX format via:
var workbook = workbook = Xlsx.readFile('OnDemand.xlsx', {
    cellFormula: true,
    cellStyles: true,
    sheetStubs: true,
    cellNF: true,
    bookDeps: true
});
var out = Xlsx.write( workbook, { bookType: 'xlsx', /*bookSST: true,*/ type: 'binary' });

I need to support such functionality for the modification of templated workbooks.  For example, the template has a cell, Q16 with the formula =IF(ISERROR((N16*M16*R16)/101.8),0,((N16*M16*R16)/101.8)).  When output via the above code, the value "0" is produced instead.
No formula information is retained, and the cell is a "General" cell of value "0".  Is there a workaround or solution to this?

@florf
Sorry for the bump, but I just wanted to know if you ever found a solution to this problem. I have cells with valid .f properties that won't write, rather they just show up as empty boxes. If you found a work-around or solution, I'd really appreciate it if you could share.
Thanks!

Bumping this issue.
According to the docs: "The raw data is the only thing guaranteed to be saved. Formulae, formatting, and other niceties may not be serialized (pending CSF standardization)"
Is there any word on progress for this topic? Has anyone found a workaround?

The formula situation is not as simple as it seems.  In general, when considering any feature, we should always try to understand the full scope of the problem first.
A1-style versus RC-style references
Most people are familiar with the A-1 style, but the RC style has a few cool benefits.  Let's say you want to keep a running total in a separate column.  One common approach is to write formulae like B2=A2+B1, B3=A3+B2, ....  Now you are forced to write different things in different cells.  In the RC form, they are all the same formula: =RC[-1]+R[-1]C.  This gives rise to the so-called "shared formula" storage (see [MS-XLS] 2.4.260 ShrFmla)
Array formula
Unlike shared formulae, array formulae change the formula semantics and oftentimes apply to ranges of cells.  In a context where a scalar is expected (e.g. COS), non-array formulae will implicitly slice a column to find the corresponding cell.
For example, consider a worksheet with A1=1, A2=2, A3=3, A4=4, A5=5.  Thanks to the intersection rule, setting C2 to the formula =SUM(A1:A5*A1:A5) will give you 4 (A2A2=4) and setting B4 to that formula will give you 16 (A4A4 = 16).  If you enter the formula and hit control-shift-enter, you will see the formula as {=SUM(A1:A5*A1:A5)} and the value is 55.
File representation
This process would be much easier if there were one representation shared by the various Excel formats.  That is not the case:

XLSX stores raw A1-reference formula strings
XLSB stores a parsed representation (a set of tokens which roughly matches how Excel internally parses formulae)
XLS stores a slightly different parsed representation
SpreadsheetML stores the formulas using RC-reference notation -- there's a small regex operation involved in converting from RC to A1
CSV has some special rules for determining whether a cell encodes an A1-reference formula or if it should be treated as literal data.

Fortunately, the test suite has files in various formats so we can compare the representations.
Requirements
A "standardized solution" consists of:
A) A standard formula representation for simple single-cell formula
This boils down to deciding between A1-style and RC-style formula references.
B) A standard formula representation for multi-cell array formulae
This is not as straightforward since it requires some sort of worksheet-level storage.  Slicing the formula is problematic as it loses information that you will need to perform certain operations.
C) A set of utility functions for converting back and forth between various representations
@tinotruppel and others have looked into this problem.  The formula stress test has some fun corner cases to consider.  Note that once this is done, actually writing the formulae in XLSX is super simple.
D) A set of utility functions for linting worksheets (for example, verifying that a simple formula does not intersect an array formula)
This is pretty straightforward once we decide on the representation.

@SheetJSDev Thank you for the background info. Is there a forum for discussing the representation options/timeline for making the decision?

@SheetJSDev @tinotruppel Since the .xlsx format seems to be the simplest to implement, I vote adding that functionality first. js-xlsx is the name of the library after all. I think most developers would understand if other formats aren't supported right away.
Can we specify which representation to use in the options object passed to the XLSX.write method? It looks like line 350 of /bits/68_wsbin.js is what I'm looking for to do the job but I'm not sure. Please let me know if I can help code for the repo or if there is something I can add in a personal fork to get basic string formulae writing out.
Thank you!

@ryangallen @SheetJSDev A workaround for writing functions to xslx would be great! Should be the big deal with your knowledge, it would be very kind of you, if you could give us some hint.
Thank you!

@florf @aravindkoneru @ryangallen if, like me, you still need this feature, I have a patch that works for me:
https://github.com/mcsf/js-xlsx/commit/d43964564d2d455271a9348f904fe2c34e5b1a59

@mcsf Thanks for the patch! It works great for me.

@mcsf thanks, it works!

@mcsf would the below formula work with the changes you made?
{ t: 'n', f: '=SUMIF(B2:B2, ">="&B2,D2:D2)' }

I was looking through the code it formats the above like so
<f>=SUMIF(B2:B2, ">="&B2,D2:D2)</f>

Not sure what the format should be for the xml or where the documentation on that might be.
When I create excel document and save it as xml I get
7820864.7891291287
Again not certain what format it should be.

Hey @mdumouchel — I'm not sure what the question is. Special characters have to be escaped with predefined XML entities whenever any bits are added to the document.
As for the output discrepancies between xlsx and Excel, you'll notice that Excel is preferring RC-style references over A1-style. As to why Excel is seemingly not escaping things like ampersands, I have no answer.

Again not certain what format it should be.

The important question is really whether <f>=SUMIF(B2:B2, ">="&B2,D2:D2)</f> actually works for you once you open your document with Libre/Excel.

After reviewing it again and playing around with formatting found it was error in !ref and the cell was out of range.  Since that was only thing I wasn't seeing I thought had something to do with the formula.
Thanks for the fast reply and the patch!

Thanks for the patch @mcsf  :+1:

Has this made it back into the repo?  Is still the plan to get this back into the main repo is this forever forked?

Could someone merge this change back into the main branch since it's required to save formulas?

any update on when formulas will be supported or at least the xlsx patch from @mcsf will be merged?

  For array formulae, set the topleft corner cell's F key to the array formula range.  This works for range as well as point array formulae.
We updated the write test with an example


Ensure unicode support for geounit names in input data

Geounit names are retrieved from shapefiles or DBF files. These are encoded in whatever encoding the shapefile is encoded as. Typically, this encoding may be represented in UTF, so I believe we already accomodate all encodings of geounit names in input data.


fix: incorrect content hash

I have the same issue with #3615  , so I tried to solve it.
The current logic:
Uses the loaderUtils.interpolateName method to generate the filename, and then passed it to AddWorkerEntryPointPlugin and its internal SingleEntryPlugin.
The problem:
The generated filename only depends on the content of the worker's entry file, but does not consider changes in the content of the referenced dependency files
My changes:

passes the filename template directly to SingleEntryPlugin, allowing webpack to handle the hash logic.

since the contenthash can only be determined after the webpack assets optimization phase, some logic needs to be changed to be asynchronous:
2.1. The loader has been changed to be asynchronous.
2.2. A task is created for each childCompiler. The final filename for each worker is collected in the afterOptimizeAssets phase of the childCompilation, and then invoke task's resolve method.
2.3.  When all tasks are resolved, the loader calls the callback and writes the collected filenames to editor.main.js.

@chenchen32 please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
@microsoft-github-policy-service agree [company="{your company}"]

Options:

(default - no company specified) I have sole ownership of intellectual property rights to my Submissions and I am not making Submissions in the course of work for my employer.

@microsoft-github-policy-service agree

(when company given) I am making Submissions in the course of work for my employer (or my employer has intellectual property rights in my Submissions by contract or applicable law). I have permission from my employer to make Submissions and enter into this Agreement on behalf of my employer. By signing below, the defined term “You” includes me and my employer.

@microsoft-github-policy-service agree company="Microsoft"

Contributor License Agreement

@chenchen32 please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
@microsoft-github-policy-service agree [company="{your company}"]

Options:

(default - no company specified) I have sole ownership of intellectual property rights to my Submissions and I am not making Submissions in the course of work for my employer.

@microsoft-github-policy-service agree

(when company given) I am making Submissions in the course of work for my employer (or my employer has intellectual property rights in my Submissions by contract or applicable law). I have permission from my employer to make Submissions and enter into this Agreement on behalf of my employer. By signing below, the defined term “You” includes me and my employer.

@microsoft-github-policy-service agree company="Microsoft"

Contributor License Agreement

@microsoft-github-policy-service agree


Mention the underlying linter

As was discussed here: https://github.com/thoughtbot/hound/pull/926

Awesome. Thanks!

:+1:

Merged in https://github.com/thoughtbot/hound-swift/commit/8456806d5665e6064e62a96f78de5cc8712c2b60


Various fixes

Resolves #156
Also: add more Argo info, clarify Argo issue cause

Additional context on the kubeconfig fix: I realized that with a little refactoring, I could make use of @codygreen's kubeconfig bootstrap fix.


Browser support

I am interested in browser support for surfman. The README section about future work states

Support for running in a browser with WebAssembly.

I mainly have a number of questions about this. I have very limited experience with graphics libraries and virtually no experience with surfman, so bear with me if some questions have trivial answers or if the questions don't make sense :)

It seems to me like browser support is still wanted, but nobody is working on it. Would you accept contributions?
There's wgpu which provides a graphics API and that runs in the browser. My naïve understanding is that surfman can “just” wrap wgpu and thereby have browser support. How far off am I? What else is needed?
The background of this issue is that I would like to use webrender to perform rendering in a browser. I imagine that if I can have surfman work in a browser, WR will work there, too. I also don't know a lot about webrender—is there a flaw in this assumption?

So in summary, in a few weeks time, I would like to attempt the following. Please stop me and tell me why that's a bad idea:

add wgpu as a dependency
add a new directory to surfman/src/platform for browser support
implement the same API as the existing platforms as wrappers around wgpu
somehow try to make this thing compile to WASM and run it inside a browser
somehow figure out how to compile WR to WASM and run it inside a browser, too
be able to render a WR display list inside Deno

I tired adding wgpu backend to surfman, but didn't get very far (I didn't have much time). I think that adding wgpu to surfamn shouldn't be that hard, but adding wgpu support would be a big project for itself. It was already attempted before, but with gfx-rs.
Somehow relevant is https://github.com/servo/servo/issues/21320, if we could somehow implement GLES on top of wgpu we get WR, surfman, webgl, ... everything we want. ANGLE already has wgpu (actually uses dawn, but I think wgpu and dawn can both be abstracted with wgpu-native ...) backend: https://github.com/google/angle/tree/main/src/libANGLE/renderer/wgpu

I tired adding wgpu backend to surfman, but didn't get very far (I didn't have much time).

Is this code still public?

I think that adding wgpu to surfamn shouldn't be that hard, but adding wgpu support would be a big project for itself.

What do you mean, it is not that hard but at the same time it is a big project for itself?

Somehow relevant is servo/servo#21320, if we could somehow implement GLES on top of wgpu we get WR, surfman, webgl, ... everything we want. ANGLE already has wgpu (actually uses dawn, but I think wgpu and dawn can both be abstracted with wgpu-native ...) backend: google/angle@main/src/libANGLE/renderer/wgpu

Does that mean that all of these libraries would have to be compiled to WebAssembly? Is that feasible?

Is this code still public?

I think it's lost, I do not have it on my machine nor my fork, but it was nothing so no real loss.

What do you mean, it is not that hard but at the same time it is a big project for itself?

Hard IMO.

I imagine that if I can have surfman work in a browser, WR will work there, too. I also don't know a lot about webrender—is there a flaw in this assumption?

I think that would not work like like that. Surfman only manages surfaces. WebRender does not depend on surfman to access GPU, it uses gleam to access OpenGL I think.
Here is fork that has done gfx-rs work: https://github.com/szeged/webrender and they were paid by mozilla IIRC.

Does that mean that all of these libraries would have to be compiled to WebAssembly?

Not necessarily, you just need to link "gl-wgpu" with it. Something similar was done for vulkan: https://github.com/gfx-rs/portability.

I think that would not work like like that. Surfman only manages surfaces. WebRender does not depend on surfman to access GPU, it uses gleam to access OpenGL I think.

Oh alright. I guess then the scope of this is very different from what I assumed (which is not surprising). Thanks for explaining! <3


NFS File shares duplicate the folder contents with every refresh

Describe the bug
When navigating an nfs share via windows 10 it seems to add a file to the list every time it refreshes regardless of already being shown... this means that duplicates appear if you hit f5 or navigate away and back to a folder.
To Reproduce
Steps to reproduce the behavior:

Go to an nfs mounted share via a letter.
Press f5 to show the contents of the folder more than once.

Expected behavior
either merge the contents from the last time the nfs server returned the folder contents with the existing list or replace it entirely. only 1 copy of each file should be shown in a folder.
Screenshots

Desktop (please complete the following information):

OS Version: Windows 10 Pro 20H2 19042.685 w/ Windows Feature Experience Pack 120.2212.1070.0
App version: v<IP_ADDRESS>

Additional context
Can close the app and restart the app and it still cached the folder contents...
Log file
debug.txt

Workaround is to turn off the "Enable file cache" option in Files settings.

Workaround is to turn off the "Enable file cache" option in Files settings.


qc.num_connected_components() now returns the correct output

Summary
Fixes #6477 .
Details and comments
Consider the below circuit:
q = QuantumRegister(2)
c = ClassicalRegister(4)
qc = QuantumCircuit(q,c)
qc.h(0).c_if(c,0)
qc.h(1).c_if(c,1)

Prior to this PR, when you call qc.num_connected_components(), in the line here in quantumcircuit.py, the functions tries to identify all the subgraphs that the bits of the register c are touching and appends the indices of the subgraphs to the list graphs_touched. After finding the connected subgraphs due to the first conditional gate, one of the elements, say e, of sub_graphs would contain all the bit of c since the condition of the first gate was over the register c. While finding the connected subgraphs due to the second conditional gate, since the loop iterates over all bits of c in the line here , for each of the bits the function checks all the subgraphs each of the bits are connected to in sub_graphs and appends it to graphs_touched. Since all the bits touch e, for each of the bits e is attached to graphs_touched once thus creating duplicates in graphs_touched and the value of num_touched also increases by the number of duplicates in graphs_touched which is incorrect. This in turn creates duplicates in connections and reduces num_sub_graphs to even a negative value.
In this PR, we fix that by removing the duplicates of graphs_touched and obtaining the num_touched from the size of graphs_touched. This ensures that the num_touched exactly contains the value of the number of distinct subgraphs in sub_graphs touched by the bits of the classical condition register.

thanks for this fix. Can you double check that if you convert the same circuit to dag and do dag.num_tensor_factors the output is correct? That is basically the same function but relies on retworkx's implementation.

thanks for this fix. Can you double check that if you convert the same circuit to dag and do dag.num_tensor_factors the output is correct? That is basically the same function but relies on retworkx's implementation.

Hi @ajavadia . I tested dag.num_tensor_factors(). The method works fine. The results correctly match with that of num_connected_components() : )


Simpler architecture, better logging, better tests (v1.0.0)

This was originally a PR on the master fork, but given the uncertain future of the project I've moved it out into my own fork. I think this PR contains some great examples of how we might architect go projects in future so if we do get some time/abandon our current setup then I think it's worth merging.
Otherwise it can exist in the separate fork as a default branch, making for easy viewing of the branched code.

[x] Reduce from cluster/proxy/migration to just proxy/supervise
[x] Convert to Ginkgo tests, using Gomega matchers

[x] pkg/cmd
[x] pkg/etcd
[x] pkg/failover
[x] pkg/pgbouncer
[x] pkg/streams

[x] Separate tests into:

[x] Unit and integration
[x] Separate acceptance binary

[x] Use GinkgoWriter for test logging
[x] Add Ginkgo to CircleCI dockerfile, use it to run unit/integration tests
[x] Update README for new interfaces

We're unlikely to be making any changes to pgsql-cluster-manager soon, but will want to reference this repo in another projects dep file. Going to get this merged so we can do so more naturally.


[BUG] Npm run build fails to minify

Hey !

Node version : v9.7.1
npm version : 5.6.0
ponyfills version : 0.8.4
create-react-app version : v1.1.1

When running npm run build :
Creating an optimized production build...
Failed to compile.

Failed to minify the code from this file:

 	./node_modules/ponyfills/lib/assign.js:3

Read more here: http://bit.ly/2tRViJ9

This leads to facebook/create-react-app/.../README.md#npm-run-build-fails-to-minify which tell us :

npm run build fails to minify
Some third-party packages don't compile their code to ES5 before publishing to npm. This often causes problems in the ecosystem because neither browsers (except for most modern versions) nor some tools currently support all ES6 features. We recommend to publish code on npm as ES5 at least for a few more years.

To resolve this:

Open an issue on the dependency's issue tracker and ask that the package be published pre-compiled.

Note: Create React App can consume both CommonJS and ES modules. For Node.js compatibility, it is recommended that the main entry point is CommonJS. However, they can optionally provide an ES module entry point with the module field in package.json. Note that even if a library provides an ES Modules version, it should still precompile other ES6 features to ES5 if it intends to support older browsers.

Fork the package and publish a corrected version yourself.

If the dependency is small enough, copy it to your src/ folder and treat it as application code.

In the future, we might start automatically compiling incompatible third-party modules, but it is not currently supported. This approach would also slow down the production builds.

I think the best solution is to precompile to ES5, and btw avoid any compatibility issue.

@eserozvataf Can you publish a new release with this fix ? :smiley_cat:


Update user_agent.go to remove semver suffix

https://github.com/cf-platform-eng/gcp-pcf-quickstart/blob/master/src/omg-cli/version/user_agent.go

We should also revert c415f19

#55 resolves this


[FEATURE REQ] Support Generation of SAS tokens using User Delegation Keys for Queues and Tables, not just Blob

Library name
Azure.Storage.Queues & Azure.Data.Tables
Please describe the feature.
It is possible to create a SAS token to a Blob or a Container using a UserDelegationKey and code similar to the following:
var defaultAzureCredential = new DefaultAzureCredential();
var blobServiceClient = new BlobServiceClient(new Uri($"https://{storageAccountName}.blob.core.windows.net"), defaultAzureCredential);
var containerClient = blobServiceClient.GetBlobContainerClient(containerName);

var sasBuilder = new BlobSasBuilder(BlobContainerSasPermissions.All, expiry)
{
    BlobContainerName = containerClient.Name,
    Protocol = SasProtocol.Https
};

var userDelegationKey = await blobServiceClient.GetUserDelegationKeyAsync(DateTimeOffset.UtcNow, expiry);
var sasQueryParameters = sasBuilder.ToSasQueryParameters(userDelegationKey, storageAccountName);
var blobUriBuilder = new BlobUriBuilder(containerClient.Uri)
{
    Sas = sasQueryParameters
};

var uri = blobUriBuilder.ToUri();

However, whilst SAS tokens are supported for Queues and Tables, it requires use of a StorageSharedKeyCredential:
var queueServiceClient = new QueueServiceClient(
   new Uri($"https://{storageAccountName}.queue.core.windows.net"),
   new StorageSharedKeyCredential(storageAccountName, storageAccountKey));

var queueClient = queueServiceClient.GetQueueClient(tableName);

var sasBuilder = new QueueSasBuilder(QueueSasPermissions.All, expiry)
{
    QueueName = queueClient.Name,
    Protocol = SasProtocol.Https,
};

var uri = queueClient.GenerateSasUri(sasBuilder);

and for Tables a TableSharedKeyCredential:
var tableServiceClient = new TableServiceClient(
   new Uri($"https://{storageAccountName}.table.core.windows.net"),
   new TableSharedKeyCredential(storageAccountName, userDelegationKey.Value.Value));

var tableClient = tableServiceClient.GetTableClient(tableName);

var sasBuilder = new TableSasBuilder(tableClient.Name, TableSasPermissions.All, expiry)
{
    Protocol = TableSasProtocol.Https
};

var uri = tableClient.GenerateSasUri(sasBuilder);

To create SAS tokens for Queue and Table use of a StorageSharedKeyCredential or a TableSharedKeyCredential and access to the Storage Account Key is required, there is no support for UserDelegationKey.
The same seems to be true in az cli , as az storage container generate-sas has an --as-user argument, which is missing from az storage queue generate-sas and az storage table generate-sas

The SDK currently supports what is supported in the REST API. The Queue and Tables REST API currently does not support retrieving the User Delegation Key.
If you would like to submit a general Azure Storage Feature Request we recommend using
https://learn.microsoft.com/en-us/azure/azure-portal/supportability/how-to-create-azure-support-request


Unable to download the full episode from cwtv.com.

$ youtube-dl -v http://cwtv.com/shows/masters-of-illusion/a-loaf-of-bread-a-magic-dollhouse-and-bound-by-music/
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', 'http://cwtv.com/shows/masters-of-illusion/a-loaf-of-bread-a-magic-dollhouse-and-bound-by-music/']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.09.24
[debug] Python version 3.4.2 - Linux-3.16.0-4-amd64-x86_64-with-debian-8.6
[debug] exe versions: ffmpeg 3.0.2-4, ffprobe 3.0.2-4, rtmpdump 2.4
[debug] Proxy map: {}
[generic] a-loaf-of-bread-a-magic-dollhouse-and-bound-by-music: Requesting header
WARNING: Falling back on generic information extractor.
[generic] a-loaf-of-bread-a-magic-dollhouse-and-bound-by-music: Downloading webpage
[generic] a-loaf-of-bread-a-magic-dollhouse-and-bound-by-music: Extracting information
WARNING: [generic] a-loaf-of-bread-a-magic-dollhouse-and-bound-by-music: Failed to parse JSON Invalid control character at: line 17 column 586 (char 1186)
[debug] Invoking downloader on 'http://cwtv.com/shows/masters-of-illusion/a-loaf-of-bread-a-magic-dollhouse-and-bound-by-music/'
[download] Destination: Masters of Illusion Video - A Loaf of Bread, a Magic Dollhouse, and Bound by Music _ Watch Online Free-.unknown_video
[download] 100% of 257.58KiB in 00:00

Duplicate of #8105. Currently only single videos are supported. To download the first video on this page, use this command:
youtube-dl http://cwtv.com/shows/masters-of-illusion/a-loaf-of-bread-a-magic-dollhouse-and-bound-by-music/?play=816177b4-066f-4484-b9d9-fc6fd5fefa1a


TS-43 FEATURE - Add Competitions

Ok so I have added competitions but I am still getting/blocked by a type error. I am sure we've figured this out before and its something simple but they key is there!!!! Chucking this up and will discuss when I see you.

Fixed conflicts.
Need to add prisma db push and prisma db seed to deploy script when your merging this if happy.


Will the Apollo 10.0 localization algorithm be open source?

Hi，
Will the localization algorithm based on BEV matching in Apollo 10.0 be open source?

we do not hava this plan yet


Enable allowJs with isolatedDeclarations

Acknowledgement

[X] I acknowledge that issues using this template may be closed without further explanation at the maintainer's discretion.

Comment
Today, an error is issued when allowJs is set alongside isolatedDeclarations - js and ts .d.ts emit use the same pipeline, so it really should work, provided the error generation logic isn't making too many syntax assumptions.
Mostly, unlocking this is going to involve looking through the isolatedDeclarations tests and copying them with their cast/annotation syntaxes swapped to jsdoc and filenames swapped to .js just to give confidence things are going to work OK (and that getEffectiveTypeNode is being used over a direct .type get in enough places in the error generator). There's a few other JS-specific error cases to look at (js's unique export/expression merges, for one) that may need some new errors, but the bulk of it is just ensuring the existing type node presence checking logic generalizes to jsdoc-sourced type nodes.

@weswigham can you please assign the task to me, would share a PR!

Probably not the same issue, but I get an error even if I inherit allowJs from a base config and then explicitly set it to false. I would assume the error should only fire if allowJs is set to true?


Block logging for users without any group assigned - frontend

We have few admin users who shouldn't be able to log in as a driver or passenger to the regular frontend as this doesn't make sense. Let's block them from logging in by checking if said user has some is in Passengers or Drivers group.
Backend is already merged - #413
What we need to do now is:

When a user is not assigned to any group:

block it and display the error message:
"Logging in is not possible.
If you want to log in, ask the admin to add you to the group of Passengers or Drivers"
add button "OK" -> which closes the error message

still relevant, backend should not issue tokens for users who do not have groups assigned to them.


Jupyter cell inactive after switching to it via keyboard shortcuts when using split view.

VSCode Version: 1.46.0
OS Version: Windows_NT x64 10.0.18362

Steps to Reproduce:

Create some .py files and an ipynb (jupyter notebook) file.
Split them so you have one file on the left hand pane and a couple of .py files on the right hand side along with the jupyter notebook (ipynb file) on the right hand side.

Now make the file on the left hand side active i.e. type some code in to it
Navigate to the right hand pane via keyboard shortcut i.e. ctrl-2
Toggle between the files on the right hand pane via shift+tab until the jupyter notebook is the active file
Now you the ipynb file should be active, with a cell highlighted in blue. Try and navigate up or down with keyboard only i.e without using a mouse.

I frequently cannot perform step 6 i.e. the ipynb file appears active with a blue highlight around the active cell but I cannot navigate around until I use the mouse to click on the cell then it seems to work from there onward.

Does this issue occur when all extensions are disabled?: No

Please file issue against the Python extension which currently provides the jupyter notebook feature.


EXC_CRASH (SIGKILL) With Unity 2020 and Plugin Version 6.16.1

[REQUIRED] Step 1: Describe your environment

Xcode version: 12.2
Firebase SDK version: 6.16.1
Installation method: `CocoaPods
Firebase Component: Analytics/Crashlytics
Unity version: 2020.1.0f1

[REQUIRED] Step 2: Describe the problem
I am seeing an inconsistent hang on launch in my application. It will play the splash screen, then either before the first scene is visible or right as the first scene pops on, the app freezes for usually around 30 seconds and then crashes with the following crash log.

Exception Type:  EXC_CRASH (SIGKILL)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note:  EXC_CORPSE_NOTIFY
Termination Reason: Namespace SPRINGBOARD, Code 0x8badf00d

I have narrowed it down to initializing Firebase and saw a previous issue report about this that was closed with no resolutions other than downgrading the Unity project to 2019.2.x which is not possible for us.
I was hoping this was perhaps something that was resolved with the latest plugin, but that does not appear to be the case.
Steps to reproduce:
Simply build the Xcode workspace out of Unity and run the app on an iPad.

Migrating to the quickstart-unity repository, since there is nothing actionable from a Firebase iOS perspective.


docs: removed Files link in cheatcode ref/external

Not sure if this was intended, but saw a misplaced Files reference link in Cheatcodes Reference/External (See Screenshot Below)

Thanks for reviewing and correcting @Evalir


[WIP] Add body_pattern config option

This is a WIP implementation of https://github.com/YoRyan/mailrise/issues/63.
As I mentioned in that issue, I think this feature might be better served by adding in new template variables rather than this approach, but I put this up for PR in case you do like this approach better.
I bumped the minimum Python version as I was unable to get this to successfully build on 3.8. I fully admit that that might be on me; it's been a long time since I've dealt with Python and the ecosystem has changed dramatically. I chose 3.10 since that's what the Docker images use.

This is superseded by a planned feature to add support for supplying an entire CustomRouter. See issue #63 for more details.


sync: pull all tag for a given manifest if at least one of them is specified in the zot config

Current zot sync configuration specifies what images with what tags to be pulled from a remote repo.
Each OCI image and the specified tag is copied locally, but not other tags which may be pointing to the same image manifest.
This task tracks copying all tags pointing to the same manifest which is copied by zot sync.
For example, let's say we have an image called "service" which has the following tags:

1.0.0 which point to manifest A.
latest and 1.0.1, which point to manifest B
If the zot configuration in the local repo specified only the service image with tag latest, only the tag latest would show up in the local registry after the sync is over.

Since both latest and 1.0.1 point to manifest B, I would like to copy the tag 1.0.1 as well.
This way I can be sure I always have the latest version locally, but I can also identify it using a semantic version tag.
This feature track the sync feature pulling all tag for manifest B if at least one of them is specified in the zot config.

No recent activity, let's close this.


Add app service plan hybrid connection limits

It would be handy to have the app service hybrid connection limits from https://docs.microsoft.com/en-us/azure/app-service/app-service-hybrid-connections listed on this page.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 1cd57b6d-3c6f-e546-b3ea-f83892f4c23d
Version Independent ID: 27aecc7b-f107-96d4-b044-ae026bca2727
Content: Azure subscription limits and quotas
Content Source: articles/azure-subscription-service-limits.md
Service: billing
GitHub Login: @rothja
Microsoft Alias: byvinyal

@patros Thanks for your question. We are checking on this and will respond to you soon.

Assigning @rothja for visibility and document enhancement consideration to add app service hybrid connection limits in this article

@patros Thanks for the question. I manage this article, but I'm not the subject matter expert on all areas. Could you give me a little more information? Is this related to App Service Plans or is it something different? Thank you for helping me to understand so I can get it to the right person.

Hi @rothja. It is a feature of app service plans. It's listed under networking on the page you linked.
It's a feature that allows you to run a "gateway", a hybrid connection manager, on premise behind your firewall. It allows you to connect to on premise endpoints like database servers. It does this by opening an outbound connection to your app service and creates sort of a tunnel. This is all done transparently to your app. It's behaves like a direct connection so you don't need to make any changes to your app to use it. And it keeps your security team happy because they don't need to allow any inbound traffic because the hybrid connection manager makes an outbound connection.
The limit is applied at the plan level. And each configured connection is counted.
For example...
If you have two web apps in the plan both connecting to the same on premise database server it is counted as two hybrid connections. Even though the destination is the same.
In the basic pricing tier the limit is 5. If a single web app in the plan has 5 connections they are all consumed and you can't add a connection to any other web app in the plan. Or you could have 5 web apps each with a single connection. Or other combinations. As long as across the plan there are no more than 5 in total.
Hope this helps.

@patros Thank you! This helps a lot. My guess is that @cephalin might be the right person to help look at this initially. Cephas, can you let us know if you can help on this limits request? Thank you!

@SumanthMarigowda-MSFT Can you reassign this git issue to @cephalin for now and unassign me? @patros Thank you for your patience as we route this issue!

@cephalin Any update on this please ?

@patros @KrishnaG-MSFT Sorry for the delay. I've added the information to the limits doc now. It should be published sometime today. #please-close


fastapi.exceptions.HTTPException: 500: Request timed out.

I have deployed the backend and frontend locally, but I'm encountering an issue where after a single API call, the connection doesn't terminate, and after a while, it outputs a timeout error. Could you please explain what might be causing this?

for a while

Hey, sorry for the late response! There have been many updates/bugfixes since then, so hopefully this should no longer be a problem if you follow the new instructions in the README. Let me know if you have any issues!


Using native chat_template from tokenizer config in chat_template strategy

⚠ Please check that this feature request hasn't been suggested before.

[X] I searched previous Ideas in Discussions didn't find any similar feature requests.
[X] I searched previous Issues didn't find any similar feature requests.

🔖 Feature description
Currently when using type: chat_template we have to chose a chat template which are encoded in the axolotl codebase (defaults to chatml)
https://github.com/OpenAccess-AI-Collective/axolotl/blob/a82a7115224b7aef14301387a11ad4729fd6ca52/src/axolotl/prompt_strategies/chat_template.py#L99-L102
https://github.com/OpenAccess-AI-Collective/axolotl/blob/a82a7115224b7aef14301387a11ad4729fd6ca52/src/axolotl/prompt_strategies/chat_template.py#L115-L126
https://github.com/OpenAccess-AI-Collective/axolotl/blob/a82a7115224b7aef14301387a11ad4729fd6ca52/src/axolotl/utils/chat_templates.py#L21-L29
I would like to use the tokenizer tokenizer.chat_template as that would help the model start from a familiar place.
✔ Solution
I would like to pass chat_template as None in which case it should be picked from tokenizer or raise error / fallback to chatml if tokenizer.chat_template missing
I can work on this, seems like a small change.
❓ Alternatives
No response
📝 Additional Context
No response
Acknowledgements

[X] My issue title is concise, descriptive, and in title casing.
[X] I have searched the existing issues to make sure this feature has not been requested yet.
[X] I have provided enough information for the maintainers to understand and evaluate this request.

Fixed by #1970

see https://github.com/truefoundry/axolotl/pull/5/commits/5ba183d302ed1c91912555b76e423786acaccae8 for rough implementation
I plan to submit this as a PR soon

hi i'm trying to fine-tune gemma 2 for function calling and our tool definitions are in the system prompt but gemma chat template doesn't support system role, how can we update the chat_template to support system role?
jinja2.exceptions.TemplateError: System role not supported

Thinking on this, I would suggest two ways to generalize the current chat template stuff:

Probably some explicit string to use the tokenizer's default, so probably default works best to force the code to leave the chat template as is (and throw an error if the tokenizer doesn't have one)
A way to embed a custom chat template that's not in code.  A value such as jinja could do this and then a new config option (chat_template_jinja would make sense). Then with chat_template: jinja a user could supply a custom jinja override for the tokenizer and the code would embed that in the tokenizer so the final saved tokenizer has this new format.  This is pretty much what models like meta-llama/Meta-Llama-Guard-2-8B have done and it makes calling them much easier

The code fix is I think as simple as extending this function to take in the full config object, check the two fields, and return the final template jinja.  Then the few primary call paths would just take the string and naively insert it into the tokenizer.
We could also embed the system prompt change for SFT into the function to consolidate

Sure, I'll can make this change

I'm actually testing the changes in a branch of mine: https://github.com/fozziethebeat/axolotl/tree/fozziethebeat-flexible-chat-template

Oh, I didn't realize, just reading this comment 😅

that looks to be functionally equivalent! great.  I'm a bit busy to tidy mine up for merging so if you can get yours merged we'll have a great answer

👋 Just chiming in as I'm starting to get my hands dirty learning how to use axolotyl. I've been playing with meta-llama/Meta-Llama-3-8B-Instruct and reading about chat templates in the transformers docs, and I'm realizing I dont really know what to put in my axolotyl config 😕
I'm hoping to have essentially drop in replacement for the LORA fine tunes we make using openai.

The stuff being worked on in this request gives a bit more flexibility but for Llama3,  you can most likely use this config and just change a few parts of the dataset.
I would suggest looking at it and the dataset I made.  You should see the relationship between the dataset config and how the dataset itself actually looks.
I personally always load things up onto HuggingFace, so that's one of the easier ways to get things rolling but I know the jsonl reader works well, and it'd just require changing the dataset stanza a tiny bit

@fozziethebeat thanks! Yeah, I actually found those examples yesterday. I can train on your dataset no problem, but I am having issues with my dataset, which includes a system message.
I added it as a role to the axolotyl config - but I believe the problem lies in the hard coded chat_template in the axolotyl config (at least that'y my hypothesis!)
I suspect it is different from the chat template on the transformers tokenizer

To include system you probably need to rewrite
    roles:
      user:
        - user
      assistant:
        - assistant

to be
    roles:
      system:
        - system
      user:
        - user
      assistant:
        - assistant

You actually can likely delete that whole roles section as what is above is the default and it should support system, user, and assistant roles.

@fozziethebeat ok, I'm realizing that my problems are actually coming from the datasets library. When I load my dataset and print and explore it in the shell, its identical to yours in structure - except it always crashes axolotyl
ile "/opt/conda/lib/python3.10/site-packages/torch/utils/data/sampler.py", line 144, in __init__
    raise ValueError(f"num_samples should be a positive integer value, but got num_samples={self.num_samples}")
ValueError: num_samples should be a positive integer value, but got num_samples=0

So I'm trying to reverse engineer what is actually different - trying to duplicate your dataset using parquet files. Can you tell me how you actually created that dataset(like, mechanically, what did you do?)
Because it seems like there are big differences between creating a Dataset and saving it to disk versus loading one off of HuggingFace 😕

Solved by #1970


Control Catalog Screen Page Crash on Windows

Describe the bug
The Control Catalog Screen Page crashes with an unhandled exception on Windows when it calls InvalidateVisual in the middle of an OnRender call.
To Reproduce

Check out Master Branch of AvaloniaUI on a Windows machine. (Use Win32 Options UseWindowsCompositor etc) (all defaults)
Build and run the ControlCatalog.NetCore
Navigate to the Screens Page
Unhandled Exception causes Crash

Expected behavior
Expected behaviour is the Screen Page loading and displaying as required.
Screenshots
Additional screenshot

Desktop (please complete the following information):

OS: Windows 10 Home
Version Build 19044

Additional context
This can be alleviated by modifying the offending line to do a dispatcher post operation, rather than immediately invalidating the visual in the middle of a render-pass.

If there's no objections to the change from
InvalidateVisual();

to
Dispatcher.UIThread.Post(InvalidateVisual, DispatcherPriority.Background);

Then I can issue a PR to change this.

Yes, it should be replaced with w dispatcher call.


LoginListener.java:117: Add language support for...

The puzzle 1-c58bd7b2 from #1 has to be resolved:
https://github.com/shiruka/shiruka/blob/6b4368570b98da4659f038c36f5487b4e935b413/src/main/java/net/shiruka/shiruka/network/LoginListener.java#L117-L117
The puzzle was created by Hasan Demirtaş on 19-Mar-21.
Estimate: 5 minutes,  role: DEV.
If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.

The puzzle 1-c58bd7b2 has disappeared from the source code, that's why I closed this issue.


[SPARK-48420][BUILD] Upgrade netty to 4.1.110.Final

What changes were proposed in this pull request?
The pr aims to upgrade netty from 4.1.109.Final to 4.1.110.Final.
Why are the changes needed?

https://netty.io/news/2024/05/22/4-1-110-Final.html
This version has brought some bug fixes and improvements, such as:
Fix Zstd throws Exception on read-only volumes (https://github.com/netty/netty/pull/13982)
Add unix domain socket transport in netty 4.x via JDK16+ (#13965)
Backport #13075: Add the AdaptivePoolingAllocator (#13976)
Add no-value key handling only for form body (#13998)
Add support for specifying SecureRandom in SSLContext initialization (#14058)

https://github.com/netty/netty/issues?q=milestone%3A4.1.110.Final+is%3Aclosed

Does this PR introduce any user-facing change?
No.
How was this patch tested?
Pass GA.
Was this patch authored or co-authored using generative AI tooling?
No.

cc @dongjoon-hyun @LuciferYang

Merged into master for Spark 4.0. Thanks @panbingkun


BeyondCompareReport is not include

I'm using version 4.58.0, but there is no BeyondCompareReport. Am I missing something?

@seanmars It is only included in the .NET Framework Version, not in the .NET Standard Version.  .NET Standard can be run in environments where Beyond Compare does not exist.  Example, an Android Phone.

@seanmars It is only included in the .NET Framework Version, not in the .NET Standard Version. .NET Standard can be run in environments where Beyond Compare does not exist. Example, an Android Phone.

Ok, I see, but I think you can use the detection platform to let it work on Windows/macOS with .NET Standard?

How would I do that?  Specifically I am detecting the location of Beyond compare in the registry and then using shell to run Beyond Compare.
How would I do something similar for MacOS and Linux?

Using BComp instead of Beyond Compare.app for VCS and OSX Command Line Utilities
Maybe this is a way to do that.

I may just end up detecting windows and only running it for that.

Implemented


support react 15

Hi! thanks for the pullreq! Did the >=0.14.0 not work?
I am not really used to the versioning. Would be nice if you could tell me the merits of the new one and the demerits of the old one :)

the ">=0.14.0" didn't work, the old one will not support react new version V15 and up, the new one will support the versions of react that it supported before and the new one.

Thanks! Mistook the versioning somehow.
"react": "^0.14.0 || ^15.0.0" this would be correct too I guess?

I'll merge and make a new release.

I just realized the 15.0.0 and 0.15.0 difference.. totally didn't see that before.


Output panel settings

I'd suggest some changes to the output panel creation.

Use a common function to create both panels to ensure common style.
Make sure output panel is marked read-only to prevent accidentally modifications

Thanks so much!


Maybe review the resources to ensure a certain quality?

Some resources don't do anything, don't say anything, don't deserve to be included in .

That is my tiny research on sampler, a little work that has nothing to say, but some resources are worse than that

Can you provide examples of useless resources please ? I'll review if they're really worthless and delete accordingly

Can you provide examples of useless resources please ? I'll review if they're really worthless and delete accordingly

Some of the modifier studies, just just lists a few graphs without any convinced conclusion or experimental basis


[FR] Implement Bed & Presence Detection in Automations

Bed Sensors

[ ] Implement in turning off automations
[ ] Implement in turning on automations
[ ] Implement in managing security automations
[ ] Set up security automation for overnight

Presence Sensor

[ ] Implement maintaining light automation until presence moves room

/remind me tomorrow

Awaiting review of sleep sensors #74


use intent

What the program do ?
----print hello world
In what programming language it is written?
c

This pull request contains conflicts. Please fix it and reopen


A way to block the nodes in the editor so that it is no longer possible to edit them (or edit them unintentionally, in my case)

I don't know if here is the best place to this. I have a tilemap in a project which I get quite a few clicks unintentionally, so with these clicks, I end up making some mess in it. It doesn't happens only for tilemaps, but for everyone Node2D.

There's already a way to do that. Select the node you want to do this with, then on the bar just below the scene tabs, click the lock icon. If you need a little help finding the lock icon, I've circled it here for you:

Locking the node prevents them from being selected in the scene view, but you can still select them by clicking on them in the scene tree.
Note that this only locks the node that you selected. If you want to lock all children nodes, click the icon just to the right of the lock icon.

I really had not noticed that, thank you very much.

@JulioYagami
I think your problem is solved, then you can close this issue so that it's easy to focus on other unsolved issues.


Something wrong occured when applying function ' ground_truth() function'

When I was using your demo code to augment  original and mask images identically, I found I got different number of augmented mask and images! I can't figure out why this happened. This meant the mask and image were NOT AUGMENTED IDENTICALLY,  were they? Could you please help me to deal with this question, thanks.

Thanks for reporting the issue. However, this is not a lot of information to go on. can you provide some more details? for example the version you are using and some code with some comments at the places where you observed which inconsistency.

Ok, sure.  and Thank you for your timely reply. Here I'll give your some version informal, the code I'm running  and the result I got.
NAME                     VERSION
Augmentor                 0.2.0
numpy                     1.14.1
`p = Augmentor.Pipeline("train")
Point to a directory containing ground truth data.
Images with the same file names will be added as ground truth data
and augmented in parallel to the original data.
p.ground_truth("mask")
Add operations to the pipeline as normal:
p.rotate(probability=1, max_left_rotation=5, max_right_rotation=5)
p.flip_left_right(probability=1)
p.zoom_random(probability=1, percentage_area=0.8)
p.flip_top_bottom(probability=1)
p.sample(6)`
Finally, I got 10 pictures, they were 4 transformed masks and 4 corresponding transformed image and 2 image without corresponding transformed masks.
Normally, I should have gotten 5 transformed masks and image correspondingly, but not! I don't know why. I hope I have express clearly.
Thank you.

Hi @gnaygnak, how many images are in train and mask directories? Are there any sub folders in either directory?
I am having some issues with the new ground truth functionality, and trying to get to the bottom of it. In my tests things seem to work fine, but users are having some strange problems...

Hi @mdbloice , I have known the reason. When you are applying the ground_truth() function, you must make sure that there is just single data in train and mask directories, right?
Thank you for replying.

Hi @gnaygnak, no it should work with any number of images. As long as the file names match between the two directories you can use any number of images.
M.

Hi @mdbloice is there a way to have ground_truth() working even if the file names do not match ? in my case the ground truth file names are followed by "_mask"

Hi  @Marwen-Bhj, no not at the moment, however you can use DataPipeline for such situations:
p = Augmentor.DataPipeline(images, y)

Where images contains any number of images/masks in array format (rather than reading from the disk). See this notebook for details on how to prepare the images data structure here:
Multiple-Mask-Augmentation.ipynb
Hope this helps!

Hi @mdbloice  thank you , it did help doing the task needed , yet as I saw in documentation ,this doesn't save the files anywhere , I tried using :
sample_with_array(augmented_images[i][j], save_to_disk=True) in a for loop
where augmented_images.shape outputs (3, 2, 384, 768, 3)  (3x2 samples , 348x768 and 3 channels )  if we transform it to an array using numpy .
I need those generated samples and augmented images saved in a certain directory how can I do this ?

Hi @Marwen-Bhj, you could try using PIL/Pillow to create images from array data, so something like
from PIL import Image

im = Image.fromarray(augmented_images[...])
im.save('/path/image.png')

and do that in a loop, where augmented_images[...] will have to be sliced accordingly to get the images you want out....

@mdbloice  yes that's what I did eventually , just had to do some workaround with naming . thank you again.

@Marwen-Bhj ok sure, glad you got it to work out :-)
M.


Bug: missing dependencies on 2.0.0a3

Description
version 2.0.0a3 is missing some dependencies
I had to install manually the following packages:

pytest
click
rich
jsbeautifier
uvicorn

in order to run litestar --app app:app run
URL to code causing the issue
No response
MCVE
from typing import Dict

from litestar import Litestar, get

@get("/")
def hello_world() -> Dict[str, str]:
    """Keeping the tradition alive with hello world."""
    return {"hello": "world"}

app = Litestar(route_handlers=[hello_world])

Steps to reproduce
1. use clean virtualenv
2. run `pip install litestar==2.0.0a3`
3. create the demo app from the README file
4. run `litestart --app app:app run`

Screenshots
No response
Logs
$ litestar --app app:app run
Traceback (most recent call last):
  File "/home/test/.venv/bin/litestar", line 5, in <module>
    from litestar import __main__
  File "/home/test/.venv/lib/python3.8/site-packages/litestar/__init__.py", line 1, in <module>
    from litestar.app import Litestar
  File "/home/test/.venv/lib/python3.8/site-packages/litestar/app.py", line 13, in <module>
    from litestar._openapi.path_item import create_path_item
  File "/home/test/.venv/lib/python3.8/site-packages/litestar/_openapi/path_item.py", line 6, in <module>
    from litestar._openapi.parameters import create_parameter_for_handler
  File "/home/test/.venv/lib/python3.8/site-packages/litestar/_openapi/parameters.py", line 5, in <module>
    from litestar._openapi.schema_generation import create_schema
  File "/home/test/.venv/lib/python3.8/site-packages/litestar/_openapi/schema_generation/__init__.py", line 1, in <module>
    from .schema import create_schema
  File "/home/test/.venv/lib/python3.8/site-packages/litestar/_openapi/schema_generation/schema.py", line 39, in <module>
    from litestar._openapi.schema_generation.examples import create_examples_for_field
  File "/home/test/.venv/lib/python3.8/site-packages/litestar/_openapi/schema_generation/examples.py", line 7, in <module>
    from polyfactory.exceptions import ParameterException
  File "/home/test/.venv/lib/python3.8/site-packages/polyfactory/__init__.py", line 2, in <module>
    from .factories import BaseFactory, DataclassFactory, TypedDictFactory
  File "/home/test/.venv/lib/python3.8/site-packages/polyfactory/factories/__init__.py", line 1, in <module>
    from polyfactory.factories.base import BaseFactory, DataclassFactory, TypedDictFactory
  File "/home/test/.venv/lib/python3.8/site-packages/polyfactory/factories/base.py", line 51, in <module>
    from polyfactory.fields import Fixture, Ignore, PostGenerated, Require, Use
  File "/home/test/.venv/lib/python3.8/site-packages/polyfactory/fields.py", line 6, in <module>
    from polyfactory.pytest_plugin import FactoryFixture
  File "/home/test/.venv/lib/python3.8/site-packages/polyfactory/pytest_plugin.py", line 14, in <module>
    from pytest import fixture
ModuleNotFoundError: No module named 'pytest'

$ litestar --app app:app run
Traceback (most recent call last):
  File "/home/test/.venv/bin/litestar", line 5, in <module>
    from litestar import __main__
  File "/home/test/.venv/lib/python3.8/site-packages/litestar/__main__.py", line 1, in <module>
    from litestar.cli.main import litestar_group  # pragma: no cover
  File "/home/test/.venv/lib/python3.8/site-packages/litestar/cli/main.py", line 3, in <module>
    from click import Context, group, option, pass_context
ModuleNotFoundError: No module named 'click'

$ litestar --app app:app run
Traceback (most recent call last):
  File "/home/test/.venv/bin/litestar", line 5, in <module>
    from litestar import __main__
  File "/home/test/.venv/lib/python3.8/site-packages/litestar/__main__.py", line 1, in <module>
    from litestar.cli.main import litestar_group  # pragma: no cover
  File "/home/test/.venv/lib/python3.8/site-packages/litestar/cli/main.py", line 5, in <module>
    from ._utils import LitestarEnv, LitestarExtensionGroup
  File "/home/test/.venv/lib/python3.8/site-packages/litestar/cli/_utils.py", line 14, in <module>
    from rich.console import Console
ModuleNotFoundError: No module named 'rich'

$ litestar --app app:app run
Traceback (most recent call last):
  File "/home/test/.venv/bin/litestar", line 5, in <module>
    from litestar import __main__
  File "/home/test/.venv/lib/python3.8/site-packages/litestar/__main__.py", line 1, in <module>
    from litestar.cli.main import litestar_group  # pragma: no cover
  File "/home/test/.venv/lib/python3.8/site-packages/litestar/cli/main.py", line 6, in <module>
    from .commands import core, schema, sessions
  File "/home/test/.venv/lib/python3.8/site-packages/litestar/cli/commands/schema.py", line 6, in <module>
    from jsbeautifier import Beautifier
ModuleNotFoundError: No module named 'jsbeautifier'

$ litestar --app app:app run
Using Litestar app from env: 'app:app'
┌──────────────────┬──────────────────────┐
│ Litestar version │ 2.0.0                │
│ Debug mode       │ Disabled             │
│ CORS             │ Disabled             │
│ CSRF             │ Disabled             │
│ OpenAPI          │ Enabled path=/schema │
│ Compression      │ Disabled             │
└──────────────────┴──────────────────────┘
Starting server process ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Traceback (most recent call last):
  File "/home/test/.venv/bin/litestar", line 5, in <module>
    from litestar import __main__
  File "/home/test/.venv/lib/python3.8/site-packages/litestar/__main__.py", line 3, in <module>
    litestar_group()  # pragma: no cover
  File "/home/test/.venv/lib/python3.8/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/home/test/.venv/lib/python3.8/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/home/test/.venv/lib/python3.8/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/test/.venv/lib/python3.8/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/test/.venv/lib/python3.8/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/home/test/.venv/lib/python3.8/site-packages/click/decorators.py", line 26, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/test/.venv/lib/python3.8/site-packages/litestar/cli/_utils.py", line 202, in wrapped
    return func(*args, **kwargs)
  File "/home/test/.venv/lib/python3.8/site-packages/litestar/cli/commands/core.py", line 98, in run_command
    subprocess.run(["uvicorn", env.app_path, *_convert_uvicorn_args(process_args)], check=True)
  File "/usr/lib/python3.8/subprocess.py", line 493, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/usr/lib/python3.8/subprocess.py", line 858, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.8/subprocess.py", line 1704, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'uvicorn'

Litestar Version
2.0..0a3
Platform

[X] Linux
[ ] Mac
[ ] Windows
[ ] Other (Please specify in the description above)

Did you install litestar with the required extras as specified in the documentation?
pip install litestar[cli] --pre

no, I've used the command from README file (which contains a mistake in the version name):
pip install litestar==2.0.0a3  # in the README it is 2.0.0alpha3, but I've managed to understand this

after your ocmment, I've used the following:
pip install litestar[cli]==2.0.0a3

and only pytest and uvicorn are missing

no, I've used the command from README file

It would get a bit unwieldy to put everything in the readme file,, which is why the CLI, and the is not mentioned there in general. But you'll find that the usage guide of our docs, the CLI mentions this in the first paragraph, as well as the first page of the documentation in the "Installation" section.
Could you give me any pointers how this could have been documented better?

(which contains a mistake in the version name)

This is not a mistake, but an artifact of how PyPi handles versioning. If you look at this line
https://github.com/litestar-org/litestar/blob/7c990386e677c92252558b681ff4ecae4f7c63d9/pyproject.toml#L3
you'll see that the version is actually as specified, and running pip install litestar==2.0.0alpha3 will work just fine.

As for the missing dependencies, I'm not sure why pytest is required at all. It's not required by the CLI and this shouldn't occur. I will have to look into this.

This happens to me as well, at least with pytest.
I installed litestar[standard], managed via Poetry.

@lqmanh this pytest thing has been popping up a few times now. Your assessment that it’s related to polyfactory seems correct. Do you mind opening a separate issue for this?

@provinzkraut Then I should open a separate issue here or in polyfactory repo?

@lqmanh @elip-OE both dependency issue will be fixed in the alpha4 release which will happen today and the 1.51.10 release, which we're also planning to release later this day.

@provinzkraut many thanks for your quick response

This has been fixed in the latest pre-release v2.0.0alpha4.


Add the artifact signed event

Changes
Add a new predicate for artifacts, the reflect the signature of the artifact being generated. Different artifacts have different strategies for storing signatures, so the signature is a very generic string attribute which is only available in the artifact.signed event.
Submitter Checklist
As the author of this PR, please check off the items in this checklist:

[x] Has the primer doc been updated if a design decision is involved
[x] Have the JSON schemas been updated if the specification changed
[x] Has spec version and event versions been updated according to the versioning policy
[x] Meets the CDEvents contributor standards

@e-backmark-ericsson PR rebased and comment addressed - is this good to merge now?


id: breathing space description

This is easy to scan. Check UK/American English spelling (I'm not sure which is right).
The existing heading levels are not very nice, which is a Docassemble stock CSS choice. Maybe we would want to use our own CSS to format this page. Usually headings do not end with a :.
Avoid saying "please click here". Links should be descriptive to help with screen readers.

Improved appearance of screens. Removed significant amount of content. Enough to share with the user that they might get a pause to catch up and encourage them to seek a debt advisor


Check domains on viewdns.info

more accurate than GFW

once we have a published version, I'll talk them


I want to see an example of an error on the Errors documentation page

On https://www.buildwithfern.com/docs/definition/errors I'd like to see how to add an example. While this may also be in another part of our docs, I'd expect it to be accessible on this page.

We don’t have error examples

For my reference:
# error
         examples:
            - response:
                error: EventNotFoundError
                body:
                  success: false
                  error: event not found

Ahh got it 🤙

Not sure if that’s the right page for this- that page is around declaring errors, and your snippet is a failed endpoint call. Maybe there’s some hyperlinking we can do?

Problem: I want to see an example of how I can configure an example of an error.
Flexible on the solution.

Yep makes sense. There’s an example here that can be more fleshed out https://www.buildwithfern.com/docs/definition/endpoints#examples

+1 for this request

Learning: if the CLI gives you the message Error is not defined. it is because you may not be referencing the type from an import.
response:
-  error: PaymentsRequestValidationError
+  error: commons.PaymentsRequestValidationError
    body:
      errorId: RequestValidationError
      description: Invalid type for `currencyCode`
      recoverySuggestion: The currency code must be a valid value
      diagnosticsId: '1234567898'

It would also be helpful to see an example of a query-parameter:
examples:
  # success
  - query-parameters:
      clientToken: my-client-token
    response:
      body: #etc.


fix(docs): add missing parenthesis

Is this doc example, the router.push() closing parenthesis is missing.
I added it back in the PR.

Thank you.


JSON submission

This adds JSON submission to submission payload
This feature is optional and enabled when SERVICE_OUTPUT_JSON_ENDPOINT env var is present
The payload is missing the callback location which will generate the form representation in JSON. This will be added in a later piece of work
This is a breaking change and cannot be merged until submitter implements this or performs a no-op as a minimum

As this is behind a feature flag, we'll merge and won't cause breakages unless the feature is enabled which we can limit to test environments


extended functionality to return a unix timestamp, at click event; up…

Added UNIX timestamp to the return value for clickListener() and mouseDownListener() functions, in frontend/main.js.
This allows users to determine the last image clicked, by retrieving the image key with the newest timestamp.

I'd also like to see this feature added

Thanks for the contribution!


Is178 planejamento sprint 10

Pull Request Test Coverage Report for Build 670

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 95.273%

Totals

Change from base Build 665:
0.0%

Covered Lines:
1290

Relevant Lines:
1354

💛  - Coveralls


KyberNetworkProxy addresses are the same for Ropsten and Mainnet

See: https://developer.kyber.network/docs/MainnetEnvGuide/    and note that KyberNetworkProxy = 0x818E6FECD516Ecc3849DAf6845e3EC868087B755
See: https://developer.kyber.network/docs/RopstenEnvGuide/ and note also that KyberNetworkProxy = 0x818E6FECD516Ecc3849DAf6845e3EC868087B755
However, for other test nets, the address is different. Etherscan.io also confirms that this duplicate address is on the Ropsten network.
My question is then- what is the main net address?

Both are correct. Our admin deploy from a wallet with the same nonce in ropsten and mainnet, so it results in the same address in two networks.


Localization

You mind add locale code to be localization for another languages as well as calendars?!

Would be realy ncie because I'm from Germany an we have an other view for dates (12.11. for 12th).

Yeah I'm Iranian and need Persian calendar, my country code would be as fa_IR or simply fa.


Sprite.image[Left,Right,Up,Down]?

It's annoying to have to set sprite images depending on the direction a sprite is facing, it would be cool to automatically swap images based on the direction a sprite is facing. If there's no image for the direction it retains the last image set.
You could set the various images when making a sprite.
An excerpt from my test game:
     if (canMove) {
        if (controller.left.isPressed()) {
            direction = PlayerDirection.Left;
            queen.setImage(queenLeft)
            queen.x -= 2
        }
        if (controller.right.isPressed()) {
            direction = PlayerDirection.Right;
            queen.setImage(queenRight)
            queen.x += 2
        }
    }

@pelikhan and I tossed around this idea a while ago; we wanted extension authors to be able to create sprite "characters" that assigned different actions to walking, attacking, idling, etc. Would be a cool way to contribute sprite packs and take a way a lot of the tedium of making animations.

@riknoll does character animation full fill this? I am closing this now if not feel free to reopen.


Swatches with description and custom layout

In my use case I have to set for each swatches color a own description. To be dynamic it would be an advantage to write also a custom html template for the swatches palette.
Possible implementation:
Pickr.create({
    swatches: [
        {
            "color": "#f44336",
            //dynamic_properties like description e.g.....
        },
        {
            "color": "#fff",
            //dynamic_properties like description e.g.....
        }
    ],
    swatchesTemplate: `
        // use handlebars or another parser
    `
});

Within the property swatchesTemplate the default template can be overriden with the defined template, where the developer should have full access to the declared properties in the pickr instance.

Well I can't an will not implement / use an extra parser just for the template. I may implement a very, very small one by myself in the future see #44 for more info and news! :)
Subscribe to the thread above to stay up-to-date to news about custom-templates etc!


Owned tokens cause view panning

When a token is added to the active scene that the gaming table player owns, or when one is moved out of the viewed area, FoundryVTT pans the view so that the token is on-screen. The gaming-table-player module needs to catch and prevent this pan, or fix it quickly afterwards.

I can't figure out how to safely hook onto these view-pan situations without creating an infinite hook-loop... So I might just re-center the view at the refresh interval that's already part of the module. :(


look through NCBI Biosample for usages of the nose, throat, teeth type terms

regenerate BBOP's SQLite and repopulate our Postgres on SPIN? That take several hours but makes the usage easier for me. It can be shared publicly as the SQLite file, but there isn't any public Postgres endpoint yet.

Build database according to https://github.com/turbomam/biosample-xmldb-sqldb

high RAM and storage requirements
takes ~ 24 hours

select
	distinct attribute_name,
	harmonized_name
from
	all_ncbi_attributes_long
where
	to_tsvector('english',
	attribute_name)
	@@ phraseto_tsquery('english',
	'throat');

attribute_name
harmonized_name

covid_symptoms_sore_throat

nose mouth teeth throat disord
nose_mouth_teeth_throat_disord

nose_mouth_teeth_throat_disord
nose_mouth_teeth_throat_disord

nose_throat_disord
nose_throat_disord

Symptom: Sore throat

throat_bright

As noted in the Feb 13th CIG notes:
(Lynn): review of term usage:
→ Review notes below, I would say that we can merge these two terms.
New definition: History of nose,mouth, teeth, and/or throat disorders: can include multiple disorders.
→ and to add in the information for the source of the terms, where appropriate:
The terms should be chosen from the DO (Human Disease Ontology) at http://www.disease-ontology.org, lung disease (https://disease-ontology.org/?id=DOID:850), upper respiratory tract disease (https://disease-ontology.org/?id=DOID:974),
(https://disease-ontology.org/?id=DOID:2825), mouth disease (https://disease-ontology.org/?id=DOID:403), tooth disease (https://disease-ontology.org/?id=DOID:1091).
MIXS:0000270 -  In the human-associated package:
–Structured Comment (short name): nose_throat_disord
– Package Name (long name):lung/nose-throat disorder
-definition:
History of nose-throat disorders; can include multiple disorders,  The terms should be chosen from the DO (Human Disease Ontology) at http://www.disease-ontology.org, lung disease (https://disease-ontology.org/?id=DOID:850), upper respiratory tract disease (https://disease-ontology.org/?id=DOID:974).
MIXS:0000283 -   In the human oral package:
– Structured Comment (short name): nose_throat_disord
– Package Name (long name): nose/mouth/teeth/throat disorder
– definition:
History of nose/mouth/teeth/throat disorders; can include multiple disorders. The terms should be chosen from the DO (Human Disease Ontology) at http://www.disease-ontology.org, nose disease (https://disease-ontology.org/?id=DOID:2825), mouth disease (https://disease-ontology.org/?id=DOID:403), tooth disease (https://disease-ontology.org/?id=DOID:1091), or upper respiratory tract disease (https://disease-ontology.org/?id=DOID:974).

Change to oral and add nose, throat, teeth to the desription?

To be closed, see #743

@lschriml I don't see the corresponding changes int eh mixs.yaml file

Sorry, I see that you were encouraging activity to resume on #743


Syntax highlighting no longer working on 0.2.3

The syntax highlighting quit working after upgrading the extension to 0.2.3.

yeah, it's not working for me either. looks like \\b(\\s+)?(?i:\\b is the culprit. The extra keywords added aren't an issue. Changing that back to \\b(?i:\\b fixes the problem..

Thanks for the report. There were some null characters embedded in the syntax file, and that seems to have been interfering with the parsing engine. I rebuilt the file to get rid of those, and all seems well now. I've pushed 0.2.4 up to the marketplace.


Translation of Laravel validation messages

Hi,
Any way to localize validation (422 response) messages from laravel with the vue-i18n in this boilerplate?
Thanks

You have to define the Laravel translations for validation here.
You can find the lines translated by others.


"equal height row" breaks column width fluidity

Here is a JSFiddle of the bug in action.
table-cells definitely handle percent-based widths differently, but I'm not sure how. Couldn't figure out how the effective maximum is determined.
Setting table-row on the row might not be an effective solution since it seems to disable the use of padding.

I think perhaps its time to transition to a mixture of flexbox and display:table-cell for fallback.

Btw table-layout: fixed should prevent the table resizing, but it seems like in some circumstances with table-cell it doesnt appear to do anything.

Added with flex in next

Dude, you are a wizard. Thank you!


get request hangs "in readinto return self._sock.recv_into(b)" without raising exception

Hi,
I'm pretty desperately trying to nail down the reason that an url unshortener script is freezing from time to time.
I'm using requests with several head and get-requests, such as
with requests.Session as s:
    r = s.get(url, allow_redirects=True, timeout=self.timeout, headers=self.headers, verify=False)

where self.timeout are 10 seconds and the headers just include a user-agent.
The request is called by a worker in a multiprocessing Pool with 10 workers that get's constantly feeded via Pool.imap() with a list of urls.
When keyboard interrupting I get from some of the workers the following Traceback:
Traceback (most recent call last):
  File "---/dataprocessor.py", line 98, in try_unshorten_expanded_urls
    result = unshorten_expanded_urls(tweet_dataframe_tuple)
  File "---/dataprocessor.py", line 84, in unshorten_expanded_urls
    'unshortened_url': u.unshorten(expanded_urls[i]),
  File "---/unshorten.py", line 162, in unshorten
    verify=False)
  File "/home/ubuntu/miniconda3/envs/TQ/lib/python3.5/site-packages/requests/sessions.py", line 480, in get
    return self.request('GET', url, **kwargs)
  File "/home/ubuntu/miniconda3/envs/TQ/lib/python3.5/site-packages/requests/sessions.py", line 468, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/ubuntu/miniconda3/envs/TQ/lib/python3.5/site-packages/requests/sessions.py", line 608, in send
    r.content
  File "/home/ubuntu/miniconda3/envs/TQ/lib/python3.5/site-packages/requests/models.py", line 737, in content
    self._content = bytes().join(self.iter_content(CONTENT_CHUNK_SIZE)) or bytes()
  File "/home/ubuntu/miniconda3/envs/TQ/lib/python3.5/site-packages/requests/models.py", line 660, in generate
    for chunk in self.raw.stream(chunk_size, decode_content=True):
  File "/home/ubuntu/miniconda3/envs/TQ/lib/python3.5/site-packages/requests/packages/urllib3/response.py", line 344, in stream
    data = self.read(amt=amt, decode_content=decode_content)
  File "/home/ubuntu/miniconda3/envs/TQ/lib/python3.5/site-packages/requests/packages/urllib3/response.py", line 301, in read
    data = self._fp.read(amt)
  File "/home/ubuntu/miniconda3/envs/TQ/lib/python3.5/http/client.py", line 433, in read
    n = self.readinto(b)
  File "/home/ubuntu/miniconda3/envs/TQ/lib/python3.5/http/client.py", line 473, in readinto
    n = self.fp.readinto(b)
  File "/home/ubuntu/miniconda3/envs/TQ/lib/python3.5/socket.py", line 575, in readinto
    return self._sock.recv_into(b)
KeyboardInterrupt

If the function would raise an exception, I've made sure that it would be catched within the function so that it would not block the pool. But as it seems, readinto is just hanging here (for hours). I don't know whether this is related to #3066, as I am not familiar enough with the protocols or requests itself, so please excuse a duplicate if this should be one or if the error is my bad.
The freeze happened several times with the same batch of urls now.
I tried to find the exact url causing this freeze but did not succeed as the batch contains several thousand, though I've already excluded everything that exceeds a certain content length or does not have text as content type via a head request before the get.
I am running requests 2.10.0 with Python 3.5.1 in a miniconda environment installed via pip on an Ubuntu 14.04.
However, great library, hope this helps to make it better.
Cheers!
UPDATE:
Here the relevant code for the traceback (line 162 in unshorten.py):
def check_size_and_type(request_object, max_content_length):
    try:
        length = int(request_object.headers['content-length'])
    except:
        length = None
    try:
        type = str(request_object.headers['content-type'])
    except:
        type = ''
    if ((length is None or length < max_content_length) and
        (type.startswith('text/html') or
         type.startswith('application/xhtml') or
         type.startswith('text/xml'))):
        return True
    else:
        return False

with requests.Session() as s:
    r = s.head(url, allow_redirects=True,
                     timeout=self.timeout,
                     headers=self.headers,
                     verify=False)

if check_size_and_type(r, self.max_content_length):
    r = s.get(url, allow_redirects=True,
    timeout=self.timeout,
    headers=self.headers,
    verify=False)

Thanks for this report!
What worries me is that we're getting stuck even with a timeout. The timeout should prevent any socket call lasting longer than that number of seconds. This suggests two possibilities to me that aren't bugs, as well as the possibility of a bug (though it's unlikely).
Firstly, can you use a print statement to confirm your timeout value at the call site?
Secondly, it's possible that data is slowly being fed to the socket so that each individual socket call takes less than 10s. Can you try waiting to see if this problem resolves itself?
Thirdly is the risk of bugs. For that I ideally need a reproducible script I can run in my own environment. Do you think you can produce one?

Thanks for the quick answer!
I can confirm via PyCharm Debugger and print statements that the timeout is 10 seconds for every call.
It could be that data is slowly being fed, but it hanged for more than 8 hours the last time and max_content_length is 500kB. Waiting for such a long time (especially if it happens over the weekend) leads to quite a bunch of data piling up to be processed afterwards and is not available for live analysis.
This happened already for several datasets we're collecting.
I will try to write something, but to make it reproducible I'd have to narrow down a smaller batch of urls causing it. This could take a while as.

Yeah, that's fine, there's no rush, but I'm unlikely to be able to discover this without a good repro scenario: it's likely that this is a weird interaction around sockets, forking, and the standard library.

Ok, I think I found the url. But it's no problem with requests then. Rather a misconfigured webserver ...
>>> r = requests.head('http://bluepoint-radio.de:9080/')
>>> r.headers
{'Content-Type': 'text/html'}

😡
Thanks for your help though.

Yes,  reproduces the error:
>>> r = requests.get('http://bluepoint-radio.de:9080/', timeout=5)
^CTraceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/ubuntu/miniconda3/envs/TQ/lib/python3.5/site-packages/requests/api.py", line 67, in get
    :rtype: requests.Response
  File "/home/ubuntu/miniconda3/envs/TQ/lib/python3.5/site-packages/requests/api.py", line 53, in request
    # By using the 'with' statement we are sure the session is closed, thus we
  File "/home/ubuntu/miniconda3/envs/TQ/lib/python3.5/site-packages/requests/sessions.py", line 468, in request

  File "/home/ubuntu/miniconda3/envs/TQ/lib/python3.5/site-packages/requests/sessions.py", line 608, in send
    # Shuffle things around if there's history.
  File "/home/ubuntu/miniconda3/envs/TQ/lib/python3.5/site-packages/requests/models.py", line 737, in content

  File "/home/ubuntu/miniconda3/envs/TQ/lib/python3.5/site-packages/requests/models.py", line 660, in generate
    def generate():
  File "/home/ubuntu/miniconda3/envs/TQ/lib/python3.5/site-packages/requests/packages/urllib3/response.py", line 344, in stream
    :param decode_content:
  File "/home/ubuntu/miniconda3/envs/TQ/lib/python3.5/site-packages/requests/packages/urllib3/response.py", line 301, in read
    data = None
  File "/home/ubuntu/miniconda3/envs/TQ/lib/python3.5/http/client.py", line 433, in read
    n = self.readinto(b)
  File "/home/ubuntu/miniconda3/envs/TQ/lib/python3.5/http/client.py", line 473, in readinto
    n = self.fp.readinto(b)
  File "/home/ubuntu/miniconda3/envs/TQ/lib/python3.5/socket.py", line 575, in readinto
    return self._sock.recv_into(b)
KeyboardInterrupt
>>>

Just for reference if somebody is looking this up:
Use body content workflow instead of head requests to make content retrieval conditional.

I have a very similar problem (if not the same): an application is randomly hanging (every ~10 to 20 days, roughly) and I connected gdb to a hung session today. py-list shows
(gdb) py-list
 366            self._checkReadable()
 367            if self._timeout_occurred:
 368                raise OSError("cannot read from timed out object")
 369            while True:
 370                try:
>371                    return self._sock.recv_into(b)
 372                except timeout:
 373                    self._timeout_occurred = True
 374                    raise
 375                except InterruptedError:
 376                    continue

it just hangs here, apparently (I have no experience with gdb but when I disconnect and reconnect, py-list brings me to the same place above).
@FlxVctr : thanks for the tip but I do not use head requests (nor body content workflow)

That hang point seems to be in the standard library. Do you have a full Python traceback?

@Lukasa : no, my program hung (without any traceback) and I was wondering what could have caused the hanging. I just did a gdb python3 <pid of my script> and the only valuable thing I got was the pitput of py-list. I just rebooted my machine (it is a RPi) because I needed the script to run but if there is something i can do with the code to make it more talkative please let me know.

gdb should be capable of printing a Python traceback.

Ah, I still have what I tried on the terminal. Yes, there is indeed a traceback:
(gdb) py-bt
Traceback (most recent call first):
  File "/usr/lib/python3.4/socket.py", line 371, in readinto
    return self._sock.recv_into(b)
  File "/usr/lib/python3.4/wsgiref/simple_server.py", line 118, in handle
    self.raw_requestline = self.rfile.readline(65537)
  File "/usr/lib/python3.4/socketserver.py", line 669, in __init__
    self.handle()
  File "/usr/lib/python3.4/socketserver.py", line 344, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib/python3.4/socketserver.py", line 331, in process_request
    self.finish_request(request, client_address)
  File "/usr/lib/python3.4/socketserver.py", line 305, in _handle_request_noblock
    self.process_request(request, client_address)
  File "/usr/lib/python3.4/socketserver.py", line 238, in serve_forever
    self._handle_request_noblock()
  File "/usr/lib/python3/dist-packages/bottle.py", line 2769, in run
    srv.serve_forever()
  File "/usr/lib/python3/dist-packages/bottle.py", line 3114, in run
    server.run(app)
  File "webserver.py", line 510, in __init__
  File "webserver.py", line 547, in <module>

@wsw70 I should note that requests is not in that stack. 😉

Yes, I googled the question and saw references to urllib*, socket etc. - all of them were quite cryptic. I just mentioned in this thread that I have the same issue and that it is has indeed something to do with the standard lib.
Did I mention that requests is awesome? (and I really mean it, it is an opportunity to voice this out since the core dev is listening :) )

Yup. =P So that hang seems to be related to a TCP connection falling over. You'll have to take that up with the bottle devs. =D And I'm glad you like Requests!

Having the same issue here. with timeout without it doesn't make any difference. It is hanging in the socket module self._sock.recv_into(b)
python3 "/home/devilfromir/code/src/utilities/deckdl/ddtokenizer.py"
^CTraceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/requests/packages/urllib3/connectionpool.py
", line 379, in _make_request
httplib_response = conn.getresponse(buffering=True)
TypeError: getresponse() got an unexpected keyword argument 'buffering'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/devilfromir/code/src/utilities/deckdl/ddtokenizer.py", line 63, in
ip = anon.IP()
File "/home/devilfromir/code/src/utilities/deckdl/anon.py", line 26, in init
self.check(withTor=True)
File "/home/devilfromir/code/src/utilities/deckdl/anon.py", line 37, in check
res = req.get('http://www.icanhazip.com', headers=headerGen(''))
File "/home/devilfromir/code/src/utilities/deckdl/anon.py", line 87, in torReq
r = getattr(requests, attrName)(self.url, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 70, in get
return request('get', url, params=params, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 56, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 488, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 609, in send    r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 423, in send
timeout=timeout
File "/usr/local/lib/python3.6/dist-packages/requests/packages/urllib3/connectionpool.py
", line 600, in urlopen
chunked=chunked)
File "/usr/local/lib/python3.6/dist-packages/requests/packages/urllib3/connectionpool.py
", line 382, in _make_request
httplib_response = conn.getresponse()
File "/usr/lib/python3.6/http/client.py", line 1331, in getresponse
response.begin()
File "/usr/lib/python3.6/http/client.py", line 297, in begin
version, status, reason = self._read_status()
File "/usr/lib/python3.6/http/client.py", line 258, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "/usr/lib/python3.6/socket.py", line 586, in readinto
return self._sock.recv_into(b)
KeyboardInterrupt

遇到了同样的问题，进程在return self._sock.recv_into(b)这里卡住了

I had the same problem in windows,hangs in self._sock.recv_into(b) .Maybe once in a dozen days.I use multiprocessing and requests.But when I switch to threading, It don't hangs in the socket.This may be a complicated problem.

I'm having a similar issue and really bad times sorting it out.
My application hangs in self._sock.recv_into(b) without throwing any exception. I have configured pool_manager.connection_pool_kw["timeout"]  with a small timeout.
I tried to trace the problem by including the hanging_threads package in the module where the hang happens. The hang happens in a client stub generated by swagger codegen from an openapi schema.
This is how I managed to get the traceback:
from hanging_threads import start_monitoring monitoring_thread = start_monitoring()
I can apparently fix the problem by inserting a little delay before issuing the http request but I'm not sure why. Maybe I'm trying to issue an http request in the same stack where I'm handling a request that I just received from the same source. Any help would be much appreciated
The following is the traceback of the hang
--------Thread<PHONE_NUMBER>46208 "Thread-12" hangs ----------
File "/p37/threading.py", line 890, in _bootstrap
self._bootstrap_inner()
File "/p37/threading.py", line 926, in _bootstrap_inner
self.run()
File "/p37/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "/p37/socketserver.py", line 650, in process_request_thread
self.finish_request(request, client_address)
File "/p37/socketserver.py", line 360, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/p37/socketserver.py", line 720, in init
self.handle()
File "/p37/site-packages/werkzeug/serving.py", line 345, in handle
BaseHTTPRequestHandler.handle(self)
File "/p37/http/server.py", line 426, in handle
self.handle_one_request()
File "/p37/site-packages/werkzeug/serving.py", line 379, in handle_one_request
return self.run_wsgi()
File "/p37/site-packages/werkzeug/serving.py", line 323, in run_wsgi
execute(self.server.app)
File "/p37/site-packages/werkzeug/serving.py", line 312, in execute
application_iter = app(environ, start_response)
File "/p37/site-packages/flask/cli.py", line 337, in call
return self._app(environ, start_response)
File "/p37/site-packages/flask/app.py", line 2464, in call
return self.wsgi_app(environ, start_response)
File "/p37/site-packages/flask/app.py", line 2447, in wsgi_app
response = self.full_dispatch_request()
File "/p37/site-packages/flask/app.py", line 1950, in full_dispatch_request
rv = self.dispatch_request()
File "/p37/site-packages/flask/app.py", line 1936, in dispatch_request
return self.view_functionsrule.endpoint
File "/p37/site-packages/my_app/init.py", line 49, in ast
STORYBOARD_FSM.ast_request()
File "/p37/site-packages/my_app/my_app.py", line 123, in ast_request
self._state.ast()
File "/p37/site-packages/my_app/my_app.py", line 231, in ast
self.context.transition_to(Reading())
File "/p37/site-packages/my_app/my_app.py", line 116, in transition_to
self._state.do()
File "/p37/site-packages/my_app/my_app.py", line 184, in do
self.context.transition_to(RunningLookAt())
File "/p37/site-packages/my_app/my_app.py", line 116, in transition_to
self._state.do()
File "/p37/site-packages/my_app/my_app.py", line 245, in do
embs.call_look_at_api(point)
File "/p37/site-packages/my_app/my_service.py", line 62, in call_look_at_api
api_instance.look_at_post(body)
File "/swagger_client/api/idle_api.py", line 148, in look_at_post
(data) = self.look_at_post_with_http_info(body, **kwargs)  # noqa: E501
File "/swagger_client/api/idle_api.py", line 221, in look_at_post_with_http_info
collection_formats=collection_formats)
File "/swagger_client/api_client.py", line 321, in call_api
_preload_content, _request_timeout)
File "/swagger_client/api_client.py", line 152, in __call_api
_request_timeout=_request_timeout)
File "/swagger_client/api_client.py", line 364, in request
body=body)
File "/swagger_client/rest.py", line 274, in POST
body=body)
File "/swagger_client/rest.py", line 166, in request
headers=headers)
File "/p37/site-packages/urllib3/request.py", line 80, in request
method, url, fields=fields, headers=headers, **urlopen_kw
File "/p37/site-packages/urllib3/request.py", line 171, in request_encode_body
return self.urlopen(method, url, **extra_kw)
File "/p37/site-packages/urllib3/poolmanager.py", line 336, in urlopen
response = conn.urlopen(method, u.request_uri, **kw)
File "/p37/site-packages/urllib3/connectionpool.py", line 677, in urlopen
chunked=chunked,
File "/p37/site-packages/urllib3/connectionpool.py", line 421, in _make_request
httplib_response = conn.getresponse()
File "/p37/http/client.py", line 1344, in getresponse
response.begin()
File "/p37/http/client.py", line 306, in begin
version, status, reason = self._read_status()
File "/p37/http/client.py", line 267, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "/p37/socket.py", line 589, in readinto
return self._sock.recv_into(b)
--------Thread<PHONE_NUMBER>53504 "Thread-11" died  ----------

I am also facing similar issue, using Python3.7
Code:
import speech_recognition as sr
r = sr.Recognizer()
with sr.Microphone() as source:
print("Hello World 1")
audio = r.listen(source)
voice_data = r.recognize_google(audio)
print(voice_data)
Error:-
voice_data = r.recognize_google(audio)
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\site-packages\speech_recognition_init_.py", line 840, in recognize_google
response = urlopen(request, timeout=self.operation_timeout)
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\urllib\request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\urllib\request.py", line 525, in open
response = self._open(req, data)
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\urllib\request.py", line 543, in _open
'_open', req)
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\urllib\request.py", line 503, in _call_chain
result = func(*args)
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\urllib\request.py", line 1345, in http_open
return self.do_open(http.client.HTTPConnection, req)
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\urllib\request.py", line 1320, in do_open
r = h.getresponse()
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\http\client.py", line 1336, in getresponse
response.begin()
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\http\client.py", line 306, in begin
version, status, reason = self._read_status()
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\http\client.py", line 267, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\socket.py", line 589, in readinto
return self._sock.recv_into(b)
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host

I'm having the same issue and it turns out that it is the socket getting disconnected. It works fine once the TCP keep alive options are set explicitly:
# Set TCP keep alive options to avoid HTTP requests hanging issue
# Reference: https://stackoverflow.com/a/14855726/2360527
import platform
import socket
import urllib3.connection

platform_name = platform.system()
orig_connect = urllib3.connection.HTTPConnection.connect
def patch_connect(self):
    orig_connect(self)
    if platform_name == "Linux" or platform_name == "Windows":
        self.sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1),
        self.sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_KEEPIDLE, 1),
        self.sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_KEEPINTVL, 3),
        self.sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_KEEPCNT, 5),
    elif platform_name == "Darwin":
        TCP_KEEPALIVE = 0x10
        self.sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1)
        self.sock.setsockopt(socket.IPPROTO_TCP, TCP_KEEPALIVE, 3)
urllib3.connection.HTTPConnection.connect = patch_connect

import requests
requests.get(...)

Requests version: requests==2.24.0
Useful links:

https://stackoverflow.com/a/14855726/2360527
https://stackoverflow.com/a/15148308/2360527