Render Haskell arguments without brackets

It would be better to render Haskell function calls without brackets:
foo 1 2

instead of
foo (1) (2)

Implemented in #327.


Update sbt to 1.5.5

Updates org.scala-sbt:sbt from 1.5.4 to 1.5.5.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Files still referring to the old version number
The following files still refer to the old version number (1.5.4).
You might want to review and update them manually.
.bsp/sbt.json

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.scala-sbt", artifactId = "sbt" } ]

labels: library-update, semver-patch, old-version-remains

Superseded by #464.


Add constraint check on computation_order to fix some specific case

I put an explicit constraint on staged: The first element should be in the forward part, and the second element is either in the recomputation part or it is the same with the first one.
Also, the first element of retained should be in the forward part, and the second element should be in the backward part (when backprop_two_phase mode.)
Along that, I fixed several points in the implementation.
I also added one test case that we previously couldn't run.

/test

/test


⚠ Ixtanet SAT has degraded performance

In e7be311, Ixtanet SAT ($MEDIA_SAT) experienced degraded performance:

HTTP code: 200
Response time: 20631 ms

Resolved: Ixtanet SAT performance has improved in dbfc4fc after 296 days, 15 hours, 46 minutes.


iOS-RNFileSelector not showup as expected

There is a log raised up said:
Warning: Attempt to present <FileBrowser.FileBrowser: 0x1038da000>  on <UINavigationController: 0x10382ec00> which is already presenting <RCTModalHostViewController: 0x1027f1ea0>
Maybe I miss some step in install?

This issue is releated to #21


Add new layout for the player on mobile

With larger buttons. Likely will need multiple lines to fit everything acceptably.

Merging this with #153


CI tests failing

Apparently it's because of a lack of memory
https://github.com/openjournals/joss-reviews/issues/5598#issuecomment-1610198924
I think #34 is a sign that there are unwanted memory leaks. Curious about the answer there.

@thorek1 did you see this?
https://github.com/JuliaLang/julia/issues/39396#issuecomment-768456099

I removed windows + Julia 1.8 from CI runs so now it passes. But I will dig deeper what was the cause there.


fix: bugs, forms, template and authorization

You can check what i did it from django-list i mean about authorization

great work.


Fully support Bazel generated files

[x] Show generated sources in Xcode: https://github.com/buildbuddy-io/rules_xcodeproj/pull/65
[x] Enable building of the generated sources listed in Xcode, from the command line: https://github.com/buildbuddy-io/rules_xcodeproj/pull/66
[x] Xcode builds generated sources automatically (as a dependency of other targets): https://github.com/buildbuddy-io/rules_xcodeproj/pull/113
[x] Show other generated files in Xcode (resources, entitlements, Info.plists, etc.)
[x] Show inputs of generated files, transitively, in Xcode: https://github.com/buildbuddy-io/rules_xcodeproj/pull/114
[x] Don't create Xcode targets for tools dependencies: #212

I think this is now done at the base level. As we add more generated files, like entitlements, we will support them in their changes if needed.


ImportError: DLL failed while importing _pyllamacpp: The specified module could not be found

This happens when I try to install gpt4all gui

No I dont have conda installed. just pip and python 3.10.11

Also I am using windows on a virtual machine running on linux. I dont know if that is related.

Yeah probably, I didn't try on a VM, so I cannot tell.
If you can downgrade to python 3.9 and try.
Also if you have Linux, why trying it on windows :laughing:  ?!! on Linux is working like a charm!

I was able to fix this error on my windows pc after installing the Microsoft C and C++ (MSVC) runtime libraries.
https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170

Thank you very much @tzaeb for the solution. I appreciate it!

I was able to fix this error on my windows pc by installing the Microsoft C and C++ (MSVC) runtime libraries. https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170

I installed MSVC, but the problem still there. Don't know how to solve it.


Caravel with HTTPS in gunicorn

Hello I am trying to add HTTPS to Caravel... I made a hack:
/usr/local/bin/caravel (VPS, Debian 8 64bits)
        cmd = (
            "gunicorn "
            "-w {workers} "
            "--timeout {timeout} "
            "--certfile=/etc/ssl/certs/7524b7242d4e83b4.crt "
            "--keyfile=/etc/ssl/private/server.key "
            "-b <IP_ADDRESS>:{port} "

It works. But I want to pass with arguments the values... in future updates I don't want to repeat the task.
I modify the caravel binary, I add to options:
@manager.option(
    '-t', '--timeout', default=config.get("CARAVEL_WEBSERVER_TIMEOUT"),
    help="Specify the timeout (seconds) for the gunicorn web server")
@manager.option(
    '-c', '--certfile', default="",
    help="Specify certificate path of https for the gunicorn web server")
@manager.option(
    '-k', '--keyfile', default="",
    help="Specify key path of https for the gunicorn web server")

And:
   else:
        cmd = (
            "gunicorn "
            "-w {workers} "
            "--timeout {timeout} "
            "--certfile={certfile} "
            "--keyfile={keyfile} "
#           "--certfile=/etc/ssl/certs/7524b7242d4e83b4.crt "
#           "--keyfile=/etc/ssl/private/server.key "
            "-b <IP_ADDRESS>:{port} "
 #```

But didn't works.

The idea to post this issues is share the hack and if someone wants to able https in a better way help me to make a better hack and pass arguments from command line.

Better put an http proxy like nginx before gunicorn and do the ssl termination there. There's nothing caravel specific so you should find plenty of examples on the internet.

I like the idea to have a "pure python" solution without third party things...

It's really easy to just run the gunicorn process yourself too.

Hello I upgrade to 0.15 and start server is different.
I installed Superset in virtualenv in /opt/superset.
So you can run manually gunicorn or superset with this command:
cd /opt/superset/lib/python3.4/site-packages
nohup gunicorn --certfile=/etc/ssl/certs/4ccf2cbf0009d8e9.crt --keyfile=/etc/ssl/private/server.key -b <IP_ADDRESS>:8088 superset:app &

I am having a similar problem: HTTP works perfectly, but when I config ALB with HTTPS, always get error 502 Bad gateway.
I have tried:
set ENABLE_PROXY_FIX = True in superset_config,
and set FORWARDED_ALLOW_IPS=* as Environment variable,
but not luck.
FYI, my Gunicon version is 19.7.1, superset is 0.18.5.
I am wondering whether there is anything else I can try? I tried to replicate the error locally with haproxy, but it seems that haproxy does not have the problem, only ALB has this error. I have sent the whole days on it, but no progress at all. Any help and tips are appreciated !
Thanks
Jay

we are having the same issue. This is a very common reuirement and I am surprised that I have to do so much digging and apparently there is no easy fix...

Sandip

Hi,

How  can i set SSL certificate files setting in gunicorn ?
Is any specific command or file for SSL configuration, If yes please explain ...

Please refer to the gunicorn docs for this.


sveltekit not working anymore with v0.12.x

Describe the bug
with v0.11.8 it worked, every version after tailwind classes are not there anymore
Minimal Reproductions
i have exact code from sveltekit documentation from frontpage

Are you using Windows? Can you try with v0.12.3? Thanks

yes i am using windows and your fix solved it! thank you very much :)


Textcontent

Add spec compliant getTextContent, setTextContent, and normalize functions

One caveat, normalized text nodes are always new nodes. Spec wants them to be mutated, but new nodes is far simpler.

Added support for normalize on document and document fragment nodes.

Is it still true that normalized nodes are new vs mutated?

LGTM.

Yes, normalized nodes are new instead of mutated in this implementation. I could probably try to mutate the "lead" text node instead, but it would be a bit more complicated.


Remove Rubber Rounds, Give Security Disablers

About the PR
As per #26443, removes all ability obtain rubbers, perhaps they can be readded later when someone figures out how to balance this hell.

Removes all recipes related to rubbers, boxes, mags, rounds. (Not beanbag shells.)
Replaces all security's sidearms with the lethal variant, meaning they have one mag in the gun and one spare. (The detective just got their non-lethal speedloader removed.)
Removes the research tech for rubbers, puts beanbags as roundstart tech in the sec techfab.

To replace rubbers, a disabler spawns in every security officer's locker.

Why / Balance
The linked issue covers most of the "why". But in short, rubbers are extremely hard to balance with disabling tech alongside it, we have a system where rubbers just entirely beat out disablers in any situation currently.
Media

[X] This PR does not require an ingame showcase

Changelog
:cl:

add: Added disablers to every security officer locker.
remove: Any way to obtain rubber bullets has been removed.

Could disabler also get added to secfab? Now that sec will rely on it more, we should probably have option to print them if there are resources... Add to riot tech I guess if roundstart feels to powerful?

Could disabler also get added to secfab? Now that sec will rely on it more, we should probably have option to print them if there are resources... Add to riot tech I guess if roundstart feels to powerful?

I could, but I also don't think it'll be an issue. Most maps will still have mapped spare disablers and you can order more from cargo with the nonlethals crate.

Tranqs should also be examined, they're abused quite heavily
Also stingers too, which are based on rubbers

BASED ASF

Is it possible to try to create a balance? I have not seen any attempt to balance the rubber. Reduce stamina damage? To make sure that rubber could not penetrate a hard suit and heavy armor?

Is it possible to try to create a balance? I have not seen any attempt to balance the rubber. Reduce stamina damage? To make sure that rubber could not penetrate a hard suit and heavy armor?

Then this results in rubbers in pistols being underwhelming. I think removing them is the way to go, disablers & smg disablers fulfill the purpose that rubbers have anyways

Rubber is the only way to stun someone after being hit by an EMR.

different ways to stun without battery:

slipping
beanbags
tranq

we need energy bola

BASED ASF

I better get 2 lethal mags to fill the hole in my heart

different ways to stun without battery:
* slipping

* beanbags

* tranq

You forgot truncheon, how could you?!

i think this change will just result in more people getting magdumped with lethals when they run out of other options instead of at least having rubbers as a backup

i think this change will just result in more people getting magdumped with lethals when they run out of other options instead of at least having rubbers as a backup

This is more an RP / admin issue - security officers by law should not be magdumping lethals into someone just because they cant hit stun batons.

Rubber is the only way to stun someone after being hit by an EMP.

Per other replies, there is the option of advanced riot control from science, for stun options without battery. Also bolas, stinger grenades, flashing + slipping, etc. In my opinion EMPs should be a valid counter to the 'common' stun options for sec.

Per other replies, there is the option of advanced riot control from science, for stun options without battery. Also bolas, stinger grenades, flashing + slipping, etc. In my opinion EMPs should be a valid counter to the 'common' stun options for sec.

You can defend yourself with points, and a grenade is more likely to stun your own than the enemy. Most of these suggestions are not so convenient or even harmful. Antags are already strong, and further strengthening them I think breaks the balance between sec and antags. If there will be no rubber, the only good option for stun will be stanbaton, which can be easily discharged by EMP. Do antags really suffer so much that rubber keeps them out of play?
Translated with DeepL.com (free version)

A well prepared syndie is already a monster to deal with, why are we making it even harder for security to do their jobs? Like others have said, why not attempt to balance rubbers before going this full nuclear option that further limits security’s ability to do their job without using lethals

different ways to stun without battery:

slipping
beanbags
tranq

Slipping is not reliable enough to cuff, and both beanbags and tranqs are shotgun only, further cementing the dominance of the shotgun meta.

To put this into perspective, rubber bullets have been in the game for ~4 years and no one has found a way to balance them yet. It's always been a "Hey someone should fix that," but clearly this has not been done. Stamina code is an absolute mess to deal with in it's current state which makes it none the better.

To put this into perspective, rubber bullets have been in the game for ~4 years and no one has found a way to balance them yet. It's always been a "Hey someone should fix that," but clearly this has not been done. Stamina code is an absolute mess (from what I've been told) to deal with in it's current state which makes it none the better.

I get that it’s a bitch to work with, and that no one wants to do it, but I genuinely don’t see this going any other way than once an EMP goes out, security goes full lethals due to a lack of accessible options. I’d much rather see rubbers nerfed to near uselessness, to be used as an absolute last resort, than limiting sec’s options by removing them entirely.

If hypothetically an antag uses an EMP to prevent their arrest, then magdumping them with lethals is viable and should be encouraged rather than "well they tried to counterplay you, now just use rubbers which didn't get counterplayed".
I'm fine with rubbers being removed because while they do serve a purpose and can theoretically be balanced (weak against armor, etc.), the overall gain from removing rubbers is IMO greater than waiting for a proper fix or just keeping them in.

A well prepared syndie is already a monster to deal with

Then bring out the big guns. A well-prepared antag should be stronger than a security officer with anything less than an armory firearm.

I get that it’s a bitch to work with, and that no one wants to do it, but I genuinely don’t see this going any other way than once an EMP goes out, security goes full lethals due to a lack of accessible options. I’d much rather see rubbers nerfed to near uselessness, to be used as an absolute last resort, than limiting sec’s options by removing them entirely.

All things considered, yeah lethaling someone who EMP'd you is fine escalation.  Make the rubber bullets use BluntStaminaDamageFactor for dealing stamdamage.  Make the rubber bullets use BluntStaminaDamageFactor for dealing stamdamage. This will actually make stun dependant on the resistance for blunt, that is kinda realistic.

Dude thank you some one else gets me. I’ve been asking what people think about that for ages. And  while we’re at it, make disabler/baton stuns based on electrical resistance. Not many armors, if any, have some, but it opens up the ability for specific suits or traitor items to counter stuns more.


"Conflicts to Avoid:" field in the "Requested session has been scheduled for ..." email is empty

Describe the issue
The "Conflicts to Avoid:" field in the email that confirms scheduling is empty. I assume this is a bug. If not the field should be removed.
Code of Conduct

[X] I agree to follow the IETF's Code of Conduct

The message should show the group conflicts from the session request, grouped by conflict type.

It just empty. Actually "Length if Session(s):" is also empty:


[Feature request] - per sensor type configurable actions (notifications too?)

Idea: to have possibility configure actions per sensor type

to close valve(s) and/or turn off switch(es) in case of water leak,
another one in case of fire/smoke alarm.

another one in case of fire/smoke alarm.

I agree to this one.

to close valve(s) and/or turn off switch(es) in case of water leak,

This is no responsibility of an alarm system.

Actually not agree with You. Nowadays - water leak is a big issue, no less if compare with smoke/fire.
Same kind of environmental disaster.
Standalone alarm systems (like DSC) allow to connect water leak sensors and treat them as separate kind of alarm.

+1 for this feature please.
I have both internal and external sounders and ideally only need to action the internal sounder when the smoke alarm sensors trigger.
BTW, I installed Alarmo yesterday after adding a Konnected board about a month ago and not getting round to setting up the automations etc. With Alarmo, my alarm system was up and running within minutes!  Thanks for your work on this.

Agree that it would be nice to have different actions for environmental sensors than the contact/motion sensors!


Add possibility to provide custom templates via command line parameter.

Default is using the compiled in templates.

Won't do.


Add function to analyze.py

Add function to compute weights for a given model selection criterion.

Thanks! I rewrote it using the new interface. If it looks fine to you, then I'll merge and create a test in a different PR.


org.apache.hadoop.hbase.client.RetriesExhaustedException: Can't get the locations

Params
spark-submit
--conf "spark.ui.port=4042"
--conf "spark.sql.codegen=true"
--conf "hbase.zookeeper.quorum=dmp1,dmp2,dmp3"
--conf "zookeeper.znode.parent=/hbase-unsecure"
--class test.Example
--master local[2]
--name test
--files /etc/hadoop/conf/core-site.xml,/etc/hbase/conf/hbase-site.xml
--jars /usr/hdp/current/hbase-client/lib/htrace-core-3.1.0-incubating.jar,/usr/hdp/current/hbase-client/lib/hbase-client.jar,/usr/hdp/current/hbase-client/lib/hbase-common.jar,/usr/hdp/current/hbase-client/lib/hbase-server.jar,/usr/hdp/current/hbase-client/lib/guava-12.0.1.jar,/usr/hdp/current/hbase-client/lib/hbase-protocol.jar,/usr/hdp/current/hbase-client/lib/htrace-core-3.1.0-incubating.jar,/root/lonly/shc-core-1.1.1-2.1-s_2.11.jar
/home/test/testshc_2.11-0.1.jar
Error

Maybe you want to try: copy  hbase-site.xml  to spark conf directory.

@thewilliamzhang  Yes. You can put hbase properties into a config file or json format. Then, as this example shows here, you can pass config file (HBaseRelation.HBASE_CONFIGFILE) or json (HBaseRelation.HBASE_CONFIGURATION) into option() function.

@weiqingy  i will copy hbase-site.xml to spark conf directory, but don't work.
my env:  spark, hadoop, hbase also open kerberos 。 how i do it ?
can give me your email ?


Refactor /api/v2/wms

I had not seen this controller, but neiither it nor the proxy, so there's no need for refactor. Do you agree, @Kartones?

probably nginx cc @zenitraM

no... just move it to Carto::Api namespace and we're done, no? is what I did with the public dashboard json api endpoints

You cleaned code, at least. WMS needs no change at all, so I'm closing this without change.

I'm not sure if this is used at all (since we moved to use wmsproxy)


replace fs sal with fs2 and fix references

In addition to adding docstrings and make sure tests are passing
https://github.com/js-next/js-ng/search?q=j.sal.fs&unscoped_q=j.sal.fs

Maybe update this PR and merge it too
https://github.com/js-next/js-ng/pull/56/files

seems we need to remove the file named fs2 in API docs?

APIs are autogenerated, will be updated when we merge again


Nihon Kohden EEG file reader WIP

This is a reader module for Nihon Kohden native EEG file format.
It is a WIP, so for now it does not read events, no metadata and the channel names are the standard ones (it can be renamed through a file).
I still need to add a test.
I leave it here so we can start doing the collaborative stuff and if anyone has any interest, they can chip in.

This pull request introduces 1 alert when merging 4b922d80ad027ca3147f656e50eb68b6c18c4a3e into ce50c2b20ac1197d79e68665900c9f6646505b13 - view on LGTM.com
new alerts:

1 for Unused local variable

Comment posted by LGTM.com

@fraimondo can you get some tiny file in mne-testing-data? I don't have any Nihon Koden data, but once that testing file is there, I (and others) can help with this.

I need to check who has the system that can provide me with a testing dataset. I’ll come back soon.

On 27 Mar 2019, at 20:11, Eric Larson<EMAIL_ADDRESS>wrote:
@fraimondo https://github.com/fraimondo can you get some tiny file in mne-testing-data? I don't have any Nihon Koden data, but once that testing file is there, I (and others) can help with this.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/mne-tools/mne-python/pull/6017#issuecomment-477308617, or mute the thread https://github.com/notifications/unsubscribe-auth/AESRg0sW45D_IRbW0hsA_8dHkL48ApZeks5va8JPgaJpZM4bamKI.

Just created a PR in mne-testing-data.

On 2 Apr 2019, at 14:39, Fede Raimondo<EMAIL_ADDRESS>wrote:
I need to check who has the system that can provide me with a testing dataset. I’ll come back soon.

On 27 Mar 2019, at 20:11, Eric Larson<EMAIL_ADDRESS><EMAIL_ADDRESS>wrote:
@fraimondo https://github.com/fraimondo can you get some tiny file in mne-testing-data? I don't have any Nihon Koden data, but once that testing file is there, I (and others) can help with this.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/mne-tools/mne-python/pull/6017#issuecomment-477308617, or mute the thread https://github.com/notifications/unsubscribe-auth/AESRg0sW45D_IRbW0hsA_8dHkL48ApZeks5va8JPgaJpZM4bamKI.

@fraimondo any time to come back to this in the next couple of weeks to make it into 0.21? You now have your testing file in mne-testing-data.
If not, okay for me to push some commits to get tests working?

Just updated the code. This works. Can be improved by reading the annotations and more metadata.

There's an issue with the channel names. Hold the PR.

Just updated the code. This works. Can be improved by reading the annotations and more metadata.

Awesome, I was just about to look into this to see if we could get into usable shape in the next week to make it into 0.21. Let me know if you need help

Can't figure out this one. I'm getting None as the cals on the _read_segment_file function. I guess it's related to this commit: https://github.com/mne-tools/mne-python/commit/06f232cd75c203765b7165a8d94df1a52d5c7cea
So now I use the _mult_cal_one function. But it still fails. Apparently the length of the idx parameter does not match data.
It gives me an error that it can't broadcast the data in _mult_cal_one. So here's the issue:
> /Users/fraimondo/dev/mne-python/mne/io/nihon/nihon.py(394)_read_segment_file()
    392         import pdb; pdb.set_trace()
    393         # block_data = ((block_data[idx, :] * cals + offsets) * gains)
--> 394         _mult_cal_one(data, block_data, idx, cals, mult)
    395         data[:, :] += offsets
    396         data[:, :] *= gains

ipdb> data.shape
(1, 5800)
ipdb> idx.shape
(24,)

any clue?

I recently made some changes to this function. Okay for me to look and push a commit tomorrow?

Feel free. PR is ready to be merged one this is solved.
The only solution I have in mind is to set cals=1 and then do the (*scaling + offset) * gains before calling _mult_cal_one.

On 7 Sep 2020, at 14:39, Eric Larson<EMAIL_ADDRESS>wrote:
I recently made some changes to this function. Okay for me to look and push a commit tomorrow?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/mne-tools/mne-python/pull/6017#issuecomment-688298544, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABCJDAZ6MFWBPX6BKX54MIDSETIBJANCNFSM4G3KMKEA.

Setting cals=1 should be fine. The edf reader was updated to behave this way.
Basically the second arg of _mult_cal_one (one) should always have shape (n_data_channels, n_times) (and n_times can be shorter if you use it in chunks / with time-based slicing) then the _mult_cal_one will subindex the idx from n_data_channels that it needs. It's a bit wacky but it should work. The idx is really there just to tell you which rows of the one you actually need to fill / will be used.

Yes, I got that.
But when a projector is applied while picking channels (as in the _test_raw_reader function), the mult parameter has shape (n_proj, n_channels). So the way I was offsetting and multiplying by units does not work, since data will have shape (n_proj, n_times).
I’ll do the cal=1 trick.

On 7 Sep 2020, at 14:45, Eric Larson<EMAIL_ADDRESS>wrote:
Setting cals=1 should be fine. The edf reader was updated to behave this way.
Basically the second arg of _mult_cal_one (one) should always have shape (n_data_channels, n_times) (and n_times can be shorter if you use it in chunks / with time-based slicing) then the _mult_cal_one will subindex the idx from n_data_channels that it needs. It's a bit wacky but it should work. The idx is really there just to tell you which rows of the one you actually need to fill / will be used.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/mne-tools/mne-python/pull/6017#issuecomment-688301457, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABCJDA5AL43WJ7PB4ZUIUGTSETIVBANCNFSM4G3KMKEA.

But when a projector is applied while picking channels (as in the _test_raw_reader function), the mult parameter has shape (n_proj, n_channels). So the way I was offsetting and multiplying by units does not work, since data will have shape (n_proj, n_times).

You should not need to worry about the shape of mult. If you make sure one has shape (n_channels, n_times), internally _mult_cal_one will subselect the correct channels after projection (this actually happens just by mult @ one, more or less). So your job as the reader-writer is to make sure one is of shape (n_channels, n_times) with the idx indices populated. Then everything should work. You shouldn't ever use cals yourself, and you should make sure that you know that they will be multiplied into the data values. So if your pattern is one = (one * a + b) * c as above, you can either set cals to 1. for all channels in info['ch'][ii]['cal'], or you can set them to c in the expression above and only take care of the one = (one * a + b) part of the expression (and let _mult_cal_one do the cals mult for you). What you don't want is it happening in both places.

CIs complain @fraimondo
maybe rebase on master to fix it?

Codecov is not happy with the coverage (80%). It's just a few lines testing for proper headers in the files / right values in the right places. I don't really know how to test those lines.
The other two are unrelated to this PR:
================================== FAILURES ===================================
_________ test_make_inverse_operator_diag[testing_data-testing_data] __________
mne\minimum_norm\tests\test_inverse.py:749: in test_make_inverse_operator_diag
    _compare_inverses_approx(inverse_operator_diag, inv_op, evoked,
mne\minimum_norm\tests\test_inverse.py:183: in _compare_inverses_approx
    assert corr > ctol
E   assert 0.7766994175372354 > 0.99

@fraimondo let me know when you're done and I'll see if I can simplify the _mult_cal_one stuff. I also see that info['chs'][ii]['unit'] is being used in a way that it shouldn't -- I'll add a check for that and fix it in this PR

I'm fine now. I think I got enough codecov. At least I don't see a failed test.

@fraimondo pushed a commit to simplify. Feel free to address @agramfort's remaining comment then hopefully we're good to go!

Thx @fraimondo

Hello,
A colleague posted a NK .EEG file I don't know how to read:

https://neuroimage.usc.edu/forums/t/error-message-when-reviewing-raw-file-for-the-edf-files-generated-by-nihon-kohden/23798/11
https://drive.google.com/file/d/1tGZGev8YZ6YooSZyLQfwKAbUSxV3ZL2u/view?usp=sharing

In case you have interesting sources of information about the NK file formats...
Thanks!
François

Hello,
A colleague posted a NK .EEG file I don't know how to read:

https://neuroimage.usc.edu/forums/t/error-message-when-reviewing-raw-file-for-the-edf-files-generated-by-nihon-kohden/23798/11
https://drive.google.com/file/d/1tGZGev8YZ6YooSZyLQfwKAbUSxV3ZL2u/view?usp=sharing

In case you have interesting sources of information about the NK file formats...
Thanks!
François

MNE Python complains too:
In [3]: import mne
   ...:
   ...: raw = mne.io.read_raw_nihon('resting.eeg')
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-3-c17d6c9c0e8b> in <module>
      1 import mne
      2
----> 3 raw = mne.io.read_raw_nihon('resting.eeg')

~/work/src/mne-python/mne/io/nihon/nihon.py in read_raw_nihon(fname, preload, verbose)
     44     mne.io.Raw : Documentation of attribute and methods.
     45     """
---> 46     return RawNihon(fname, preload, verbose)
     47
     48

<decorator-gen-224> in __init__(self, fname, preload, verbose)

~/work/src/mne-python/mne/io/nihon/nihon.py in __init__(self, fname, preload, verbose)
    313         logger.info('Loading %s' % data_name)
    314
--> 315         header = _read_nihon_header(fname)
    316         metadata = _read_nihon_metadata(fname)
    317

~/work/src/mne-python/mne/io/nihon/nihon.py in _read_nihon_header(fname)
    134         version = np.fromfile(fid, '|S16', 1).astype('U16')[0]
    135         if version not in _valid_headers:
--> 136             raise ValueError(
    137                 'Not a valid Nihon Kohden EEG file ({})'.format(version))
    138

ValueError: Not a valid Nihon Kohden EEG file (BFA NKC04/01/16)

MNE Python complains too:
In [3]: import mne
   ...:
   ...: raw = mne.io.read_raw_nihon('resting.eeg')
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-3-c17d6c9c0e8b> in <module>
      1 import mne
      2
----> 3 raw = mne.io.read_raw_nihon('resting.eeg')

~/work/src/mne-python/mne/io/nihon/nihon.py in read_raw_nihon(fname, preload, verbose)
     44     mne.io.Raw : Documentation of attribute and methods.
     45     """
---> 46     return RawNihon(fname, preload, verbose)
     47
     48

<decorator-gen-224> in __init__(self, fname, preload, verbose)

~/work/src/mne-python/mne/io/nihon/nihon.py in __init__(self, fname, preload, verbose)
    313         logger.info('Loading %s' % data_name)
    314
--> 315         header = _read_nihon_header(fname)
    316         metadata = _read_nihon_metadata(fname)
    317

~/work/src/mne-python/mne/io/nihon/nihon.py in _read_nihon_header(fname)
    134         version = np.fromfile(fid, '|S16', 1).astype('U16')[0]
    135         if version not in _valid_headers:
--> 136             raise ValueError(
    137                 'Not a valid Nihon Kohden EEG file ({})'.format(version))
    138

ValueError: Not a valid Nihon Kohden EEG file (BFA NKC04/01/16)


[Bug] Incomptability with TypeScript 5.4

1. Describe the bug
node_modules/@motionone/dom/types/animate/types.d.ts:5:18 - error TS2430: Interface 'CSSStyleDeclarationWithTransform' incorrectly extends interface 'Omit<CSSStyleDeclaration, "direction" | "transition">'.
  Types of property 'x' are incompatible.
    Type 'number' is not assignable to type 'string'.

5 export interface CSSStyleDeclarationWithTransform extends Omit<CSSStyleDeclaration, "direction" | "transition"> {

2. IMPORTANT: Provide a CodeSandbox reproduction of the bug
If it's really necessary, I can make one. but the issue is that CSSStyleDeclaration was updated to have x, y, z b string instead of number.
3. Steps to reproduce
Steps to reproduce the behavior:

Create a TS project with TS5.4
Add @motionone/dom
Run tsc
See error

4. Expected behavior
It compiles without issue.
5. Video or screenshots
See above error snippet
6. Browser details
N/A

Any solution? Thanks :)

This should be fixed in 10.18!


Pipeline run to produce forecasts with TOS errors

IceNet version: 0.2.3

Description
Running a forecast, there are some odd data errors. Some of these might be down to expver issues
What I Did
Downloaded all available ERA5 data for the models in question. Processed out using icenet_process_era5. Got this:

Verified source data looks "reasonable" at first glance, so need to investigate the cause

Looking at the normalised data properly, it's not actually a problem, so the issue is coming from elsewhere


Adds support for filename aliases

Motivation
I'm using this plugin on https://dylangattey.com (and it's great!). But I realized I was getting some cache misses with my service worker. Taking a look, I precache the files https://dylangattey.com/about.html and https://dylangattey.com/index.html at the routes https://dylangattey.com/about.html and https://dylangattey.com/index.html. But that's wrong. With pretty URL rewrites, those URLs will never be hit in production, since I've rewritten all URLs to take off the index.html. This is pretty common.
Instead, I'd ideally want the file https://dylangattey.com/index.html cached under the key https://dylangattey.com/, and https://dylangattey.com/about.html under the key https://dylangattey.com/about/. This PR makes that possible!
Implementation
I converted all filenames to a map of filename => file alias and propagated that throughout so that the plugin can easily work with aliases. I also added support for multiple aliases for the same file. Here's a demo of the config to make this work:
workbox:
  precache_recent_posts_num: 5
  precache_glob_directory: /
  precache_glob_patterns:
    - 'index.html': ['/', 'projects/']  # Notice the multiple aliases here
    - 'about/index.html': about/        # Just one alias here
    - /404.html                         # This is the default, it still works
    - /offline/index.html

Note that ignore directives don't use aliases, but they will delete all aliases for a particular filepath if it exists.
Docs
I also updated the README to mention this new case and gemspec so that a new gem can be easily published.

Thank you!


Videos not activate the download button

I used the app before and was working very good in downloading videos from the channel and also playlists, lately it not downloading videos directly from the channel, when I add the link of the channel like https://www.youtube.com/xxxxxxxx/videos or https://www.youtube.com/@xxxxxxxxx/videos (while xxx represent the channel name) the app not activate the download button to start it

Does it happen on all channels or a specific one?

all the channels which I tried (if I tried to download all the videos) but from the same channels I can download the playlists

Make sure the playlist is not set to private


Attach to process fails for project.json SDK

Environment data
dotnet --info output:
.NET Command Line Tools (1.0.0-preview2-1-003182)
Product Information:
Version:            1.0.0-preview2-1-003182
Commit SHA-1 hash:  024c726cdd
Runtime Environment:
OS Name:     Mac OS X
OS Version:  10.12
OS Platform: Darwin
RID:         osx.10.12-x64
VS Code version:
1.9.1 f9d0c687ff2ea7aabd85fb9a43129117c0ecf519
C# Extension version:
1.7.0
Steps to reproduce
Attempt to attach to a any corerun process with a global.json set to 1.0.0-preview2-1-003182.
NOTE: I do have SxS SDKs installed:
1.0.0-preview2-1-003177
1.0.0-preview2-1-003182
1.0.0-preview3-004059
1.0.0-preview4-004233
1.0.0-rc3-004534
1.0.0-rc4-004777
LAUNCH.JSON CONFIG:
{
    "version": "0.2.0",
    "configurations": [
        {
            "name": ".NET Core Attach",
            "type": "coreclr",
            "request": "attach",
            "processId": "${command.pickProcess}"
        }
    ]
}

GLOBAL.JSON CONFIG:
{
    "projects": [
        "src",
        "test"
    ],
    "sdk": {
        "version": "1.0.0-preview2-1-003182",
        "runtime": "CoreCLR",
        "architecture": "x64"
    }
}

Expected  behavior
Attach should succeed.
This was working before on this exact same project just a week or two ago, so this bug was likely introduced with 1.7.0 of the C# plugin and/or in the clrdbg included with the newer plugin.
I realize that project.json will go away on March 09, but its still the currently 'supported' SDK as of today.
Actual behavior
ERROR: Undefined MI command: logout

@dmccaffery can you enable logging (the quick method should work) and send us the results?

I am having the same issue. See results from quick method logging below. There is an error that says the debug adapter process has terminated unexpectedly.
1: (272) LaunchOptions<LocalLaunchOptions xmlns='http://schemas.microsoft.com/vstudio/MDDDebuggerOptions/2014'
1: (284) LaunchOptions  ExePath='dotnet'
1: (284) LaunchOptions  WorkingDirectory='/Projects/patient-registry'
1: (284) LaunchOptions  ExeArguments='/Projects/patient-registry/src/PatientRegistry.Web/bin/Debug/netcoreapp1.1/PatientRegistry.Web.dll'
1: (284) LaunchOptions  MIDebuggerPath='/Users/-/.vscode/extensions/ms-vscode.csharp-1.7.0/.debugger/clrdbg'
1: (284) LaunchOptions  MIMode='clrdbg'
1: (284) LaunchOptions>
1: (284) LaunchOptions
1: (284) LaunchOptions
1: (284) LaunchOptions
1: (284) LaunchOptions
1: (373) Starting: "/Users/-/.vscode/extensions/ms-vscode.csharp-1.7.0/.debugger/clrdbg" --interpreter=mi
1: (383) DebuggerPid=82938
1: (386) ->=message,text="--------------------------------------------------------------------------------\nYou may only use the Microsoft .NET Core Debugger (clrdbg) with Visual Studio\nCode, Visual Studio or Visual Studio for Mac software to help you develop and\ntest your applications.\n--------------------------------------------------------------------------------\n",send-to="output-window"
1: (387) ->(gdb)
E output: {"category":"console","output":"--------------------------------------------------------------------------------\nYou may only use the Microsoft .NET Core Debugger (clrdbg) with Visual Studio\nCod
1: (387) ->(gdb)
E output: {"category":"console","output":"--------------------------------------------------------------------------------\nYou may only use the Microsoft .NET Core Debugger (clrdbg) with Visual Studio\nCode, Visual Studio or Visual Studio for Mac software to help you develop and\ntest your applications.\n--------------------------------------------------------------------------------\n","data":null,"type":"output"}
You may only use the Microsoft .NET Core Debugger (clrdbg) with Visual Studio
Code, Visual Studio or Visual Studio for Mac software to help you develop and
test your applications.
1: (431) <-1001-environment-cd /Users/-/Projects/patient-registry
1: (432) ->1001^done
1: (432) ->(gdb)
1: (434) 1001: elapsed time 2
1: (436) <-1002-gdb-set client-version "14.0.31028.1"
1: (436) ->1002^done
1: (436) ->(gdb)
1: (436) 1002: elapsed time 0
1: (436) <-1003-gdb-set client-ui "VSCode"
1: (436) ->1003^done
1: (436) ->(gdb)
1: (436) 1003: elapsed time 0
1: (436) <-1004-file-exec-and-symbols dotnet
1: (436) ->1004^error,msg="The filename, directory name, or volume label syntax is incorrect."
1: (436) 1004: elapsed time 0
1: (437) ->(gdb)
1: (442) <-logout
1: (442) ->^error,msg="Undefined MI command: logout"
1: (442) ->(gdb)
E output: {"category":"stderr","output":"ERROR: Undefined MI command: logout\n","data":null,"type":"output"}
ERROR: Undefined MI command: logout
1: (445) <--gdb-exit
R: {"success":false,"message":"Unable to start debugging. Program path 'dotnet' is missing or invalid.\r\n\r\nCLRDBG failed with message: The filename, directory name, or volume label syntax is incorrect.","request_seq":2,"command":"launch","body":{"error":{"id":1104,"format":"Unable to start debugging. Program path 'dotnet' is missing or invalid.\r\n\r\nCLRDBG failed with message: The filename, directory name, or volume label syntax is incorrect.","variables":null}},"running":false,"refs":null,"seq":0,"type":"response"}
C disconnect: {"restart":false}
R: {"success":true,"message":null,"request_seq":3,"command":"disconnect","body":null,"running":false,"refs":null,"seq":0,"type":"response"}

@crazyDiamond, is "dotnet" in the path? You can verify that by 'which dotnet' or 'dotnet --info' on your shell?

I'm able to run the program from console using and am running into the same problem as @dmccaffery when trying to debug. @rajkumar42 which path do you think dotnet is missing from?

@rajkumar42 dotnet is indeed on my path. That being said; I have multiple SDKs installed and am redirecting to the msbuild SDK in this instance using global.json, which only allows a single value these days (the sdk value).

@dmccaffery when you look at your log do you also see --
.... -file-exec-and-symbols dotnet
.... ^error,msg="The filename, directory name, or volume label syntax is incorrect."

@crazyDiamond what OS are you on? Can you send me the value for your PATH variable?

@gregg-miskelly it is now working against the 1.0.1 SDK, weird, eh?

Yup. But I will not complain :). @crazyDiamond please open a new issue if you are running into this still.


Fixed typo in custom field form

Typo (multipe instead of multiple) was creating single selection drop-down instead of multi-selection list

Thank you @swiehr  :+1:


Adds estimates post - Fixes #528

Niiiice! I'll add my feedback first thing in the morning.

Awesome, thanks @jonnilundy!


Add section about restricted Next.js imports to migration guide

That was introduced in v5 and will be removed in v6 again?


Windows Python wheels: Bad address src\epoll.cpp:100

Hello, recently I set up a new python environment on a new computer as usual, I got automatically installed pyzmq==21.0.2, and I cannot use jupyter notebook, Jupyter lab, vs code at all, the python kernel crashes every time when I open a editor, and after one second, it directly crashes and lose connection to the kernel.
This problem annoyed me for several weeks, and today I saw many people encountered this issue From December 2020 to January 2021. And I have never encountered this issue in the past.
Also, this error message is somewhat not useful and not making sense, finally I realized its pyzmq error.
I degraded it to pyzmq==19.0.2 , it finally resolved this issue.
I hope this could be fixed, or if you could push old versions of pyzmq for users to install as dependencies.
Thank you very much!

Can you test with current pyzmq 22.0.2? As far as I am aware, all of these issues are fixed in the latest release.
pyzmq has no control over error messages from the C runtime thrown by the underlying libzmq.

Can you test with current pyzmq 22.0.2? As far as I am aware, all of these issues are fixed in the latest release.
pyzmq has no control over error messages from the C runtime thrown by the underlying libzmq.

Sure, I will have a look and let you know. But could you stop letting them push 21.0.2 as dependencies? Thanks!

But could you stop letting them push 21.0.2 as dependencies?

Who are 'they'? If you pip install pyzmq you should get 22.0.2. That's all I have control over.

But could you stop letting them push 21.0.2 as dependencies?

Who are 'they'? If you pip install pyzmq you should get 22.0.2. That's all I have control over.

When I install pyzmq==22.0.2, it still has this crash problem. Then I reverted to 19.0.2, the problem resolved. Everything is working fine.

When I check dependency list, ipykernel is calling to install pyzmq, when user is installing jupyter or jupyter-lab, pyzmq==21.0.2 is automatically installed, so I hope you could let them to install pyzmq==19.0.2, not the later version.
Thank you!

Thank you for testing and confirming this is an issue in the current version!
Can you run:
python3 -m pip install pytest pyzmq==22.0.2
python3 -m pytest -v -m "not wheel and not new_console" --pyargs zmq.tests

and share the output?
Also, can you share some more information about your environment, so I can learn a bit about what makes your environment different from all of our tests?

Windows Version
Python version, and how it is installed (from Python.org, conda-forge, etc.)

@bluca any hints as to why this epoll_ctl assert would fail on Windows? This is using the libzmq-v141-x64-4_3_4 artifact on bintray.

so I hope you could let them to install pyzmq==19.0.2, not the later version.

I'm sorry, I really don't know what you mean by this. Anyone is free to install any version, so this is already the case.

Windows Version
Python version, and how it is installed (from Python.org, conda-forge, etc.)

@bluca any hints as to why this epoll_ctl assert would fail on Windows? This is using the libzmq-v141-x64-4_3_4 artifact on bintray.

Sorry, don't know - maybe @sigiesec can help

@minrk  Sorry for the late reply, I will try my best to test these on a new computer as soon as I can(to avoid damaging my environment).
For this issue, I encontered on Windows 10 1909, 20H2, python 3.6.8, 3.7.9, 3.8.6, 3.8.7, so this is not only the issue for python 3.6. So I am not sure the modified title for this issue is suitable or not. And I tried all these versions and I reinstalled windows10 and the python environment more than 20 times, this issue always appear.
I installed python 3.6.8 or other versions via windows x86_64 installer, and then I use pip to install these packages sequentially: tensorflow, tensorflow-gpu, matplotlib, scipy,scikit-learn,torch, jupyterlab. As what I said above, the jupyter need ipykernel, and ipykernel needs pyzmq. When I install jupyterlab or jupyter-notebook, it automatically install ipykernel and automatically install pyzmq=21.0.2, I have no choice. And many users don't know they installed pyzmq, and they never know the version. I manually degraded to pyzmq=19.0.2, it solves the issue.
My friend tried to use anaconda to help me to install the environment, it is ok to open the jupyter to run "hello world", but the tensorflow will fail, it's weird and it's another story.
Thank you!
All the package versions are listed below.
`
PS C:\Windows\system32> pip list
Package                Version

absl-py                0.11.0
anyio                  2.1.0
argon2-cffi            20.1.0
astor                  0.8.1
astunparse             1.6.3
async-generator        1.10
attrs                  20.3.0
backcall               0.2.0
bleach                 3.3.0
cached-property        1.5.2
cachetools             4.2.1
certifi                2020.12.5
cffi                   1.14.4
chardet                4.0.0
colorama               0.4.4
contextvars            2.4
cryptography           3.2.1
cycler                 0.10.0
dataclasses            0.8
decorator              4.4.2
defusedxml             0.6.0
entrypoints            0.3
flatbuffers            1.12
future                 0.18.2
gast                   0.3.3
google-auth            1.25.0
google-auth-oauthlib   0.4.2
google-pasta           0.2.0
grpcio                 1.32.0
h5py                   2.10.0
idna                   2.10
immutables             0.15
importlib-metadata     3.4.0
ipykernel              5.4.3
ipython                7.16.1
ipython-genutils       0.2.0
jedi                   0.18.0
Jinja2                 2.11.3
json5                  0.9.5
jsonschema             3.2.0
jupyter-client         6.1.11
jupyter-core           4.7.1
jupyter-kite           1.2.0
jupyter-server         1.3.0
jupyterlab             2.2.9
jupyterlab-pygments    0.1.2
jupyterlab-server      1.2.0
Keras-Applications     1.0.8
Keras-Preprocessing    1.1.2
kiwisolver             1.3.1
Markdown               3.3.3
MarkupSafe             1.1.1
matplotlib             3.3.4
mistune                0.8.4
mysqlclient            2.0.3
nbclient               0.5.2
nbconvert              6.0.7
nbformat               5.1.2
nest-asyncio           1.5.1
nodejs                 0.1.1
notebook               6.2.0
npm                    0.1.1
numpy                  1.19.5
oauthlib               3.1.0
opt-einsum             3.3.0
optional-django        0.1.0
packaging              20.9
pandas                 1.1.5
pandocfilters          1.4.3
parso                  0.8.1
pickleshare            0.7.5
Pillow                 8.1.0
pip                    18.1
pipdeptree             2.0.0
prometheus-client      0.9.0
prompt-toolkit         3.0.14
protobuf               3.14.0
pyasn1                 0.4.8
pyasn1-modules         0.2.8
pycparser              2.20
Pygments               2.7.4
pyparsing              2.4.7
pyrsistent             0.17.3
python-dateutil        2.8.1
pytz                   2021.1
pywin32                300
pywinpty               0.5.7
pyzmq                  19.0.2
requests               2.25.1
requests-oauthlib      1.3.0
rsa                    4.7
Send2Trash             1.5.0
setuptools             53.0.0
six                    1.15.0
sniffio                1.2.0
tb-nightly             2.5.0a20210209
tensorboard            2.4.1
tensorboard-plugin-wit 1.8.0
tensorflow             2.4.1
tensorflow-estimator   2.4.0
tensorflow-gpu         2.4.1
termcolor              1.1.0
terminado              0.9.2
testpath               0.4.4
tf-estimator-nightly   2.5.0.dev2021020901
torch                  1.7.0+cpu
torchaudio             0.7.0
torchvision            0.8.1+cpu
tornado                6.1
traitlets              4.3.3
typing-extensions      <IP_ADDRESS>
urllib3                1.24.3
wcwidth                0.2.5
webencodings           0.5.1
Werkzeug               1.0.1
wheel                  0.36.2
wrapt                  1.12.1
zipp                   3.4.0
You are using pip version 18.1, however version 21.0.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
`

Thanks for the info! I'll see if I can figure out how to debug it. Since it does not occur on my Windows VMs, I don't really feel like I have any actions available at the moment.
Were you able to run pyzmq tests with the commands I gave above? That might help narrow down the issue.

When I install jupyterlab or jupyter-notebook, it automatically install ipykernel and automatically install pyzmq=21.0.2, I have no choice

You do have a choice. You can always specify pinning of any package in the install command. For example:
pip install jupyterlab 'pyzmq<20'

ipykernel does not request 'pyzmq==22.0.2', it requests 'pyzmq' which gets the latest version by default. If you want to specify a different version, you can do that.

My friend tried to use anaconda to help me to install the environment

If you are using conda, it's a good idea to use conda to install packages like tensorflow and pyzmq that have DLL dependencies instead of mixing conda and pip. Tensorflow wheels in particular are known to have serious compatibility issues. For example:
conda create -n tensorflow tensorflow-gpu jupyterlab python=3.8

to create an environment called 'tensorflow' with tensorflow-gpu and jupyterlab with Python 3.8.

@minrk  the result is:

@zhanggyarcher could you download libzmq-v141-x64-4_3_4.zip from https://dl.bintray.com/zeromq/generic/ and run test_reqrep_tcp.exe and see if you get a similar error? If you do, could you also download the v140 version and test that?

@minrk  nothing has displayed, no error message

I am having error while installing pyzmq 19.0.2
(base) C:\Users\Cipher_X>This can take several minutes.  Press CTRL-C to abort.
'This' is not recognized as an internal or external command,
operable program or batch file.
(base) C:\Users\Cipher_X>failed
'failed' is not recognized as an internal or external command,
operable program or batch file.
(base) C:\Users\Cipher_X>
(base) C:\Users\Cipher_X>UnsatisfiableError: The following specifications were found
'UnsatisfiableError:' is not recognized as an internal or external command,
operable program or batch file.
(base) C:\Users\Cipher_X>to be incompatible with the existing python installation in your environment:
'to' is not recognized as an internal or external command,
operable program or batch file.
(base) C:\Users\Cipher_X>
(base) C:\Users\Cipher_X>Specifications:
'Specifications:' is not recognized as an internal or external command,
operable program or batch file.
(base) C:\Users\Cipher_X>
(base) C:\Users\Cipher_X>  - anaconda -> python[version='2.7.13|2.7.14|2.7.14|2.7.15|2.7.15|2.7.16|3.6.10|3.6.10|3.7.10|3.7.11|3.9.7|3.8.12|3.8.8|3.9.4|3.7.9|3.8.5|3.7.7|3.8.3|3.8.1|3.7.6|3.6.9|3.7.4|3.6.8|3.7.3|3.7.3|3.6.7|3.7.1|3.7.0|3.6.6|3.6.5|3.5.5|3.6.4|3.5.4|3.6.3|3.5.4|3.6.2|3.5.4|>=3.9,<3.10.0a0|>=3.8,<3.9.0a0|>=2.7,<2.8.0a0|>=3.7,<3.8.0a0|>=3.6,<3.7.0a0|>=3.5,<3.6.0a0',build='hd3c4935_11|h6679aeb_11|hb034564_12|h8c3f1cb_23|h6538335_1|h0c2934d_0|hea74fb7_0|hea74fb7_0|hcb6e200_5|h9f7ef89_2|h8c8aaf0_1|h9f7ef89_7|h5263a28_0|h5500b2f_0|h9f7ef89_0|h81c818b_4|h9f7ef89_2|h5fd99cc_1|h6244533_0|h6244533_0|hdbf39b2_5|h6244533_0|h6244533_0|h6244533_1|h60c2a47_0|he1778fa_2|h5fd99cc_8_cpython|h60c2a47_2|hcb6e200_0|h8c8aaf0_0|h8c8aaf0_6|he216670_0|h0c2934d_2|h1357f44_23|h9e2ca53_1|hdec4e59_20|h59f5a59_20']
| was unexpected at this time.
(base) C:\Users\Cipher_X>
(base) C:\Users\Cipher_X>Your python: python=3.9
'Your' is not recognized as an internal or external command,
operable program or batch file.
(base) C:\Users\Cipher_X>
(base) C:\Users\Cipher_X>If python is on the left-most side of the chain, that's the version you've asked for.
is was unexpected at this time.
(base) C:\Users\Cipher_X>When python appears to the right, that indicates that the thing on the left is somehow
'When' is not recognized as an internal or external command,
operable program or batch file.
(base) C:\Users\Cipher_X>not available for the python version you are constrained to. Note that conda will not
'not' is not recognized as an internal or external command,
operable program or batch file.
(base) C:\Users\Cipher_X>change your python version to a different minor version unless you explicitly specify
Invalid parameter(s)
CHANGE { LOGON | PORT | USER }
(base) C:\Users\Cipher_X>that.
'that.' is not recognized as an internal or external command,
operable program or batch file.
(base) C:\Users\Cipher_X>
(base) C:\Users\Cipher_X>The following specifications were found to be incompatible with each other:
'The' is not recognized as an internal or external command,
operable program or batch file.
(base) C:\Users\Cipher_X>
(base) C:\Users\Cipher_X>Output in format: Requested package -> Available versions
'Output' is not recognized as an internal or external command,
operable program or batch file.
(base) C:\Users\Cipher_X>
(base) C:\Users\Cipher_X>Package html5lib conflicts for:
'Package' is not recognized as an internal or external command,
operable program or batch file.
(base) C:\Users\Cipher_X>anaconda -> bleach==2.1.4=py27_0 -> html5lib[version='>=0.99999999|>=0.99999999pre,!=1.0b1,!=1.0b2,!=1.0b3,!=1.0b4,!=1.0b5,!=1.0b6,!=1.0b7,!=1.0b8']
'!' is not recognized as an internal or external command,
operable program or batch file.
(base) C:\Users\Cipher_X>anaconda -> html5lib[version='0.999999999|0.999999999|0.999999999|1.0.1|1.0.1|1.0.1|1.0.1|1.0.1|1.0.1|1.0.1|1.1',build='py27h47766b3_0|py36ha09b1f3_0|py27h5a33001_0|py27_0|py37_0|py_0|pyhd3eb1b0_0|py36_0|py_0|py36h047fa9f_0|py35h047fa9f_0|py35h79d4e7f_0']
'0.999999999' is not recognized as an internal or external command,
operable program or batch file.

@kevin-bates
please have a look

this is the message appearing when I want to run jupyter notebook(it's obvious it won't run but for understanding the error I think this will help you )
Traceback (most recent call last):
File "C:\Users\Cipher_X\anaconda3\Scripts\jupyter-notebook-script.py", line 6, in
from notebook.notebookapp import main
File "C:\Users\Cipher_X\anaconda3\lib\site-packages\notebook\notebookapp.py", line 78, in
from .services.kernels.kernelmanager import MappingKernelManager, AsyncMappingKernelManager
File "C:\Users\Cipher_X\anaconda3\lib\site-packages\notebook\services\kernels\kernelmanager.py", line 18, in
from jupyter_client.session import Session
File "C:\Users\Cipher_X\anaconda3\lib\site-packages\jupyter_client_init_.py", line 4, in
from .connect import *
File "C:\Users\Cipher_X\anaconda3\lib\site-packages\jupyter_client\connect.py", line 21, in
import zmq
ModuleNotFoundError: No module named 'zmq'

@anupsaha1 I'm not sure if this is related to the issue, but all I can see is pasting lots of non-CMD text into a CMD prompt.

ModuleNotFoundError: No module named 'zmq'

This suggests you don't have pyzmq. You can try installing it:
conda instal pyzmq

pyzmq==19.0.2

thanks mate it's worked
it was giving me an error for the first time installing pyzmq==19.0.2 but this time it's worked
finally, after a few days of searching, I got the solution wlah!

Late to the party but I encountered the same issue today with version 23.0.2
System: Win 11
Python: 3.10.5

@malsesto had this same issue today, for me the solution was to rollback the Python version to 3.8.13 and then pyzmq to 19.0.2 via the Anaconda Navigator  > Environments > (current environment).

I really hope the new wheels for pyzmq 24.0 fix this. Since I've never been able to reproduce the problem, I can't verify myself. Anyone who has been seeing this who can confirm here would be much appreciated.

I really hope the new wheels for pyzmq 24.0 fix this. Since I've never been able to reproduce the problem, I can't verify myself. Anyone who has been seeing this who can confirm here would be much appreciated.

I have tested pyzmq 24.0 on my friend's Windows 10 PC. Unfortunately, it still crashes with JupyterLab. The only working workaround for this is downgrading to 19.0.2.
I'll let you know if there's any further helpful debugging info.
Cheers.

@aiden-leong thanks, that's helpful, if disheartening. I'm absolutely at a loss since I've set up dozens of Windows systems of various versions to test and have never been able to reproduce the problem. I can't figure out what makes these rare failing environments special, so there isn't really any way to investigate further. I simply cannot fix this, and someone else is going to have to figure it out.
Are you using 64b or 32b Windows wheels? What version of Python and how did you install Python?
Can you tell which line causes the crash in:
import zmq
ctx = zmq.Context()
pull = ctx.socket(zmq.PULL)
url = "tcp://<IP_ADDRESS>:5555"
pull.bind(url)
push = ctx.socket(zmq.PUSH)
push.connect(url)
push.send(b'test')
pull.recv()
push.close()
pull.close()
ctx.term()

Do you see similar crashes if you install pyzmq 24 through conda?

@aiden-leong when it finishes, can you try installing from the appropriate wheels produced in https://github.com/zeromq/pyzmq/actions/runs/3090754782
Maybe vc140 wheels will work where vc141 did not

@aiden-leong thanks, that's helpful, if disheartening. I'm absolutely at a loss since I've set up dozens of Windows systems of various versions to test and have never been able to reproduce the problem. I can't figure out what makes these rare failing environments special, so there isn't really any way to investigate further. I simply cannot fix this, and someone else is going to have to figure it out.
Are you using 64b or 32b Windows wheels? What version of Python and how did you install Python?
Can you tell which line causes the crash in:
import zmq
ctx = zmq.Context()
pull = ctx.socket(zmq.PULL)
url = "tcp://<IP_ADDRESS>:5555"
pull.bind(url)
push = ctx.socket(zmq.PUSH)
push.connect(url)
push.send(b'test')
pull.recv()
push.close()
pull.close()
ctx.term()

Do you see similar crashes if you install pyzmq 24 through conda?

After upgrading to Windows 11, the issue is resolved. It should be related to some specific Windows 10 minor versions or patches.
I can not reproduce the bug anymore, but people who still have the same issue might export there Windows 10 version number and/or the patch list to find a clue.
Workaround:

Downgrade to 19.0.2
Upgrade to Windows 11

Cheers.

@minrk I am sorry to report that I have the same issue. Brand new computer, up to date Windows 11, Python 3.10.7, latest version of jupyter and all dependencies. I can't start a kernel in jupyter jupyter-lab, it crashes immediately with Bad address (C:\projects\libzmq\src\epoll.cpp:100) which does not exist.
I am happy to engage offline to help debug the issue on my machine.
Processor	12th Gen Intel(R) Core(TM) i7-12700H   2.30 GHz
Installed RAM	32.0 GB (31.7 GB usable)
Device ID	8C5E8BAA-6590-4208-A92D-0DA3829A6FEF
Product ID	00331-20561-79099-AA062
System type	64-bit operating system, x64-based processor
Pen and touch	No pen or touch input is available for this display
Edition	Windows 11 Pro
Version	21H2
Installed on	10/22/2022
OS build	22000.1165
Experience	Windows Feature Experience Pack 1000.22000.1165.0

@stfmnsl thanks for testing, and that's utterly baffling. How did you install pyzmq and which version of pyzmq did you get? Can you test the win_amd64 wheels for your Python from here: https://github.com/zeromq/pyzmq/actions/runs/3090754782

I did a default installation using pip, which downloaded the latest version pyzmq 24.0.1. Then I tried with 25.0.0b1. Same results.
I went into debug to see what was happening:
C:\Users\stephane.monsallier\fastai>python -m pdb test_zmq.py

c:\users\stephane.monsallier\fastai\test_zmq.py(1)()
-> import zmq
(Pdb) break c:\users\stephane.monsallier\appdata\roaming\python\python310\site-packages\zmq\sugar\socket.py:157
Breakpoint 1 at c:\users\stephane.monsallier\appdata\roaming\python\python310\site-packages\zmq\sugar\socket.py:157
(Pdb) run
Restarting C:\Users\stephane.monsallier\fastai\test_zmq.py with arguments:
c:\users\stephane.monsallier\fastai\test_zmq.py(1)()
-> import zmq
(Pdb) next
c:\users\stephane.monsallier\fastai\test_zmq.py(2)()
-> ctx = zmq.Context()
(Pdb) next
c:\users\stephane.monsallier\fastai\test_zmq.py(3)()
-> pull = ctx.socket(zmq.PULL)
(Pdb) next
c:\users\stephane.monsallier\appdata\roaming\python\python310\site-packages\zmq\sugar\socket.py(157)init()
-> self._shadow = False
(Pdb) next
c:\users\stephane.monsallier\appdata\roaming\python\python310\site-packages\zmq\sugar\socket.py(159)init()
-> super().init(
(Pdb) next
c:\users\stephane.monsallier\appdata\roaming\python\python310\site-packages\zmq\sugar\socket.py(160)init()
-> ctx_or_socket,
(Pdb) next
c:\users\stephane.monsallier\appdata\roaming\python\python310\site-packages\zmq\sugar\socket.py(161)init()
-> socket_type,
(Pdb) next
c:\users\stephane.monsallier\appdata\roaming\python\python310\site-packages\zmq\sugar\socket.py(162)init()
-> shadow=shadow_address,
(Pdb) next
c:\users\stephane.monsallier\appdata\roaming\python\python310\site-packages\zmq\sugar\socket.py(163)init()
-> copy_threshold=copy_threshold,
(Pdb) next
c:\users\stephane.monsallier\appdata\roaming\python\python310\site-packages\zmq\sugar\socket.py(159)init()
-> super().init(
(Pdb) p shadow
0
(Pdb) p socket_type
<SocketType.PULL: 7>
(Pdb) p copy_threshold
None
(Pdb) p ctx_or_socket
<zmq.Context() at 0x1f5475876a0>
(Pdb) step
Bad address (C:\projects\libzmq\src\epoll.cpp:100)

Not sure that helps. I don't understand why the constructor gets to Bad Address.
I will try the wheels you pointed out.

Same results with the wheel (24.0.0 cp130) but the debug sequence is different:
C:\Users\stephane.monsallier\fastai>python -m pdb test_zmq.py

c:\users\stephane.monsallier\fastai\test_zmq.py(1)()
-> import zmq
(Pdb) next
c:\users\stephane.monsallier\fastai\test_zmq.py(2)()
-> ctx = zmq.Context()
(Pdb) next
c:\users\stephane.monsallier\fastai\test_zmq.py(3)()
-> pull = ctx.socket(zmq.PULL)
(Pdb) step
--Call--
c:\users\stephane.monsallier\appdata\roaming\python\python310\site-packages\zmq\sugar\context.py(277)socket()
-> def socket(self: T, socket_type: int, **kwargs: Any) -> ST:
(Pdb) next
c:\users\stephane.monsallier\appdata\roaming\python\python310\site-packages\zmq\sugar\context.py(289)socket()
-> if self.closed:
(Pdb) next
c:\users\stephane.monsallier\appdata\roaming\python\python310\site-packages\zmq\sugar\context.py(291)socket()
-> s: ST = self._socket_class(  # set PYTHONTRACEMALLOC=2 to get the calling frame
(Pdb) next
c:\users\stephane.monsallier\appdata\roaming\python\python310\site-packages\zmq\sugar\context.py(292)socket()
-> self, socket_type, **kwargs
(Pdb) next
c:\users\stephane.monsallier\appdata\roaming\python\python310\site-packages\zmq\sugar\context.py(291)socket()
-> s: ST = self._socket_class(  # set PYTHONTRACEMALLOC=2 to get the calling frame
(Pdb) step
c:\users\stephane.monsallier\appdata\roaming\python\python310\site-packages\zmq\sugar\context.py(292)socket()
-> self, socket_type, **kwargs
(Pdb) step
c:\users\stephane.monsallier\appdata\roaming\python\python310\site-packages\zmq\sugar\context.py(291)socket()
-> s: ST = self._socket_class(  # set PYTHONTRACEMALLOC=2 to get the calling frame
(Pdb) step
--Call--
c:\users\stephane.monsallier\appdata\roaming\python\python310\site-packages\zmq\sugar\socket.py(93)init()
-> def init(self: "Socket[bytes]", *a, **kw):
(Pdb) step
c:\users\stephane.monsallier\appdata\roaming\python\python310\site-packages\zmq\sugar\socket.py(94)init()
-> super().init(*a, **kw)
(Pdb) step
Bad address (C:\projects\libzmq\src\epoll.cpp:100)

I downloaded the latest version of libzmq (8d4f4efe) and compiled it. I manually replaced libzmq into pyzmq.lib.
I don't see the error message anymore (Bad address (C:\projects\libzmq\src\epoll.cpp:100)).
I can run successfully the small test:
import zmq
ctx = zmq.Context()
pull = ctx.socket(zmq.PULL)
url = "tcp://<IP_ADDRESS>:5555"
pull.bind(url)
push = ctx.socket(zmq.PUSH)
push.connect(url)
push.send(b'test')
pull.recv()
push.close()
pull.close()
ctx.term()
But I have different errors when trying to run jupyter:
OSError: [WinError 10038] An operation was attempted on something that is not a socket

I wish to add here that for people who have issues logging in with Kernel of Jupyter Lab/Notebook, based on the simple advise of installing / downgrading, using the ANACONDA commands [For people with ANACONDA installed]
conda install pytest pyzmq==19.0.2
This will fix the problem of non linking up with the Kernel! I basically looked through all advise online, and this one works for me!

The VPN issue sounds about right, I had a PC, freshly installed spyder on it. It works, but right after a VPN was installed, everything started failing, including fresh installations of vscode, new conda envs etc, it all traces back down to pyzmq and the epoll bad address issue.

Building libzmq with the following configuration resolves the issue:
-DPOLLER=select -DZMQ_HAVE_IPC=OFF -DZMQ_CV_IMPL=stl11

The VPN issue sounds about right, I had a PC, freshly installed spyder on it. It works, but right after a VPN was installed, everything started failing, including fresh installations of vscode, new conda envs, non conda venvs, etc, it all traces back down to pyzmq and the epoll bad address issue. @KianSOH 's solution worked perfectly. 1.create a new conda environment based on python 3.8, 2.conda install pytest pyzmq==19.0.2 3.Install spyder/jupyter whatever. I could not believe VPNs would be intefering with jupyter.

I have the same problem. After uninstalling VPN, it is ok.
I think some VPN software will forward network requests and localhost's real address is changed

Glad to know that my days of frustration with this silly problem have helped many online! It took me a few days of reading online and researching on the problem, until I come across some nice bloke who posted the solution online in youtube.
I tried the simple solution, and Jupyter started to work in all browsers.

go to windows command prompt, and run as administrator
type the following command "netsh winsock reset"
reboot your computer.

I had actually reinstalled conda numerous times, and also tried with different versions of python, and nothing works... damn frustrating, then I came across this thread with the same error message, and I tried the pyzmq downgrade, it worked intermittently... the true cause of the problem is the VPN.

Same issue here. Unfortunately any solution that involves rebooting is not an option since I am in a docker contained started by a CI pipeline. I am not able to stay on version 19.0.2 forever either. What other options are there? I don't even want to run jupyter, only to execute a notebook file from a Python script, something along the lines of:
import sys
import nbformat
from nbconvert.preprocessors import ExecutePreprocessor as EP

with open(sys.argv[1]) as f:
    nb = nbformat.read(f, as_version=4)
    ep = EP(timeout=400, kernel_name='python3')
    try:
        ep.preprocess(nb, {'metadata' : { 'path' : '.' }})
        with open('executed_notebook.ipynb', mode='wt', encoding='utf8') as fout:
            nbformat.write(nb, fout)

If nothing else helps then I could extract the Python code from the notebook and run it with standalone python, but any more straightforward ideas will be appreciated. (I am surprised such a simple operation as this has to involve libzmq at all.)

I am surprised such a simple operation as this has to involve libzmq at all

executing any code from a notebook uses libzmq because it uses the Jupyter protocol to communicate with the kernel, which is a different process (can be a different language altogether), otherwise it wouldn't be a realistic execution of the notebook.
If you want to export the notebook to a script before running it with a plain Python interpreter, that may be an option (nbconvert --to script).
I think you might be hitting a quite different issue, though, as this is specifically about an unusual Windows-specific networking configuration issue, and I assume your CI pipeline in docker is not a Windows container? I'm not aware of any non-Windows users seeing issues like this, so more information (and a different Issue with repro steps) would be required.

@minrk It is a windows docker (I also get it on physical windows machines). I make a miniconda environment listed below and in it run the notebook execution code mentioned in my last comment.
dependencies:
  - python==3.11
  - numpy
  - scipy
  - matplotlib
  - nb_conda_kernels
  - nbconvert
  - nbformat
  - pandas
  - statsmodels

With python==3.7 and additional pyzmq=19.0.2 it is still OK.

ah, got it. Then it is the same issue. This is a libzmq bug that pyzmq can't do anything about, but there is a chance the brand new libzmq 4.3.5 build fixes it, if you want to try adding zeromq==4.3.5 to your env to test env.

@minrk Thanks. I will try when pyzmq is upgraded to allow it. Forcing zeromq==4.3.5 didn't work for me without breaking it all even worse.

There are now updated wheels with zeromq-4.3.5.
If anyone who can still reproduce this issue can test the wheels available here and report back, that would be a huge help.
pyzmq now has control over the cmake options of the libzmq it bundles in wheels, so there is some hope of resolving it if those wheels don't work yet.
I'm sorry I've never been able to personally reproduce this issue, so I can't verify the fix myself!

I installed the new wheel in an existing environment which is specified as in one of my previous comments but with python==3.9. The installation did not affect the existing libzmq==4.3.4 I had in that environment but maybe now it doesn't matter. After that it seems to resolve the problem, ie. I can run all the notebooks I previously only could run with pyzmq==19.0.2 and the error in epool.cpp:100 does not come up any more.
The only new thing I have is this warning which is probably a different story (irrelevant for me):
\lib\site-packages\zmq\_future.py:700: RuntimeWarning: Proactor event loop does not implement add
_reader family of methods required for zmq. Registering an additional selector thread for add_reader support via tornado. Use `asyncio.set_event_loop_policy(WindowsSelectorEventLoopPolicy())` to avoid this warni
ng.

and in one case (not deterministically reproducible) I got
Assertion failed: pfd.revents & POLLIN (C:\Users\runneradmin\AppData\Local\Temp\tmp46punxxq\build\_deps\bundled_libzmq-src\src\signaler.cp
p:238)

but it seems the execution continued regardless and completed as success.
I will keep you informed if anything should change after more thorough testing.
Many thanks for looking into this and for your help!

The proactor warning is not an issue, but could probably use some better communication (#1830)
The signaler error is concerning. Do keep us updated on if that continues to be a problem.

I read all the posts here and on stack overflow and I wasn't able to find a solution that works for me.
I use Windows 10, Python 3.12.3 (installed via the app store). No VS Code or notebook whatever... I simply run my py script that communicates to my C++ code (running libzmq 4.3.5).
Bad file descriptor (C:\Users\runneradmin\AppData\Local\Temp\tmpkywtyyea\build\_deps\bundled_libzmq-src\src\epoll.cpp:73)

I tried to uninstall pyzmq and install an older version (tried different versions) but I wasn't able to do it. Every time I get the same error.
PS > pip install pyzmq==25.0.2
Defaulting to user installation because normal site-packages is not writeable
Collecting pyzmq==25.0.2
  Downloading pyzmq-25.0.2.tar.gz (1.2 MB)
     ---------------------------------------- 1.2/1.2 MB 3.7 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: pyzmq
  Building wheel for pyzmq (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for pyzmq (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [417 lines of output]
      C:\Users\ademyankov\AppData\Local\Temp\pip-build-env-e5nik6y2\overlay\Lib\site-packages\setuptools\_distutils\dist.py:266: UserWarning: Unknown distribution option: 'cffi_modules'
        warnings.warn(msg)

This is the end of the error logs:
      Generating code
      Finished generating code
      building 'zmq.backend.cython._device' extension
      creating build\temp.win-amd64-cpython-312\Release\zmq
      creating build\temp.win-amd64-cpython-312\Release\zmq\backend
      creating build\temp.win-amd64-cpython-312\Release\zmq\backend\cython
      "C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.39.33519\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DWINVER=0x0602 -D_WIN32_WINNT=0x0602 -Ibundled\zeromq\include -Izmq\utils "-IC:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.1008.0_x64__qbz5n2kfra8p0\include" "-IC:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.1008.0_x64__qbz5n2kfra8p0\Include" "-IC:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.39.33519\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.39.33519\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" /Tczmq\backend\cython\_device.c /Fobuild\temp.win-amd64-cpython-312\Release\zmq\backend\cython\_device.obj
      _device.c
      zmq\backend\cython\_device.c(4372): error C2039: 'curexc_traceback': is not a member of '_ts'
      C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.1008.0_x64__qbz5n2kfra8p0\include\cpython/pystate.h(115): note: see declaration of '_ts'
      zmq\backend\cython\_device.c(4375): error C2039: 'curexc_traceback': is not a member of '_ts'
      C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.1008.0_x64__qbz5n2kfra8p0\include\cpython/pystate.h(115): note: see declaration of '_ts'
      zmq\backend\cython\_device.c(5408): error C2039: 'ob_digit': is not a member of '_longobject'
      C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.1008.0_x64__qbz5n2kfra8p0\include\cpython/longintrepr.h(87): note: see declaration of '_longobject'
      zmq\backend\cython\_device.c(5463): error C2039: 'ob_digit': is not a member of '_longobject'
      C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.1008.0_x64__qbz5n2kfra8p0\include\cpython/longintrepr.h(87): note: see declaration of '_longobject'
      zmq\backend\cython\_device.c(5680): error C2039: 'ob_digit': is not a member of '_longobject'
      C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.1008.0_x64__qbz5n2kfra8p0\include\cpython/longintrepr.h(87): note: see declaration of '_longobject'
      zmq\backend\cython\_device.c(5735): error C2039: 'ob_digit': is not a member of '_longobject'
      C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.1008.0_x64__qbz5n2kfra8p0\include\cpython/longintrepr.h(87): note: see declaration of '_longobject'
      zmq\backend\cython\_device.c(6086): error C2039: 'ob_digit': is not a member of '_longobject'
      C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.1008.0_x64__qbz5n2kfra8p0\include\cpython/longintrepr.h(87): note: see declaration of '_longobject'
      DEBUG EXT_SUFFIX '.cp312-win_amd64' '.cp312-win_amd64.pyd'
      ************************************************
      DEBUG EXT_SUFFIX '.cp312-win_amd64' '.cp312-win_amd64.pyd'
      ************************************************
      error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\VC\\Tools\\MSVC\\14.39.33519\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pyzmq
Failed to build pyzmq
ERROR: Could not build wheels for pyzmq, which is required to install pyproject.toml-based projects

All was working before with the older version of pyzmq. But now I can't even downgrade the version.
Any advice people?

@ademyankov I think you want pyzmq 25.12, not 25.0.2. 25.1.1 introduced support for Python 3.12. It is probably best to do
pip install 'pyzmq<26'

to get the latest pre-26 version, which will be 25.1.2.

@minrk Ah, man! Thank you so much. It works like a charm!

I think this is actually fixed in pyzmq 26.2, and possibly the root cause fixed upstream in https://github.com/zeromq/libzmq/pull/4732
Only took me three and a half years to find a way to reproduce this!


Consider allowing an option for a "distributed" DbCompiledModel.

We have two large DbContexts, one for tables (~400), and one for views (~500). These are code-first and mapped by using the System.Data.Entity.ModelConfiguration.EntityTypeConfiguration implementation. This is tucked into an assembly that is referenced by multiple service layers\front-ends.
Due to the size of the contexts, ~500MB of memory is required for each application, as they are in their own AppDomain. An example of each front-end/service that use EF:

Web1 (WebForms) - ~500MB
Web2 (Mvc) - ~500MB
Services (Asmx) - ~500MB
Services (WebApi) - ~500MB

The above applications run in the same "Website" in IIS. They all reference the same assembly that contains the EF configuration.
Ideally, it would be nice if all of the applications above could use a single reference to the information EF puts into the AppDomain cache. This could greatly reduce the memory required for solutions that contain several applications and use the same DbContext.
I have limited knowledge of cross AppDomain communication, so if this is something that is possible to do with EF in it's current state, any pointers would be helpful.
Further technical details
EF version: 6.2
Database Provider: EntityFramework.SqlServer
Operating system: Windows 10
IDE: VS 2019

EF Team Triage: This issue is not something that our team is planning to address in the EF6.x code base.  This does not mean that we would not consider a community contribution to address this issue.
Moving forwards, our team will be fixing bugs, implementing small improvements, and accepting community contributions to the EF6.x code base. Larger feature work and innovation will happen in the EF Core code base (https://github.com/aspnet/EntityFramework).
Closing an issue in the EF6.x project does not exclude us addressing it in EF Core. In fact, a number of popular feature requests for EF have already been implemented in EF Core (alternate keys, batching in SaveChanges, etc.).
BTW this is a canned response and may have info or details that do not directly apply to this particular issue. While we'd like to spend the time to uniquely address every incoming issue, we get a lot traffic on the EF projects and that is not practical. To ensure we maximize the time we have to work on fixing bugs, implementing new features, etc. we use canned responses for common triage decisions.


Not converting SCSS files

Note: for support questions, please use one of these channels:
https://forum.ionicframework.com/
http://ionicworldwide.herokuapp.com/
Short description of the problem:
My SCSS files are not being converted. Upgraded from RC.0 to RC.3. No error is shown, application works like a charm, just my SCSS files are not being used.
They are being used when running ionic serve just not when running ionic build android --release
(note: cannot emulate).
Steps to reproduce:

Create an RC.0 app, having SCSS files (not explicitly mentioned in the component).
Update your ionic to RC.3 -> getting the<EMAIL_ADDRESS>Create a new RC.3 project -> copy files from RC.0
Run ionic serve this should work like a charm
Run ionic build android --release after adding the platform
Sign the apk and open it on a mobile phone

package.json
{
  "name": "ionic-hello-world",
  "author": "Ionic Framework",
  "homepage": "http://ionicframework.com/",
  "private": true,
  "scripts": {
    "dev": "bnr dev",
    "ionic:build": "ionic-app-scripts build",
    "ionic:serve": "ionic-app-scripts serve",
    "test": "karma start ./config/karma.conf.js",
    "pree2e": "cd www && python -m SimpleHTTPServer 8090 >> ../python_serve.log 2>&1 &",
    "e2e": "protractor config/protractor.conf.js",
    "pree2e:interactive": "npm run pree2e",
    "e2e:interactive": "protractor config/protractor.conf.js --elementExplorer",
    "watch": "ionic-app-scripts watch",
    "serve:before": "watch",
    "emulate:before": "build",
    "deploy:before": "build",
    "run:before": "build --dev",
    "ios:dev": "bnr ios:dev",
    "ios:release": "bnr ios:release",
    "android:dev": "bnr android:dev",
    "commit": "git-cz",
    "release": "standard-version --no-verify",
    "push": "git push --follow-tags origin master",
    "lint": "tslint \"src/**/*.ts\" --exclude=src/**/*.d.ts",
    "scss-lint": "scss-lint",
    "docs": "typedoc --options typedoc.json --exclude '**/*.spec.ts' ./src/",
    "outdated": "npm outdated --depth 0",
    "postinstall": "webdriver-manager update --chrome"
  },
  "betterScripts": {
    "dev": {
      "command": "ionic serve",
      "env": {
        "NODE_ENV": "development",
        "PLATFORM": "web"
      }
    },
    "build": {
      "command": "ionic-app-scripts build",
      "env": {
        "NODE_ENV": "production",
        "PLATFORM": "web"
      }
    },
    "ios:dev": {
      "command": "ionic run ios --livereload",
      "env": {
        "NODE_ENV": "development",
        "PLATFORM": "ios"
      }
    },
    "ios:release": {
      "command": "npm run build && ionic build ios",
      "env": {
        "NODE_ENV": "production",
        "PLATFORM": "ios"
      }
    },
    "android:dev": {
      "command": "ionic run android --livereload",
      "env": {
        "NODE_ENV": "development",
        "PLATFORM": "android"
      }
    }
  },
  "dependencies": {
    "@angular/common": "2.1.1",
    "@angular/compiler": "2.1.1",
    "@angular/compiler-cli": "2.1.1",
    "@angular/core": "2.1.1",
    "@angular/forms": "2.1.1",
    "@angular/http": "2.1.1",
    "@angular/platform-browser": "2.1.1",
    "@angular/platform-browser-dynamic": "2.1.1",
    "@angular/platform-server": "2.1.1",
    "@ionic/app-scripts": "0.0.46",
    "@ionic/storage": "1.1.6",
    "ionic-angular": "2.0.0-rc.3",
    "ionic-native": "2.2.3",
    "ionicons": "3.0.0",
    "ng2-charts": "^1.4.1",
    "rxjs": "5.0.0-beta.12",
    "zone.js": "0.6.26"
  },
  "devDependencies": {
    "@ionic/app-scripts": "0.0.45",
    "typescript": "2.0.6",
    "better-npm-run": "0.0.11",
    "commitizen": "^2.8.6",
    "cz-conventional-changelog": "^1.2.0",
    "ghooks": "^1.3.2",
    "jasmine-core": "2.5.2",
    "jasmine-spec-reporter": "^2.7.0",
    "karma": "1.3.0",
    "karma-chrome-launcher": "2.0.0",
    "karma-coverage": "^1.1.1",
    "karma-jasmine": "1.0.2",
    "karma-phantomjs-launcher": "^1.0.2",
    "karma-rollup-plugin": "^0.2.4",
    "karma-sourcemap-loader": "^0.3.7",
    "karma-spec-reporter": "0.0.26",
    "phantomjs-prebuilt": "^2.1.12",
    "protractor": "^4.0.9",
    "protractor-jasmine2-screenshot-reporter": "^0.3.2",
    "rollup-plugin-alias": "^1.2.0",
    "rollup-plugin-angular": "^0.4.2",
    "rollup-plugin-buble": "^0.14.0",
    "rollup-plugin-commonjs": "^5.0.4",
    "rollup-plugin-node-resolve": "^2.0.0",
    "rollup-plugin-replace": "^1.1.1",
    "rollup-plugin-typescript": "^0.8.1",
    "standard-version": "^2.2.1",
    "ts-helpers": "^1.1.1",
    "ts-node": "^1.3.0",
    "typedoc": "^0.4.5"
  },
  "config": {
    "commitizen": {
      "path": "./node_modules/cz-conventional-changelog"
    },
    "ionic_rollup": "./config/rollup.config.js"
  },
  "cordovaPlugins": [
    "cordova-plugin-whitelist",
    "cordova-plugin-statusbar",
    "cordova-plugin-console",
    "cordova-plugin-device",
    "cordova-plugin-splashscreen",
    "ionic-plugin-keyboard",
    "cordova-plugin-camera",
    "cordova-plugin-compat",
    {
      "id": "phonegap-plugin-push",
      "locator": "phonegap-plugin-push",
      "variables": {
        "SENDER_ID": "576664543519"
      }
    }
  ],
  "cordovaPlatforms": [
    {
      "platform": "android",
      "version": "",
      "locator": "android"
    }
  ],
  "description": "new-boilerplate: An Ionic project"
}

Which @ionic/app-scripts version are you using?
0.0.45
Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)
output
$ ionic build android --release

> ionic-hello-world@ ionic:build C:\Users\Ivar\documents\new-boilerplate
> ionic-app-scripts build

[09:22:47]  ionic-app-scripts 0.0.45
[09:22:47]  build prod started ...
[09:22:47]  clean started ...
[09:22:47]  clean finished in 4 ms
[09:22:47]  copy started ...
[09:22:47]  ngc started ...
[09:22:47]  copy finished in 166 ms
[09:23:27]  ngc finished in 39.80 s
[09:23:27]  rollup started ...
Editing default ionic configuration
[09:23:50]  rollup finished in 22.77 s
[09:23:50]  uglifyjs started ...
[09:23:50]  sass started ...
[09:23:52]  sass finished in 2.03 s
[09:23:52]  cleancss started ...
[09:23:54]  cleancss finished in 1.95 s
[09:24:06]  uglifyjs finished in 15.89 s
[09:24:06]  build prod finished in 78.47 s
ANDROID_HOME=C:\Users\Ivar\AppData\Local\Android\android-sdk

JAVA_HOME=C:\Program Files\Java\jdk1.8.0_101

Subproject Path: CordovaLib

Starting a new Gradle Daemon for this build (subsequent builds will be faster).

Incremental java compilation is an incubating feature.

:preBuild

UP-TO-DATE

:preReleaseBuild
 UP-TO-DATE
:checkReleaseManifest

..........................................
.........................................

BUILD SUCCESSFUL

Total time: 33.041 secs

Built the following apk(s):
        C:/Users/Ivar/documents/new-boilerplate/platforms/android/build/outputs/apk/android-release-unsigned.apk

Hallo,
I have the same problem.
my package.json looks like this.
"scripts": {
"clean": "ionic-app-scripts clean",
"build": "ionic-app-scripts build",
"ionic:build": "ionic-app-scripts build",
"ionic:serve": "ionic-app-scripts serve"
},
"dependencies": {
"@angular/common": "2.2.1",
"@angular/compiler": "2.2.1",
"@angular/compiler-cli": "2.2.1",
"@angular/core": "2.2.1",
"@angular/forms": "2.2.1",
"@angular/http": "2.2.1",
"@angular/platform-browser": "2.2.1",
"@angular/platform-browser-dynamic": "2.2.1",
"@angular/platform-server": "2.2.1",
"@ionic/storage": "1.1.7",
"ionic-angular": "2.0.0-rc.5",
"ionic-native": "2.2.11",
"ionicons": "3.0.0",
"rxjs": "5.0.0-beta.12",
"zone.js": "0.6.26"
},
"devDependencies": {
"@ionic/app-scripts": "1.0.0",
"typescript": "2.1.5"
},
"cordovaPlugins": [
<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>],
"cordovaPlatforms": [
"ios",
{
"platform": "ios",
"version": "4.3.1",
"locator"<EMAIL_ADDRESS>},
"android",
{
"platform": "android",
"version": "6.1.0",
"locator"<EMAIL_ADDRESS>}
]
This happens not only to the css. My images are left untouched and are not uploaded to the device.
Regards
Michael

Is this still an issue? Please let me know if it is and provide a basic reproduction case so I can easily investigate and validate.
Thanks,
Dan


STX/Pasti support?

Hi,
I'm wondering if support for STX/Pasti disk image is planned. It will allow to read a good number of preserved AtariST discs.
Thanks!

Some code is also available here: https://github.com/jsummers/deark/blob/b82224aa63364d0633e8b3aba76ed7fb3cfab1cd/modules/atari-dsk.c#L579


New issue with transfer learning

I'm working with a custom UMAP model. The model was trained on images that were (256,256) so the model input size was (256,256,1). I was experimenting with the creation of a new larger model and transfering the weights. I had found a solution that was working well. Attached was the code:
input_size=(1024,1024,1)
model = load_model(saved_model) #model saved as hdf5
model._layers[0]._batch_input_shape=(None,input_size[0],input_size[1],input_size[2])
new_model = model_from_json(model.to_json())
for layer in new_model.layers:
try:
layer.set_weights(model.get_layer(name=layer.name).get_weights())
except:
print("error transfering layer")
This code was working well on my current python installation and in google colaboratory up to a few moths ago, it has stopped working with google colaborator but still works on my desktop python version, so I'm assuming it has something to do with a new TF version or some other update. The error I get is: AttributeError: 'Functional' object has no attribute '_layers' and the error is for this line of code: model._layers[0]._batch_input_shape=(None,input_size[0],input_size[1],input_size[2])
This used to work well. I could train a model on a one size image, resize the model apply to a larger size image and the segmentation was the same. I've tried some other suggested techniques to load the weights from one model to the next but the weights don't seem to transfer as the results look more like an untrained model.
Any suggestions you have to get this working again would really be appreciated.

model.layers[0].batch_input_shape=(None,input_size[0],input_size[1],input_size[2])
it seems changing to the above code fixes the issue. model_layers[0]->model.layers[0] and ._batch ->.batch

My mistake it did not fix the issue, the error is resolved but the model is not resized. I've seen in other posts calling model.layers[0].batch_input_shape only returns a copy and changing it does not alter the original model

model.layers[0]._batch_input_shape=(None,input_size[0],input_size[1],input_size[2]): This seems to work accessing layers and changing the private attribute "_batch_input_shape"


Fix issue with localstorage is not written to --local-storage-path option value

Added offlineStoragePath to:

setOfflineWebApplicationCachePath
setLocalStoragePath

https://github.com/ariya/phantomjs/issues/10716

Closing this PR because it's outdated.


[ffmpeg] build failure | build causes computer to crash

Host Environment

OS: Windows 10
Compiler: cl.exe

To Reproduce
Steps to reproduce the behavior:
./vcpkg install ffmpeg[core]:x64-windows
Computer blue screens with the error message: KERNEL MODE HEAP CORRUPTION
Failure logs
build-x64-windows-rel-out.log
None, see below
Additional context
Everytime I try to build ffmpeg my laptop crashes with a blue screen. I've built plenty of other packages via vcpkg with no issues at all. I do have various log files in buildtress/ffmpeg but I don't know which would be most useful, please advise. The only slight error message I can see in any is the follwoing:
Checking patch configure...
warning: configure has type 100644, expected 100755
Hunk #1 succeeded at 6549 (offset 52 lines).
Applied patch configure cleanly.

cc @dg0yt @cenit

Sorry, no x64-windows toolchain locally. But a blue screen is more likely to be hardware issue than a software nowadays. No user-space software is allowed to tear down the whole system with "Kernel mode heap corruption".

GPU is not required to build ffmpeg.

can you please remove gpu drivers?
heap corruption looks like a driver is using memory it should not, and building the program overwrites it (because it's not system protected since it does not belong to the driver from the beginning)

Yes, that's seems like a gpu driver bug.

Anyway, I think this is not related to vcpkg.

Okay, well thanks everyone for all your help :) I'll post back here if I fond a solution or have any meaningful updates in case anyone else has the same issue.

To follow up on this, as og the latest master (ba383ed) ffmpeg now compiles fine for me. There have been a few ffmpeg related commits since I last tried so one of them may have fixed it. Equally whilst I haven't deliberately tried to fix this on my end something may have changed in my setup, I don't know.