You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reacted by Adam Seering, Arthur Hjorth, Chris Gorgolewski, Mario Juric, David Shipman, Attila Bagoly, cwcobb, Ankur Dedania, yasirs, HongshengFang and 10 more
Trying to get the same thing to run too, and with the same result. I'm on a Surface 3 4GB/128GB and happy to aid with testing/pinning things down. Jupyter is such an excellent tool and being able to run this on Bash on Windows would be amazing.
Same setup as Arthur Hjorth (@arthurhjorth) here and also happy to help out. Loving bash on windows so far. Getting jupyter up and running would be the icing on the cake.
Standard disclaimers -- I make no guarantees about either security or correctness; if it eats your data or steps on your cat I take no responsibility. But it seems to work for me.
Of course, getting a fix into WSL would be ideal. My cursory understanding of this code is that WSL would need to implement getifaddrs(), and would I think need to at minimum report on the existence of a loopback interface.
Adam Seering (@aseering) can you please explain how to use this fix? I can 'make install' for libzmq from repo source (including this fix) but how do I setup Jupyter to use the custom libzmq build? - it is still giving the same error that is quoted in the original post. Thank you!
sgraphics are you familiar with Ubuntu PPAs? I would suggest using the PPA that I created that contains the fix. The simplest way to do so would be, I believe:
That last command would normally install Ubuntu's libzmq; but because you've added my PPA containing the updated package, it will get the updated package instead.
If you want to inspect the source code, you're welcome to download it from the PPA's website (see the link above). You can also follow the first two steps above, then run apt-get source libzmq3, which will download the source code for the package to the current directory. Note that PPAs can contain updated versions of any package; you should only add PPAs that you trust.
Unfortunately, make install will not work in this case: The upstream version that contains the fix is also too new to work on Ubuntu 14.04. The PPA contains the same fix but applied to the source code used by the official Ubuntu 14.04 package. (I downloaded the Ubuntu source using apt-get source, then used quilt to apply the diff containing my fix, and uploaded the updated package.)
Reacted by Guy De Pauw, Maxim Zaslavsky, sgraphics, J-Sieber, Denis Akhiyarov, William Guss, Danilo Gasques, Jack Kerr, Bruno Barbosa, Weichao Qiu and 3 more
Adam Seering (@aseering)
I am getting an error 'Invalid argument' in line 190 of tcp_address.cpp even after updating the libzmq3 as you described above.
I couldn't build from source because it was asking for source URI when I was trying to download source.
I am getting an error 'Invalid argument' in line 190 of tcp_address.cpp even after updating the libzmq3 as you described above.
I couldn't build from source because it was asking for source URI when I was trying to download source.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
Pulin Agrawal (@pulinagrawal)John ZuHone (@jzuhone) -- hm... Could you post the output of dpkg -l libzmq3? It should indicate that you have version 4.0.4+dfsg-2wsl1 installed. (The wsl1 at the end is the key.)
mrsiamen -- it sounds like you have the new package but it's not getting used for some reason. Is this a clean install of WSL? Did you try installing libzmq3 yourself before using the PPA?
Could you post the results of the following commands?:
How to get tensorflow gpu support? I have cuda and tensorflow-gpu installed on Windows but not on Windows bash. Any suggestions on using the GPU with GYM on windows Bash.
Yangff Did you try using VcxSrv to run it with 17063? (I'm unable to go Insiders to test myself). You can now run VSCode from WSL so I wouldn't be surprised if other GUI dev tools are able to work now too. It will be interesting to see what now works and what still doesn't and what is preventing them at this point from running.
Paul Hobson (@phobson) - Can you clarify what you mean by Kilss the kernel.? Are you getting a blue (or green) screen of death? i.e. Is your Windows crashing? If so, can you please follow the instructions for BSODhere?
Also, which version of Windows are you running. From your WSL bash prompt, output of cmd.exe /c ver
Sorry I wasn't clear. I meant that trying to plot in a jupyter notebook with matplotlib was killing the ipython kernel. The windows/WSL/linux kernels were fine.
I was just digging back into this and working with my IT department. I'm not sure which if these incantations did the trick, but we upgraded my windows build to 1709 and then uninstalled/reinstalled WSL/Ubuntu via lxrun and and it worked!
Paul Hobson (@phobson) - Thanks for the details. Good to know your issue was resolved. There is significant investment going into WSL. So, staying on the latest Windows release will always give you the most mileage, at least that's what we aim for.
Activity
sunilmut commentedon Apr 14, 2016
Thanks for trying this out. Could you collect a strace for the failing command to what might be failing?
chrisgorgo commentedon May 19, 2016
I can confirm this bug. You can find the strace here: https://gist.github.com/chrisfilo/2dd2c47592423291bf16db6348d26c6a
chrisgorgo commentedon May 19, 2016
It seems that this bug is caused by jupyter/notebook#1331
arthurhjorth commentedon May 19, 2016
Trying to get the same thing to run too, and with the same result. I'm on a Surface 3 4GB/128GB and happy to aid with testing/pinning things down. Jupyter is such an excellent tool and being able to run this on Bash on Windows would be amazing.
guydepauw commentedon May 20, 2016
Same setup as Arthur Hjorth (@arthurhjorth) here and also happy to help out. Loving bash on windows so far. Getting jupyter up and running would be the icing on the cake.
aseering commentedon May 27, 2016
I came up with a workaround based on William Guss (@MadcowD) 's investigation on jupyter/notebook#1331 . I submitted it upstream as zeromq/libzmq#2013 , and posted an updated Ubuntu 14.04 package to a PPA in case anyone would like to try to use it.
Standard disclaimers -- I make no guarantees about either security or correctness; if it eats your data or steps on your cat I take no responsibility. But it seems to work for me.
Of course, getting a fix into WSL would be ideal. My cursory understanding of this code is that WSL would need to implement
getifaddrs(), and would I think need to at minimum report on the existence of a loopback interface.sgraphics commentedon Jun 12, 2016
Adam Seering (@aseering) can you please explain how to use this fix? I can 'make install' for libzmq from repo source (including this fix) but how do I setup Jupyter to use the custom libzmq build? - it is still giving the same error that is quoted in the original post. Thank you!
aseering commentedon Jun 12, 2016
sgraphics are you familiar with Ubuntu PPAs? I would suggest using the PPA that I created that contains the fix. The simplest way to do so would be, I believe:
That last command would normally install Ubuntu's libzmq; but because you've added my PPA containing the updated package, it will get the updated package instead.
If you want to inspect the source code, you're welcome to download it from the PPA's website (see the link above). You can also follow the first two steps above, then run
apt-get source libzmq3, which will download the source code for the package to the current directory. Note that PPAs can contain updated versions of any package; you should only add PPAs that you trust.Unfortunately,
make installwill not work in this case: The upstream version that contains the fix is also too new to work on Ubuntu 14.04. The PPA contains the same fix but applied to the source code used by the official Ubuntu 14.04 package. (I downloaded the Ubuntu source usingapt-get source, then usedquiltto apply the diff containing my fix, and uploaded the updated package.)guydepauw commentedon Jun 15, 2016
Adam Seering (@aseering) this works perfectly. Thanks a million!
pulinagrawal commentedon Jul 13, 2016
Adam Seering (@aseering)
I am getting an error 'Invalid argument' in line 190 of tcp_address.cpp even after updating the libzmq3 as you described above.
I couldn't build from source because it was asking for source URI when I was trying to download source.
jzuhone commentedon Jul 13, 2016
I had the same issue as Pulin Agrawal (@pulinagrawal).
aseering commentedon Jul 14, 2016
Pulin Agrawal (@pulinagrawal) John ZuHone (@jzuhone) -- hm... Could you post the output of
dpkg -l libzmq3? It should indicate that you have version4.0.4+dfsg-2wsl1installed. (Thewsl1at the end is the key.)aseering commentedon Jul 14, 2016
I've posted a bug report about this issue to the Ubuntu libzmq3 bugtracker:
https://bugs.launchpad.net/ubuntu/+source/zeromq3/+bug/1602900
The fix is known; hopefully they will agree to backport it so that WSL users don't have to keep doing this dance to install packages from a PPA.
mrsiamen commentedon Jul 16, 2016
this fix doesn't work for my Surface 3...
I can still see the message
Invalid argument (bundled/zeromq/src/tcp_address.cpp:171)
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-========================-=================-=================-=====================================================
ii libzmq3:amd64 4.0.4+dfsg-2wsl1 amd64 lightweight messaging kernel (shared library)
aseering commentedon Jul 16, 2016
mrsiamen -- it sounds like you have the new package but it's not getting used for some reason. Is this a clean install of WSL? Did you try installing libzmq3 yourself before using the PPA?
Could you post the results of the following commands?:
For reference, on my machine, I see:
98 remaining items
ggada commentedon Apr 17, 2017
Thanks John ZuHone (@jzuhone)!
conda install -c jzuhone zeromq=devfixed this for me. Theapt-getone didn't work probably because I am using conda environment.Not going for the fast ring because I've faced BSOD's before.. ;)
ericweijieli commentedon Jun 29, 2017
Thanks John ZuHone (@jzuhone)!
→ conda install -c jzuhone zeromq=4.1.dev0 works for me!
ahsteven commentedon Dec 20, 2017
How to get tensorflow gpu support? I have cuda and tensorflow-gpu installed on Windows but not on Windows bash. Any suggestions on using the GPU with GYM on windows Bash.
Yangff commentedon Dec 20, 2017
ahsteven it's impossible to run tensorflow with gpu on WSL.
WSLUser commentedon Dec 20, 2017
Yangff Did you try using VcxSrv to run it with 17063? (I'm unable to go Insiders to test myself). You can now run VSCode from WSL so I wouldn't be surprised if other GUI dev tools are able to work now too. It will be interesting to see what now works and what still doesn't and what is preventing them at this point from running.
ahsteven commentedon Dec 20, 2017
phobson commentedon Jan 10, 2018
Despite John ZuHone (@jzuhone)'s herculean efforts on his build of zeromq, my WSL/jupyter installation isn't working with matplotlib.
For example, a notebook consisting simply of:
Kills the kernel.
Is this still expected on non-Insider builds of Windows 10? Should bug my IT department to let me into the Insider program?
Output of `conda list`
sunilmut commentedon Jan 11, 2018
Paul Hobson (@phobson) - Can you clarify what you mean by
Kilss the kernel.? Are you getting a blue (or green) screen of death? i.e. Is your Windows crashing? If so, can you please follow the instructions forBSODhere?Also, which version of Windows are you running. From your WSL bash prompt, output of
cmd.exe /c verphobson commentedon Jan 12, 2018
Sunil Muthuswamy (@sunilmut)
Sorry I wasn't clear. I meant that trying to plot in a jupyter notebook with matplotlib was killing the ipython kernel. The windows/WSL/linux kernels were fine.
I was just digging back into this and working with my IT department. I'm not sure which if these incantations did the trick, but we upgraded my windows build to 1709 and then uninstalled/reinstalled WSL/Ubuntu via
lxrunand and it worked!🤷♂️
sunilmut commentedon Jan 12, 2018
Paul Hobson (@phobson) - Thanks for the details. Good to know your issue was resolved. There is significant investment going into WSL. So, staying on the latest Windows release will always give you the most mileage, at least that's what we aim for.
therealkenc commentedon Mar 24, 2018
The OP here was:
Which was:
Which is #308 addressed in 15007 and Creators Update 15063.