Cannot connect to jupyter/ipython instance

When attempting to run a jupyter notebook or qtconsole, I get error messages like this:
Invalid argument (bundled/zeromq/src/tcp_address.cpp:171)
The normal ipython prompt works fine.

Thanks for trying this out. Could you collect a strace for the failing command to what might be failing?

I can confirm this bug. You can find the strace here: https://gist.github.com/chrisfilo/2dd2c47592423291bf16db6348d26c6a

It seems that this bug is caused by https://github.com/jupyter/notebook/issues/1331

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 @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.

I came up with a workaround based on @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.

@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:
sudo add-apt-repository ppa:aseering/wsl
sudo apt-get update
sudo apt-get install libzmq3

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.)

@aseering this works perfectly. Thanks a million!

@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 had the same issue as well.
=====================================
John ZuHone, Chandra/ACIS Operations
Harvard-Smithsonian Center for Astrophysics
60 Garden St., MS-67		(w)<PHONE_NUMBER>
Cambridge, MA 02138		(m)<PHONE_NUMBER>
<EMAIL_ADDRESS>http://hea-www.cfa.harvard.edu/~jzuhone

On Jul 13, 2016, at 11:22 AM, Pulin Agrawal<EMAIL_ADDRESS>wrote:
@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.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

@pulinagrawal @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.)

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.

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)

@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?:
ldd /usr/lib/python2.7/dist-packages/zmq/backend/cython/utils.x86_64-linux-gnu.so | grep zmq
md5sum /usr/lib/x86_64-linux-gnu/libzmq.so.3.1.0

For reference, on my machine, I see:
$ ldd /usr/lib/python2.7/dist-packages/zmq/backend/cython/utils.x86_64-linux-gnu.so | grep zmq
        libzmq.so.3 => /usr/lib/x86_64-linux-gnu/libzmq.so.3 (0x00007f72cc2a0000)
$ md5sum /usr/lib/x86_64-linux-gnu/libzmq.so.3
87b97738b28a38a8e89796ecd41862b0  /usr/lib/x86_64-linux-gnu/libzmq.so.3.1.0

@aseering
on dpkg on libzmq3 I do have wsl1 at the end
ldd gives
ldd: /usr/lib/python2.7/dist-packages/zmq/backend/cython/utils.x86_64-linux-gnu.so: No such file or directory
md5sum is the same as your output

@pulinagrawal -- Sounds like you're not using Ubuntu's iPython package?  This fix only fixes Ubuntu's libzmq package.  If you're using an iPython that pulls in libzmq from elsewhere, they will need to apply the fix as well.
To be specific, I'm testing as follows:

Uninstall and fully remove any third-party ipython versions that you may have installed
Run the command sudo apt-get install ipython
Once ipython has successfully installed, run ipython notebook --no-browser.  It should print out a URL.  Open a browser in Windows; navigate to that URL.

If you want to track this down further, you could run a command like
find /usr $HOME -type d -name zmq | grep -v IPython

to try to figure out the actual path to the Python zmq module that you're running.  Then update the first command above with the appropriate path and re-run ldd; that should tell you where the third-party libzmq that you're using lives.
Another approach, just a guess:  Are you getting ipython through Anaconda?  I don't personally use Anaconda on Linux (I do on Mac/Windows) because it tends to cause this sort of confusion, and because there's less need for it -- apt-get install and pip install work well on their own.

@aseering Thanks for keep tracking on this:). looks like I'm facing the same issue as pulinagrawal does.
Will try to confirm the path.

Hi @aseering, I tried the command "find /usr $HOME -type d -name zmq | grep -v IPython" but found
"/usr/local/lib/python2.7/dist-packages/zmq" which seems to be the same path as the target of ldd you gave.
I don't use Anaconda . And this is the first time I use the win10 bash for running ipython notebook so I think my system should be clean...
I'll try to re-initialize the windows bash and try it again.

I try to install the fixed libzmq3 before installing ipython notebook and it works now.
the kernel doesn't crash anymore. thank you guy for helping on this :)
libzmq.so.3 => /usr/lib/x86_64-linux-gnu/libzmq.so.3 (0x00007fb3722e0000)
87b97738b28a38a8e89796ecd41862b0  /usr/lib/x86_64-linux-gnu/libzmq.so.3.1.0

Could you possibly package this for conda??? unfortunately I have to use a python distribution that is through conda (specific not available packages). Or prehaps tell me how to link it?

@aseering @mrsiamen
Thank You for the help!! It is fixed now.
I uninstalled ipython and jupyter. I removed the zmq folder from dist-packages.
I installed libzmq3 then installed ipython. It did not run yet because I guess removing zmq removed other stuff as well. So, I installed python-zmq. Now it is running.
I might have broken other stuff by just deleting the zmq folder. So I guess better method would have been to use uninstall on python-zmq. But I did not know the name of the package then.
But it works for now.

@tanguita , sorry for the delay -- I believe Anaconda manages their own packages so they would have to incorporate this patch themselves.  Feel free to go to Anaconda's bug tracker and file a bug there.  If they have questions, I'd be happy to help them with the process.
If you want to get the source code for the patched libzmq, first run the commands above to get the updated package; then run
apt-get source libzmq

This will download the source package from my PPA.  You can "cd" into it, read zmq's documentation, and see how to build it.
Alternatively, you can just install the binary package and take the pre-built libzmq that it installs, and try replacing Anaconda's libzmq with Ubuntu's.  But that will only work if the two are the same or similar versions; I haven't tested it myself.

@aseering, This is not strictly true--one can create a package for Anaconda and upload it to one's own conda channel:
https://conda.anaconda.org/

This is what I thought but do not know how to do it..
On 21/07/16 11:25, John ZuHone wrote:

@aseering https://github.com/aseering, This is not strictly
true--one can create a package for Anaconda and upload it to one's own
conda channel:
https://conda.anaconda.org/
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Microsoft/BashOnWindows/issues/185#issuecomment-234288922,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AID11O3GdlLali0cfqZHhW1dxThfSg9mks5qX49tgaJpZM4IG4pi.

Ah, thanks @jzuhone , I didn't realize people can create their own packages.  I'll look into that, but I'm a bit busy these days and I'm not a big Anaconda user so I'd have a bunch to learn...
The actual code change to libzmq is quite small; you can see it here.  If anyone here knows more about Anaconda packaging, feel free to apply that patch and add it to a channel.

@jzuhone Is this something you could do or point me on how? I have no idea where to start...

@tanguita and others:
I compiled zeromq with the patch as an anaconda package, you can get it by doing:
conda install -c jzuhone zeromq=dev
At best I will keep it updated infrequently, but this should hold everyone over until the stable releases have the fix hopefully.

Sorry, found some issues with the above. Try:
conda install -c jzuhone zeromq=4.1.dev0
instead

@aseering I can't even find zmq in /usr/lib/python2.7/dist-packages. How to fix this? I've installed it through your ppa though.

@adonese -- it sounds like your Python package directory has gotten corrupted.  You should not be needing to pip install anything to get iPython Notebook working.
Do you have any important state (configuration, files, etc) inside your Bash environment?  The simplest solution, though it's a bit heavyweight, would be to simply uninstall it per the instructions here:
https://msdn.microsoft.com/en-us/commandline/wsl/faq
then reinstall it per the instructions here:
https://msdn.microsoft.com/en-us/commandline/wsl/install_guide
and follow the steps above again to install the libzmq fix and install iPython Notebook.

Thanks @aseering. I've finally got it to work. I had to uninstall WSL, the reinstalling it again. IPython is now fully working (It's IPython though, not Jupyter, but I guess the previous will work also on Jupyter).
You also have to install ipython notebook through sudo apt-get install ipython ipython-notebook.

It's not working for me.
I tried finding my zmq directory like this:
$ find /usr $HOME -type d -name zmq
/usr/lib/python2.7/dist-packages/IPython/kernel/zmq
/usr/local/lib/python2.7/dist-packages/zmq

There is no directory such as  /usr/lib/python2.7/dist-packages/zmq
On the other hand:
$ ldd /usr/local/lib/python2.7/dist-packages/zmq/backend/cython/utils.so
        linux-vdso.so.1 =>  (0x00007fffc4f64000)
        libzmq-feeff037.so.5.0.1 => /usr/local/lib/python2.7/dist-packages/zmq/backend/cython/../../.libs/libzmq-feeff037.so.5.0.1 (0x00007f8073273000)
        librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f8073060000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f8072e30000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f8072a60000)
        libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f8072750000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f8072430000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f8072210000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f8073800000)

md5sum for this is:
$ md5sum /usr/local/lib/python2.7/dist-packages/zmq/backend/cython/../../.libs/libzmq-feeff037.so.5.0.1
cdcd394e58afa01a7c9981ac9cc90c97  /usr/local/lib/python2.7/dist-packages/zmq/backend/cython/../../.libs/libzmq-feeff037.so.5.0.1

But I do have the correct version of libzmq3:
$ dpkg -l libzmq3
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)

Can anyone help me understand what's going on?

@yasirs -- you are not using the Ubuntu version of python-zmq.  How did you install it?

@aseering  I think I may have installed it using pip. In any case, this is what I did:
$ sudo apt-get install python-zmq
$ sudo -H pip uninstall pyzmq

This solved the problem. Thanks!

@aseering Thanks for the fix, your changes worked perfectly on a new WSL install. Installed pip, pyhon-dev, scipy stack, ipython, ipython-notebook and then pip install jupyter. Works great!
sudo add-apt-repository ppa:aseering/wsl sudo apt-get update sudo apt-get install libzmq3

Hey guys,
I'm trying to install the patched version of libzmq3, but it's not working. I ran the 3 commands stated above, but my version is "4.0.4+dfsg-2ws". I also tried form a clean WLS and still, no luck. Is there a way to install the fix manually ?
Thanks !

Seems like this doesn't work with Python 2.7.12 built from source and linked in via update-alternatives. After sudo apt-get install ipython ipython-notebook, running ipython notebook results in
Traceback (most recent call last):
  File "/usr/bin/ipython", line 5, in <module>
    from IPython import start_ipython
ImportError: No module named IPython

Installing IPython using the pip bundled with that Python distro results in the ipython notebook command working, but then the zeromq error comes up.

@RitwikGupta Here's what I did to have it working with the pip version of jupyter.
pip uninstall pyzmq
sudo add-apt-repository ppa:aseering/wsl
sudo apt-get update
sudo apt-get install libzmq3 libzmq3-dev
export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu
pip install --no-use-wheel -v pyzmq
pip install jupyter

@gglanzani I tried your method, but this is what I get.
me@LAPTOP-C55:/mnt/c/Windows/System32$ jupyter notebook Traceback (most recent call last):   File "/usr/local/bin/jupyter-notebook", line 7, in <module>     from notebook.notebookapp import main   File "/usr/local/lib/python2.7/dist-packages/notebook/notebookapp.py", line 31, in <module>     from zmq.eventloop import ioloop ImportError: No module named zmq.eventloop

I tried sudo apt-get install python-zmq instead and it worked now.

@gglanzani Your fix worked! Though, running jupyter results in zsh: command not found: jupyter, but that may be due to my local pip installation. ipython notebook --no-browser works perfectly.
import sys
print sys.version_info
>>> sys.version_info(major=2, minor=7, micro=12, releaselevel='final', serial=0)

@gglanzani This works. Thanks a bunch mate! Now onto getting tensorflow to talk to my sweet GTX960M GPU.

Thank you so much for the help, everybody.  Jupyter is working on my computer now, running on a python3 kernel.
It took me a while to piece together all the individual pieces of advice/directions, because I'm a Linux/apt-get newbie.. So just in case anyone else is confused, hopefully I can help save some time with these instructions:

Clean install.
This:

sudo apt-get update
sudo apt-get install python-pip ipython ipython-notebook ipython3 ipython3-notebook
sudo add-apt-repository ppa:aseering/wsl
sudo apt-get update
sudo apt-get install libzmq3
sudo apt-get install python3-pip
sudo pip3 install jupyter
sudo pip install jupyter

Will get it up and running. Some of this may be redundant - I don't know. But it made it work, so figured I would share.

@aseering Thanks for the fixed libzmq3 package. It worked well with ipython 2.7.6, but on ipython 3.4.3 kernel still crashes. Which version did you use?
The following script can create a working Jupyter Notebook with python 2 kernel.
`
sudo add-apt-repository -y ppa:aseering/wsl
sudo apt-get -y update
sudo apt-get -y upgrade
sudo apt-get -y install libzmq3
sudo apt-get -y install python-pip python-dev ipython ipython-notebook pkg-config
sudo pip install jupyter --upgrade
`
(On a clean WSL install), the following script creates a Jupyter Notebook with Python 3 kernel. But it crashes as it's being connected and produces an error message "Invalid argument (bundled/zeromq/src/tcp_address.cpp:190)"
`
sudo add-apt-repository -y ppa:aseering/wsl
sudo apt-get -y update
sudo apt-get -y upgrade
sudo apt-get -y install libzmq3
sudo apt-get -y install python3-pip python3-dev ipython3 ipython3-notebook pkg-config
sudo pip3 install jupyter --upgrade
`

All, I followed the instructions above and unfortunately things did not work for me.
[W 12:02:11.358 NotebookApp] 404 GET /nbextensions/widgets/notebook/js/extension.js?v=20160822120145 (<IP_ADDRESS>) 8.01ms referer=http://localhost:8888/notebooks/Untitled.ipynb?kernel_name=python2
[I 12:02:11.613 NotebookApp] Kernel started: 75e0b050-5e54-4499-86f1-8db750790279
Invalid argument (bundled/zeromq/src/tcp_address.cpp:190)
[I 12:02:14.615 NotebookApp] KernelRestarter: restarting kernel (1/5)
Invalid argument (bundled/zeromq/src/tcp_address.cpp:190)
[I 12:02:17.641 NotebookApp] KernelRestarter: restarting kernel (2/5)
Invalid argument (bundled/zeromq/src/tcp_address.cpp:190)
[W 12:02:21.647 NotebookApp] Timeout waiting for kernel_info reply from 75e0b050-5e54-4499-86f1-8db750790279
[I 12:02:23.664 NotebookApp] KernelRestarter: restarting kernel (1/5)
WARNING:root:kernel 75e0b050-5e54-4499-86f1-8db750790279 restarted
Invalid argument (bundled/zeromq/src/tcp_address.cpp:190)
[I 12:02:26.690 NotebookApp] KernelRestarter: restarting kernel (2/5)
WARNING:root:kernel 75e0b050-5e54-4499-86f1-8db750790279 restarted
Invalid argument (bundled/zeromq/src/tcp_address.cpp:190)
[I 12:02:29.727 NotebookApp] KernelRestarter: restarting kernel (3/5)
Invalid argument (bundled/zeromq/src/tcp_address.cpp:190)

Very disappointing. Not sure if the issue lies on the Ubuntu side or the windows side. I don't think Jupyter is directly involved in that issue.

I want to report that the only way to get this to work was through a clean install. ICYMI:
In a good old windows cmd.exe prompt type: lxrun /uninstall /all It will raise a warning letting you that all data (including your home dir) will be wiped.
After that process is done (it should take 2-3 minutes), type: lxrun /install to re-install the ubuntu subsystem from scratch.
Once that's done here's what I did:
    1  sudo apt-get update
    2  sudo add-apt-repository ppa:aseering/wsl
    3  sudo apt-get update
    4  sudo apt-get install python-pip ipython ipython-notebook
    5  ipython notebook --no-browser

It now works flawlessly, but with the old iPython UI (which I'm totally OK with given it works)

Hi guys,
This thread has been very useful for me to set up Jupyter kernel and stuff.
I used Windows 10 bash to install it and tensorflow. I run Jupyter in bash and open Windows browser as http://localhost:8888. Jupyter works and my files are there. My intention is to right a tensorflow code and execute it but I get the following errors:
ImportError                               Traceback (most recent call last)
 in ()
----> 1 import tensorflow as tf
2 import numpy as np
ImportError: No module named tensorflow
What can be the possible reason?

@allblues1001 can you run python in a bash prompt, then when you get the python REPL prompt >>> type import tensorflow and let us know the result of that is?

@rdodev Thanks for the response. Yes, I am able to run python and import tensorflow in the bash prompt. Absolutely no problem in that. It is only when I use Windows browser (Google Chrome), it fails to import tensorflow, numpy etc. Interestingly, the python commands are working fine like adding two numbers etc. It is only when I try to import some library like tensorflow and numpy, I get these errors.
Can there be some communication problem?

Did you install TensorFlow via pip?
Could you post the result of python --version and pip --version?
On Wed, Aug 24, 2016 at 9:01 AM -0400, "allblues1001" <notifications<EMAIL_ADDRESS>wrote:
@rdodevhttps://github.com/rdodev Thanks for the response. Yes, I am able to run python and import tensorflow in the bash prompt. Absolutely no problem in that. It is only when I use Windows browser (Google Chrome), it fails to import tensorflow, numpy etc. Interestingly, the python commands are working fine like adding two numbers etc. It is only when I try to import some library like tensorflow and numpy, I get these errors.
Can there be some communication problem?

You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/Microsoft/BashOnWindows/issues/185#issuecomment-242054527, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AEurpdNlSNKjKTTqy95y2BASscw6s3PJks5qjEChgaJpZM4IG4pi.

@RitwikGupta : Yes, I used pip to install Tensorflow. The results are:
Python 2.7.6 and pip 1.5.4

Could you please also list the complete path of the installation of Python and pip? Just confirming that you're not using a version of pip provided by a separate Python installation and then launching ipython notebook provided by apt.
On Wed, Aug 24, 2016 at 9:15 AM -0400, "allblues1001" <notifications<EMAIL_ADDRESS>wrote:
@RitwikGuptahttps://github.com/RitwikGupta : Yes, I used pip to install Tensorflow. The results are:
Python 2.7.6 and pip 1.5.4

You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/Microsoft/BashOnWindows/issues/185#issuecomment-242058810, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AEurpcxvr_fulTt1ABh2dcis29rFqUrLks5qjEPKgaJpZM4IG4pi.

Sure, it says:
pip 1.5.4 from /home/allblues1001/tensorflow/local/python2.7/site-packages (python 2.7)

@allblues1001 and forgive me if this is obvious, but the kernel you're starting in ipython is the same version as the one in bash? try this on both the python REPL and the ipython notebook:
import sys
print sys.version_info

and compare.

@rdodev For python REPL and jupyter notebook it is the same:
sys.version_info (major=2, minor=7, micro=6, releaselevel='final', serial=0)

@allblues1001 try this on both
import sys
sys.path

and see if they are the same.

For python:
['', '/home/allblues/tensorflow/lib/python2.7', '/home/saad-omar/tensorflow/lib/python2.7/plat-x86_64-linux-gnu', '/home/allblues/tensorflow/lib/python2.7/lib-tk', '/home/saad-omar/tensorflow/lib/python2.7/lib-old', '/home/allblues/tensorflow/lib/python2.7/lib-dynload', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/home/allblues/tensorflow/local/lib/python2.7/site-packages', '/home/allblues/tensorflow/lib/python2.7/site-packages', '/usr/local/lib/python2.7/site-packages', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PILcompat', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.7']
For jupyter notebook:
['',
'/usr/lib/python2.7',
'/usr/lib/python2.7/plat-x86_64-linux-gnu',
'/usr/lib/python2.7/lib-tk',
'/usr/lib/python2.7/lib-old',
'/usr/lib/python2.7/lib-dynload',
'/usr/local/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages/PILcompat',
'/usr/lib/python2.7/dist-packages/gtk-2.0',
'/usr/lib/pymodules/python2.7',
'/usr/local/lib/python2.7/dist-packages/IPython/extensions',
'/home/allblues/.ipython']

@allblues1001 you left a few 'saad-omar' there :p That said, you have an issue. Both paths should look more or less the same. It would seem tensorflow installed its own version of python? Either way, your issue is not related to Bash on Windows or ipython. I would suggest seeking help from the folks at tensorflow.

thank you!

@RitwikGupta ipython notebook --no-browser says 0 active kernel. I opened http://localhost:8888/tree# in my browser and then when I open a new notebook (python[root]) it says connecting to kernel and closes automatically. Can you please let me know what is the possible solution for this?
Thanks!
Anand Bhattad

this is what I get

Check your console and ensure there are no errors first. If getting the socket error, follow the steps above.
On Wed, Aug 31, 2016 at 11:37 PM -0400, "bhattad2" <notifications<EMAIL_ADDRESS>wrote:
@RitwikGuptahttps://github.com/RitwikGupta ipython notebook --no-browser says 0 active kernel. I opened http://localhost:8888/tree# in my browser and then when I open a new notebook (python[root]) it says connecting to kernel and closes automatically. Can you please let me know what is the possible solution for this?
Thanks!
Anand Bhattad

this is what I get
[image]https://cloud.githubusercontent.com/assets/16907734/18154563/5a082604-6fcb-11e6-8ab8-1a488becb7cf.png

You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/Microsoft/BashOnWindows/issues/185#issuecomment-243967211, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AEurpbB0-cTP5_8ULFspO1E6Ytd5OOURks5qlkhMgaJpZM4IG4pi.

There are no console errors. And I'm able to use ipython from the terminal and I am able to import tensorflow, numpy without any error

This seems like an iPython issue rather than BashOnWindows, so I would suggest taking this issue to that repo, but I think the error is in your kernel config. Is python[root] your kernel? It should be called “Python 2” or “Python 3” for a fresh install.
From: bhattad2<EMAIL_ADDRESS>Sent: Thursday, September 1, 2016 12:11 AM
To: Microsoft/BashOnWindows<EMAIL_ADDRESS>Cc: Ritwik Gupta<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [Microsoft/BashOnWindows] Cannot connect to jupyter/ipython instance (#185)
There are no console errors. And I'm able to use ipython from the terminal and I am able to import tensorflow, numpy without any error
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/Microsoft/BashOnWindows/issues/185#issuecomment-243971177, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AEurpWCZBghvJoz-xGm_pq8G1sxr1bsiks5qllBQgaJpZM4IG4pi.

@aseering Please clarify few things about the solution:

does it work only for Python 2.7 or does it cover Python 3.x?
you keep referring to IPython rather than Jupyter - does this mean Jupyter is not covered?
how should we integrate the solution in case of virtualenv or anaconda environments?

Thank you

Also, shouldn't Microsoft be moving towards an actual solution to this
rather than just @aseering's workaround?
On Thu, Sep 1, 2016 at 5:11 PM, bobev18<EMAIL_ADDRESS>wrote:

@aseering https://github.com/aseering Please clarify few things about
the solution:

does it work only for Python 2.7 or does it cover Python 3.x?
you keep referring to IPython rather than Jupyter - does this mean
Jupyter is not covered?
how should we integrate the solution in case of virtualenv or
anaconda environments?

Thank you
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Microsoft/BashOnWindows/issues/185#issuecomment-244213704,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAYcmsyDi5NKMFW7XuLE6fuq5Pb3ckW0ks5qlz95gaJpZM4IG4pi
.

@bobev18 , maybe this helps to understand the issue:  This bug is not a bug in Python.  IPython (and Jupyter) Notebook are not pure Python; they contain some native code as well, and that native code links against some third-party native systemwide C libraries.  The problem is a bug in one of those libraries, "libzmq".  All versions of Notebook link libzmq.  Because it's an independent system library, it doesn't matter what version of iPython/Jupyter you're using, nor what version of Python.
But which libzmq do they link?  The iPython that comes with Ubuntu uses the libzmq that comes with Ubuntu.  I believe pip will try to use the system libzmq as well.  My updated patch fixes Ubuntu's version of the library.  Anaconda bundles their own copy of libzmq, so you have to use @jzuhone 's solution to get their fix.

@yasirs -- for what it's worth, this is actually a bug in Ubuntu's package.  The bug has been acknowledged and fixed upstream.  It happens to be much more disruptive on WSL, but it's a bug either way.  My "workaround" is simply to backport the fix to Ubuntu 14.04.
Sure, Microsoft should make their code more robust to buggy code.  I hope they've gotten that memo :-)  But this is a known bug whose fix has been submitted to Ubuntu.  They could accept the patch today and ... well, sure, some important edge cases, but it would help a lot of people.  So, could some of the enthusiastic folks here go upvote / encourage them to do that?:
https://bugs.launchpad.net/ubuntu/+source/zeromq3/+bug/1602900

@aseering Do you mind sharing latest instructions for clean install please? The thread is quite long, and it's not clear if things are changed since your last instructions post

This worked for me a few weeks ago from a fresh install:
Sudo apt-get update
Sudo apt-get install python-pip ipython ipython-notebook ipython3
ipython3-notebook
sudo add-apt-repository ppa:aseering/wsl
sudo apt-get update
sudo apt-get install libzmq3
sudo apt-get install python3-pip
sudo pip3 install jupyter
sudo pip install jupyter
jupyter notebook --no-browser
No reason to believe it wouldn't work now. But it would be great with
confirmation if you decide to try this out.
On Tue, Sep 20, 2016, 5:43 PM fedorzh<EMAIL_ADDRESS>wrote:

@aseering https://github.com/aseering Do you mind sharing latest
instructions for clean install please? The thread is quite long, and it's
not clear if things are changed since your last instructions post
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Microsoft/BashOnWindows/issues/185#issuecomment-248457677,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABxk66QF7rV31K3PrktrGIdNJDldVELrks5qsGGcgaJpZM4IG4pi
.

(Email client on phone capitalized s couple of sudo there, sorry. Just
lowercase the S.)
On Tue, Sep 20, 2016, 5:50 PM Arthur Hjorth<EMAIL_ADDRESS>wrote:

This worked for me a few weeks ago from a fresh install:
Sudo apt-get update
Sudo apt-get install python-pip ipython ipython-notebook ipython3
ipython3-notebook
sudo add-apt-repository ppa:aseering/wsl
sudo apt-get update
sudo apt-get install libzmq3
sudo apt-get install python3-pip
sudo pip3 install jupyter
sudo pip install jupyter
jupyter notebook --no-browser
No reason to believe it wouldn't work now. But it would be great with
confirmation if you decide to try this out.
On Tue, Sep 20, 2016, 5:43 PM fedorzh<EMAIL_ADDRESS>wrote:

@aseering https://github.com/aseering Do you mind sharing latest
instructions for clean install please? The thread is quite long, and it's
not clear if things are changed since your last instructions post
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Microsoft/BashOnWindows/issues/185#issuecomment-248457677,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABxk66QF7rV31K3PrktrGIdNJDldVELrks5qsGGcgaJpZM4IG4pi
.

@arthurhjorth  Thanks! I am actually trying to install with python 2, as I want to use tensorflow and gym, and they don't support 3 as well as 2 yet.
I have tried
apt-get install python-pip ipython ipython-notebook
add-apt-repository ppa:aseering/wsl
apt-get update
apt-get install libzmq3
apt-get install python3-pip
pip install jupyter
jupyter notebook --no-browser
(no sudos didn't give any errors during installation, and I wanted to do anything as myself to avoid permission problems in the future) but that didn't work (as in still the same error "Invalid argument (bundled/zeromq/src/tcp_address.cpp:190")

Using @rdodev 's advice exactly https://github.com/Microsoft/BashOnWindows/issues/185#issuecomment-241515056, with full reinstall of Ubuntu, ipython notebook worked!
Further pip install jupyter worked for running jupyter instead.

After upgrading to 14936, jupyter notebook no longer works on my machine. If you're in this thread, you probably care about that, so don't upgrade unless you have to.

Reverting back fixed it.
On the new build, I got an error about unsupported operation at tcp_address.cpp:169 and the kernel kept restarting until it had tried five times, and then it gave up.
I am using my computer to do a presentation including some coding, so I can't help with debugging atm or offer any other information.

FWIW, I'm seeing the exact same thing as @arthurhjorth with python and jupyter installed from conda

@arthurhjorth +1
In 14936,
[I 23:55:53.388 NotebookApp] Kernel started: 99311cb2-a24a-4f51-983b-7187e3fe940d
Operation not supported (tcp_address.cpp:169)
[I 23:55:56.383 NotebookApp] KernelRestarter: restarting kernel (1/5)
Operation not supported (tcp_address.cpp:169)
[I 23:55:59.465 NotebookApp] KernelRestarter: restarting kernel (2/5)
Operation not supported (tcp_address.cpp:169)
[I 23:56:02.523 NotebookApp] KernelRestarter: restarting kernel (3/5)
^C[I 23:56:03.049 NotebookApp] interrupted
Serving notebooks from local directory: /root
1 active kernels
The Jupyter Notebook is running at: http://localhost:8192/
Shutdown this notebook server (y/[n])? ^C[C 23:56:03.195 NotebookApp] recei

Fix:
In 14936, kernel use EOPNOTSUPP instead of EINVAL.
So, after using https://launchpadlibrarian.net/261891465/zeromq3_4.0.4+dfsg-2_4.0.4+dfsg-2wsl1.diff.gz this patch,
line 161 should be if (rc != 0 && (errno == EINVAL || errno == EOPNOTSUPP))
and it should works.
PS: if you are building zeromq under WSL, you may need skip all tests..
@phobson @arthurhjorth
PSS: you may use this built libzmq3 (if you trust me), or you can modify that line and build the package
modified_libzmq3.zip

@Yangff Thanks for the information! Very insightful.
I'm less interested in getting this running now than I am in poking the right people (e.g., jupyter, zeromq) so that they are aware of the issue and can support WSL

Ideally people shouldn't have to make changes to support WSL. It's more a matter of us making sure to return the right error code in this condition. I'll take a look at this tomorrow and see what the problem is.

@benhillis Thanks for making sure this issue is taken care of :smile:

Thanks! Can @aseering update his branch with this patch, so people can use
the the same instructions to use the patched package?
On Sun, Oct 2, 2016 at 7:57 PM, Ritwik Gupta<EMAIL_ADDRESS>wrote:

@benhillis https://github.com/benhillis Thanks for making sure this
issue is taken care of 😄
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Microsoft/BashOnWindows/issues/185#issuecomment-251005041,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAYcmpleOGQ48MJFtbvLRHzD8F8yZEy_ks5qwEUGgaJpZM4IG4pi
.

@Yangff thanks so much! I have too much work this week to dare do anything other than just stick with the old build for now. Unless there's a WSL fix in sight by some time after next week, I'll use your libzmq. Thank you!!

I'm having trouble reproducing this issue. Could somebody give me a list of steps / instructions?  Here's what I did:
apt-get update
apt-get install python-pip ipython ipython-notebook libzmq3
pip install jupyter
jupyter notebook --no-browser

I then launched a browser and navigated to the URL that was spit out by the jupyter command.

@benhillis can you then start a notebook and execute python?

On the site New, then Terminal and ran python inside of that.  Is that what you mean?

Hm, it may be that the Ubuntu trunk libzmq may be working properly now with WSL. @benhillis, can you try the steps listed on https://github.com/Microsoft/BashOnWindows/issues/185#issuecomment-225449188 and see if that breaks it? If so, it may be that the libzmq on @aseering's PPA is borked.

You need to make a new notebook, not a terminal:

Then you get stuck in a loop of dead/restarting kernels:

Console output looks like this:
(jup) paul@POR-PHOBSON10:/mnt/c/Users/phobson$ jupyter notebook --no-browser
[W 11:13:39.836 NotebookApp] Widgets are unavailable. Please install widgetsnbextension or ipywidgets 4.0
[I 11:13:39.851 NotebookApp] Serving notebooks from local directory: /mnt/c/Users/phobson
[I 11:13:39.852 NotebookApp] 0 active kernels
[I 11:13:39.852 NotebookApp] The Jupyter Notebook is running at: http://localhost:8888/
[I 11:13:39.852 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[I 11:14:20.160 NotebookApp] 302 GET / (<IP_ADDRESS>) 4.28ms
[I 11:15:47.918 NotebookApp] Creating new notebook in
[W 11:15:48.907 NotebookApp] 404 GET /nbextensions/widgets/notebook/js/extension.js?v=20161003111339 (<IP_ADDRESS>) 14.75ms referer=http://<IP_ADDRESS>:8888/notebooks/Untitled.ipynb?kernel_name=python3
[I 11:15:49.166 NotebookApp] Kernel started: 03a01c40-5d09-444d-a173-bf97447956bd
Invalid argument (src/tcp_address.cpp:172)
[I 11:15:52.165 NotebookApp] KernelRestarter: restarting kernel (1/5)
Invalid argument (src/tcp_address.cpp:172)
[I 11:15:55.232 NotebookApp] KernelRestarter: restarting kernel (2/5)
Invalid argument (src/tcp_address.cpp:172)
[I 11:15:58.295 NotebookApp] KernelRestarter: restarting kernel (3/5)
[W 11:15:59.202 NotebookApp] Timeout waiting for kernel_info reply from 03a01c40-5d09-444d-a173-bf97447956bd
Invalid argument (src/tcp_address.cpp:172)
[I 11:16:01.380 NotebookApp] KernelRestarter: restarting kernel (4/5)
WARNING:root:kernel 03a01c40-5d09-444d-a173-bf97447956bd restarted
Invalid argument (src/tcp_address.cpp:172)
[W 11:16:04.456 NotebookApp] KernelRestarter: restart failed
[W 11:16:04.458 NotebookApp] Kernel 03a01c40-5d09-444d-a173-bf97447956bd died, removing from map.
ERROR:root:kernel 03a01c40-5d09-444d-a173-bf97447956bd restarted failed!
[W 11:16:04.504 NotebookApp] Kernel deleted before session
[W 11:16:04.509 NotebookApp] 410 DELETE /api/sessions/84ce5660-b868-4824-805b-200a40c62596 (<IP_ADDRESS>) 12.75ms referer=http://<IP_ADDRESS>:8888/notebooks/Untitled.ipynb?kernel_name=python3
[W 11:16:22.342 NotebookApp] Session not found: session_id='84ce5660-b868-4824-805b-200a40c62596'
[W 11:16:22.342 NotebookApp] 404 DELETE /api/sessions/84ce5660-b868-4824-805b-200a40c62596 (<IP_ADDRESS>) 2.19ms referer=http://<IP_ADDRESS>:8888/notebooks/Untitled.ipynb?kernel_name=python3
[I 11:16:22.398 NotebookApp] Kernel started: 1da56c55-9360-4f85-89b1-76da21623cd6
Invalid argument (src/tcp_address.cpp:172)
[I 11:16:25.397 NotebookApp] KernelRestarter: restarting kernel (1/5)
Invalid argument (src/tcp_address.cpp:172)
[I 11:16:28.432 NotebookApp] KernelRestarter: restarting kernel (2/5)
Invalid argument (src/tcp_address.cpp:172)
[I 11:16:31.489 NotebookApp] KernelRestarter: restarting kernel (3/5)
Invalid argument (src/tcp_address.cpp:172)
[W 11:16:32.421 NotebookApp] Timeout waiting for kernel_info reply from 1da56c55-9360-4f85-89b1-76da21623cd6
[I 11:16:34.568 NotebookApp] KernelRestarter: restarting kernel (4/5)
WARNING:root:kernel 1da56c55-9360-4f85-89b1-76da21623cd6 restarted
Invalid argument (src/tcp_address.cpp:172)
[W 11:16:37.647 NotebookApp] KernelRestarter: restart failed
[W 11:16:37.649 NotebookApp] Kernel 1da56c55-9360-4f85-89b1-76da21623cd6 died, removing from map.
ERROR:root:kernel 1da56c55-9360-4f85-89b1-76da21623cd6 restarted failed!
[W 11:16:37.691 NotebookApp] Kernel deleted before session
[W 11:16:37.694 NotebookApp] 410 DELETE /api/sessions/93443e32-9137-48b4-ba40-2ee6c963ca34 (<IP_ADDRESS>) 7.89ms referer=http://<IP_ADDRESS>:8888/notebooks/Untitled.ipynb?kernel_name=python3

@rdodev you mean ' /uninstall /full'?

ipython kernel keeps dying (bash on ubuntu on windows)
I follow this step, yet the kernel keeps dying
sudo add-apt-repository ppa:aseering/wsl
sudo apt-get update
sudo apt-get install libzmq3 libzmq3-dev
export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu
pip install --no-use-wheel -v pyzmq
pip install jupyter

Kernel started: c81deaed-dfc4-4733-8ba7-173dc82d646c
Invalid argument (src/tcp_address.cpp:190)
KernelRestarter: restarting kernel (1/5)
Invalid argument (src/tcp_address.cpp:190)
KernelRestarter: restarting kernel (2/5)
Invalid argument (src/tcp_address.cpp:190)
KernelRestarter: restarting kernel (3/5)
Invalid argument (src/tcp_address.cpp:190)
Timeout waiting for kernel_info reply from c81deaed-dfc4-4733-8ba7-173dc82d646c
KernelRestarter: restarting kernel (4/5)
WARNING:root:kernel c81deaed-dfc4-4733-8ba7-173dc82d646c restarted
Invalid argument (src/tcp_address.cpp:190)
![applicationframehost_2016-10-18_18-37-29]
KernelRestarter: restart failed
Kernel c81deaed-dfc4-4733-8ba7-173dc82d646c died, removing from map.
ERROR:root:kernel c81deaed-dfc4-4733-8ba7-173dc82d646c restarted failed!
Kernel deleted before session
410 DELETE /api/sessions/21a9b67b-1a2c-45cd-8df7-41885ae62f2e (<IP_ADDRESS>) 4.49ms referer=http://localhost:8888/notebooks/a.ipynb

@Carmezim

By the way, if you are mostly using bash to run TensorFlow there is now an alpha Windows support to run it natively on CPU only now
Most people still have problem getting the CPU only version to work :-(

@JimSEOW The native TensorFlow windows support is an alpha as you've read I mentioned, so you are expected to face some instability although it seems to be working without problems.
For more information or problems with native TensorFlow on WIndows see their issue thread here.
There is also a version now running with bazel. In my case I have it running perfectly naively.
Now regarding bash and ipython, did you try to install on a clean bash installation?

In @benhillis case:
Invalid argument (src/tcp_address.cpp:172)
In my case:
Invalid argument (src/tcp_address.cpp:190)
Is this related to Bash on Windows? Any suggestion?
@Carmezim
Yes, it is a clean bash installation.  Do you have stable Juypter running on bash on Window? If so, I would try again, before moving to Hyper-V Ubuntu.

@JimSEOW Yes, I was having problems with Xenial only but after a fresh installation and following some instructions above it worked normally.

@Yangff  (or others that can help):  I don't know what to do with the modified libzmq3 files you uploaded.  I tried installing them using sudo dpkg -i filename and then sudo apt-get install -f afterwards, but it didn't seem to work.
How should this library get installed?

@thwump dpkg -i should work.
Have you reinstalled pyzmq after change libzmq?

For what it's worth, the latest WSL Insider build contains a change that might work around this issue.  I'm not at a Windows machine right now but I would be interested to know if the stock libzmq does indeed work now.

@aseering forgive my ignorance. how does one update to the latest build? (I presume it takes more than just sudo apt-get update && sudo apt-get upgrade --yes)

@phobson -- I'm guessing based on your question that you're running the standard stable version of Windows, and are not part of the Insider program?  You can learn more about the program here:
https://insider.windows.com/
It's easy (and free) to join.  Once you join, updates will automatically appear through Windows Update.  But you can't selectively update (you can't just upgrade WSL, for example); you're opting in to receive a pre-release version of all of Windows.  This new version contains new features; also new bugs :-)
Features added to the Insider releases eventually make it into the next major Windows release.  So, if you don't choose to join the Insider program, you'll get the new features when the next major Windows version ships, probably some number of months from now.

It works for me, but I need to run all pip install or pip3 install with sudo -H flag so that everything installs in the home directory. I do not use the -H flag when installing things with apt-get. I don't know enough about all this stuff to make sense of why, but doing that makes everything run "out of the box" for me!
(If anyone understands why this would work and can spare the time to explain it or point to a good resource on it, I would love to learn. I've googled around and read stuff online but still can't put together a coherent explanation in my head.)

Hi @arthurhjorth -- what arguments are you running pip with?
sudo -H will not, by itself, cause things to be installed to your home directory.  sudo (by default) runs commands as the root user rather than as your normal user account; root has elevated privileges to install things systemwide.  sudo -H says, even though you're running as the root user, set the $HOME environment variable to point at your regular user's home directory.  This affects programs that try to write to "the current user's home directory".
apt-get always installs software systemwide.  (It's the Ubuntu package manager; it installs packages for your Ubuntu system.)  Therefore, by default it must be run as root, and the value of the $HOME environment variable (and therefore the -H flag to sudo) don't affect it.
pip (and pip3) can install either systemwide or just for your current user account.  By default, it decides where to install based on whether you run pip with the --user flag:  With that flag, it will install to your home directory; without that flag, it will install systemwide.  If you install systemwide, by default it will need to run as root.  If you install to your home directory, you should not need to install as root -- this is very useful for users on shared machines who don't have sudo access.
There are a few weird edge cases to consider:

If you run sudo pip install --user <some package>:  sudo means "run the following command as root".  pip install --user means "install to the current user's home directory.  But the current user is root.  So this will install the package to root's home directory, and it will only be available if you run as root.  Which is probably not useful, unless you really know what you are doing.
If you run sudo -H pip install --user <some package>:  This is the same as above, except, you're telling pip that root's home directory is your current directory.  That's actually bad:  It means that pip will install the package to your home directory, but your user's package repository will be corrupted / updated to be owned by root.  By default, this means that you can run packages, but the next time you try to install using pip without sudo, you won't be allowed to do so.  You can fix this by running sudo chown -R $USER ~/.local.
What happens if you install via both apt-get and pip?  Some packages will conflict.  In this case, apt-get, which is a general-purpose package manager and has only a minimal understanding of Python in particular, will simply error out and say (I'm paraphrasing here) "go fix your package!"  pip is a little more clever; it will try to resolve the dependency in favor of whatever version it is installing.  However, most packages won't conflict.  This is because Python has a "search path":  When you go to import a package in a  Python script, first, Python checks for packages installed to your user account's home directory (where pip install --user puts them) -- $HOME/.local/lib/python2.7.  If it doesn't find a package there, next it looks in /usr/local/lib/python2.7 (or similar for Python 3), which is where sudo pip install puts them.  If it still doesn't find the package, then it looks in /usr/lib/python2.7, which is where apt-get installs its packages.  If it still doesn't find the package, only then does it error out.  So if you install a package multiple times using different tools or commands, Python will pick whichever it sees first.  This can cause a lot of confusion -- for example, if you install using pip, then you decide you want the official Ubuntu version so you install using apt-get, you'll keep getting the pip version because it's first in the search path.  Also, if you have a broken version of a package early in the search path that won't uninstall for whatever reason, installing a correct package may not fix it if the correct one is installed later in the search path.

All of the above assumes that you're using the standard version of Python packaged for Ubuntu Linux (which is what WSL uses).  If you're running on CentOS, or Mac, or on Ubuntu using an alternative version of Python such as Anaconda or Linuxbrew, then at minimum the number and location of paths in Python's search path will change; also, some of those installations will reconfigure your system to not require root access to install Python packages systemwide.

@jzuhone Hey man thks for the fix. I tried to fix this for days now and your package made it work like a charm! I appreciate it!

Aye, also just saved by @jzuhone. For anyone working from an anaconda install, his package totally works. Thanks!

Hi @gencee and @spoonsso,
Thanks for the appreciation--but my package should be totally unnecessary now if you update to the latest Windows 10 Fast Ring update, as Microsoft has fixed the underlying issue.

Hey, @aseering I'm getting
E: Unable to locate package libzmq3
for some reason. Any ideas?

I reinstalled 14.04 from scratch, but still getting
Invalid argument (bundled/zeromq/src/tcp_address.cpp:199)

Hi @fedorzh -- for what it's worth, an alternative fix is bundled into the latest Insider build.  So if you're willing to run an Insider build (either Fast or Slow Ring is new enough), then you no longer need my fix.  (Also, Insider builds have native official support for Ubuntu 16.04, as well as many other WSL fixes and improvements.)
If you are staying with regular Windows, though -- how did you install iPython Notebook?  My fix only works if you installed it via sudo apt-get install ipython-notebook.  If you have ever installed it any other way, you must fully uninstall it (which can sometimes be tricky), then add my repository, then reinstall it via apt-get.
If you need to use a version of Notebook that's installed from some other source, others on this thread (for example, @jzuhone ) have created packages for other packaging systems.

@aseering
Yes, I tried to upgrade ti 16.04 to see if it helps with other issues, but it only becomes more unstable, so decided to go back to 14.04. I can't move to Insider builds unfortunately due to company policy
I install jupyter with
sudo pip3 install jupyter.
What would be your recommendation? Would it work if you provide host to get, compile your fix manually, and install the compiled version?
Or should I uninstall current jupyter version?

@fedorzh -- hm...  You could try installing the libzmq-dev package through apt-get; then uninstalling jupyter through pip and reinstalling it as sudo pip3 install --no-binary :all: jupyter.  I may have the syntax wrong -- basically, you want to force pip to compile jupyter notebook from source, rather than using pip's precompiled binary.  I believe its build scripts will notice that your system already has libzmq, and will use the (fixed) system version rather than the (broken) version bundled in pip's upstream repository.

Also -- if you're installing anything from source on Ubuntu (including the command that I recommended above), first you want to run sudo apt-get install build-essential.  It installs a compiler and a bunch of standard build tools that are usually needed to build things from source.

Hi,
Does anybody know how we can use matplotlib (inline) on Jupyter? My kernel dies when I am using this package. I have also tried Xming and it didn't work.
Nima

@nimasasa - Thanks for your post.

My kernel dies...

Which kernel are you referring to? Is your setup on native Linux or WSL/bash?

@sunilmut I ma using WSL. I know it does not support graphical applications officially. But I was able to use Xming. Now, my problem is I can have anaconda and Jupyter on my chrome to run my codes, but when I am trying to plot something, my python kernel dies.

@nimasasa - Thanks for confirming. I was worried that you might be referring to Windows kernel dying :). I would recommend starting a new issue/post for this, using the template. A strace would be useful too.

Thanks @jzuhone!
conda install -c jzuhone zeromq=dev fixed this for me. The apt-get one didn't work probably because I am using conda environment.
Not going for the fast ring because I've faced BSOD's before.. ;)

Thanks @jzuhone!
→ conda install -c jzuhone zeromq=4.1.dev0 works for me!

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.

@ahsteven it's impossible to run tensorflow with gpu on WSL.

@Yangff Did you try using VcSrv 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.

No, I have not. I plan to setup a dual boot soon so I will just leave it
for now.
On Wed, Dec 20, 2017 at 1:39 PM, DarthSpock<EMAIL_ADDRESS>wrote:

@Yangff https://github.com/yangff Did you try using VcSrv 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.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Microsoft/WSL/issues/185#issuecomment-353147055, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AJsMv4O3uSnDRRU-VEPSw3PjIFubJEDSks5tCVRggaJpZM4IG4pi
.

The OP here was:
Invalid argument (bundled/zeromq/src/tcp_address.cpp:171)

Which was:
    //  Get the addresses.
    ifaddrs *ifa = NULL;
    const int rc = getifaddrs (&ifa);
    errno_assert (rc == 0);
    zmq_assert (ifa != NULL);

Which is #308 addressed in 15007 and Creators Update 15063.


support for material design widgets

Hi @GermanBluefox ,
since i implemented the vuetify api for the new sliders, i need a closing tag for the api, show here:
https://github.com/Scrounger/ioBroker.vis-materialdesign/blob/7859d055a4f980e7d478c590357ffdc432c179c7/widgets/materialdesign.html#L9
Now the Community figured out, that the refresh of the iframe, image and html not work anymore on chrome and safari browser. On Firefox this problme not occurs.
Reason is that Chrome and Safari give not back the 'body' as parent. So i implemented to also check the id of the closing tag describped above.
Could you please merge this and publish a new version on latest / stable ?

Thank you


simplified use of manual segmetation

I've had many users get tripped up on this (myself included!), often when using ex-vivo data. Here, I  provide a single --modality option for manual segmentations. I add the requirement that the data be roughly aligned with one of the input templates (e.g. CITI168). I believe this is a simple requirement given the complexity anyone has to go through in doing a manual segmentation anyway. Also ex-vivo cases tend to be in arbitrary spaces anyway, making it very hard to work with until they are reoriented.
I also restore the lut, which I will ad to the Documentation guiding manual segmentations (TODO!)
The template is still used to go to space-corobl (with cropping), so users don't need to crop around the hippocampus. So, effectively, I'm renameing cropseg to manualseg, adding the template-to-corobl transform, and remove the segT1w and segT2w workflows.

check should pass with https://github.com/khanlab/hippunfold/pull/326/

double check common.smk


Replace all logger.log calls with events!

All events generate log entries and also websocket messages!

Need to add something, w8.

:+1:

There are still a few events to add. I'll update tomorrow.

Nice, still no Conflict. 👍

Tests are failing. :)

@TheSavior I can confirm it's problem with float number precision. My OS X machine and my Debian VM have different coordinates is result for clique algorithm (this is where test fails).

@douglascamata If that is the case, I believe we have a test util for verifying that two floats are "close enough". Perhaps we should be using that wherever the test is currently failing.

@TheSavior problem is that 2 floats being GPS coordinates "close enough" floats can be very distant from each other.

I believe it takes an argument for you to define what is close enough.

unittest.assertAlmostEqual always rounds to a given decimal point, so it could be tricky to find a reliable parameter. To be really safe you could use smth like assertTrue(utils.distance() < x) with x = 1m.

:+1:

👍

:+1:

By "Multibot" do you mean running more than one bot, or some feature I'm not aware of / can't find?

@SpencerCarstens I mean running more than one instance of the bot and just one websocket server.

@douglascamata thanks for the great additions... but I noticed this also kills colored output on the Terminal... Any notes on this?

@TCB13 I might do a fix when we got updated protobuf for bots.... I need something smart, because I'll add config to each task to be able to disable theirs logs or log to a file.

@douglascamata I'm aware that this commit lays a lot of ground for web sockets but there are some folks that want to keep it more simple and just run it on the terminal... without any web UI etc. Not having colored output makes it harder.

@TCB13 I know people will complain about this as soon as they see everything in black and white.... we will think about this later.

@douglascamata Was this idea ever flushed out anymore, or did it get put on hold due to the API debacle? There are a lot of pull requests still open over in the Go-Map project so I wanted to see what the plan was before I start rearranging deck chairs on the Titanic.

@SpencerCarstens the feature is implemented in the bot and we have 3 people working on the new websocket-based UI. It will be released soon. What does the Go-Map project has to do with this anyway?

@douglascamata
Sorry, need coffee - I meant PokemonGo-Web.
I would love to help, what project are they working on the UI in?

@SpencerCarstens dunno exactly where they are hosting it for now. But @brantje and @Jasperrr91 are working on it with Angular 1.5.

@douglascamata Perfect! I can certainly be a resource on that.


adding voronoi analysis

adding voronoi analysis of atom positions

Merging - can't see any obvious to not merge


Add IntegrationTest::app_dir_preprocessor

This allows users to have the app directory (test fixture) to be modified in a safe way, just before the
integration test runs.
Usage Example
This is a cutlass test ported to libcnb-test for heroku/maven. Original cutlass test can be found here: https://github.com/heroku/buildpacks-jvm/blob/e91747a4310d566a2ecf3b88ce94ed86744c6346/test/specs/maven/misc_spec.rb#L3-L13
#[test]
#[cfg(target_family = "unix")]
pub fn maven_wrapper_executable_bit() {
    IntegrationTest::new(BUILDER_NAME, "../../test/fixtures/simple-http-service")
        .buildpacks(vec![
            BuildpackReference::Other(String::from("heroku/jvm")),
            BuildpackReference::Crate,
        ])
        .app_dir_preprocessor(|app_dir| {
            use std::os::unix::fs::PermissionsExt;
            fs::set_permissions(app_dir.join("mvnw"), Permissions::from_mode(0o444)).unwrap();
        })
        .run_test(|context| {
            assert_contains!(context.pack_stdout, "Successfully built image");
        });
}

Closes GUS-W-11177468

I assume your main concern is removing unnecessary IO during tests (the app_dir copy) for a slight speed-up?

Yeah


MacroRecorder crash on destruction

Minimal test case: on a new form OnCreate, create an editor & a recorder, link them. When closing the form there is an AV
editor := TBCEditor.Create(Self);
editor.Align := alClient;
editor.Parent := Self;
TBCEditorMacroRecorder.Create(Self).Editor := editor;

If shortcuts have been registered with the recorder, there is a different crash, but it's probably the same issue

Fixed.


ImportError: no module named 'camera'

Can't use camera on my LILYGO® TTGO T-Camera Plus with OV2640 module
I've flashed microlite-spiram-cam-esp32-firmware from commit 3ed56ec
Everything is working fine, except camera module (ImportError: no module named 'camera')
Also tried 76ffd01 with same result
How to use camera on this firmware?

I encountered the same issue.

Same problem with an ai thinker esp32 cam

Hello, I faced the same issue and found that MICROPY_PY_CAMERA in modcamera.c was not defined anywhere. There might have been an error in naming since mpconfigboard.h for the MICROLITE_SPIRAM_CAM defines MODULE_CAMERA_ENABLED instead.
To fix this I simply added #define MICROPY_PY_CAMERA to the mpconfigboard.h.

Hello, I faced the same issue and found that MICROPY_PY_CAMERA in modcamera.c was not defined anywhere. There might have been an error in naming since mpconfigboard.h for the MICROLITE_SPIRAM_CAM defines MODULE_CAMERA_ENABLED instead.
To fix this I simply added #define MICROPY_PY_CAMERA to the mpconfigboard.h.

Hello, I tried to fix it, but I still couldn't. I'm using ESP32-CAM. Please tell me how exactly to correct this inaccuracy, and what firmware to download.


find: ‘~/.gvm/var/delay_upgrade’: No such file or directory

Xubuntu 14.04
zsh 5.0.2 (x86_64-pc-linux-gnu)
oh-my-zsh
GVM 2.4.1

To replicate:
➜  ~  rm ~/.gvm
➜  ~  curl -s get.gvmtool.net | bash
➜  ~  source "$HOME/.gvm/bin/gvm-init.sh"
➜  ~  gvm install groovy
==== BROADCAST =================================================================
* 23/04/15: Lazybones 0.8.1 has been released on GVM. #lazybones
* 02/04/15: Grails 3.0.1 has been released on GVM. #grailsfw
* 01/04/15: Springboot 1.2.3.RELEASE has been released on GVM. #springboot
================================================================================

Downloading: groovy 2.4.3

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 30.4M  100 30.4M    0     0   125k      0  0:04:07  0:04:07 --:--:-- 37404

Installing:➜  ~  groovy 2.4.3
Done installing!

Do you want groovy 2.4.3 to be set as default? (Y/n):

Setting groovy 2.4.3 as default.
find: ‘/home/tukushan/.gvm/var/delay_upgrade’: No such file or directory

groovy isn't setup on the path, but i can run it via ~/.gvm/groovy/current/bin/groovy -v
gvm current groovy shows:
Using groovy version /opt/idea/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/tukushan/bin:/home/tukushan/software/mongo_current/bin:/home/tukushan/software/play_current:/bin:/home/tukushan/software/sbt/bin
find: ‘/home/tukushan/.gvm/var/delay_upgrade’: No such file or directory

After the restart the error goes away. May be related to https://github.com/gvmtool/gvm-cli/issues/317

Same Error label, after installing gvm
find: `/home/sherlock/.gvm/var/delay_upgrade': No such file or directory

After restart no more label but grails is not working
➜  ~  gvm list grails
==== BROADCAST =============================================
ONLINE MODE RE-ENABLED! All functionality now restored.
============================================================
Offline Mode: only showing installed grails versions

2.2.3

installed

currently in use

➜  ~  gvm use grails 2.2.3
Using grails version 2.2.3 in this shell.
➜  ~  grails
zsh: command not found: grails
➜  ~

I've rolled out release 2.4.2 which should fix this. Could you please test this for me, and if fixed close the issue?

I did a fresh install on ubuntu 14.04 with oh-my-zsh & jdk8. I dont see this issue anymore, but after installing spring boot & restarting the terminal spring command does not work

If I modified gvm-init.sh & added the following two lines at the start
echo "GVM_INIT => $GVM_INIT"
echo "PATH => $PATH"

it outputs
GVM_INIT => true
PATH => /home/user/.nvm/versions/node/v0.12.4/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

which means someone is setting GVM_INIT to true much earlier in lifecycle, without populating the PATH.
Current workaround for me is to add
export GVM_INIT=false

to the line just before GVM initialization line in the .zshrc file
my current working .zsh lloks like
....
...

export GVM_INIT=false

#THIS MUST BE AT THE END OF THE FILE FOR GVM TO WORK!!!
[[ -s "/home/user/.gvm/bin/gvm-init.sh" ]] && source "/home/user/.gvm/bin/gvm-init.sh"

@thekalinga I just set up a fresh docker container with the entire tool chain (ubuntu + jdk8 + zsh) and it works perfectly. My suspicion is that you have an incorrectly configured system.
BTW, my machine is Arch Linux, JD8, also with zsh + ohmyzsh and everything is working perfectly.

@marcoVermeulen Thanks for letting me know..
I'm not sure who might be setting GVM_INIT without updating the PATH. May be its a residue from previous installations.
For now, I'll go ahead with this workaround. I'll wait to see if any one else is also facing the same issue.

Might also be worth mentioning that I've seen some strange interaction with
RVM in the past. If you are using it, try commenting it out temporarily to
see if that does it.
On Thu, 18 Jun 2015 03:30 Ashok Koyi<EMAIL_ADDRESS>wrote:

@marcoVermeulen https://github.com/marcoVermeulen Thanks for letting me
know..
I'm not sure who might be setting GVM_INIT without updating the PATH. May
be its a residue from previous installations.
For now, I'll go ahead with this workaround. I'll wait to see if any one
else is also facing the same issue.
—
Reply to this email directly or view it on GitHub
https://github.com/gvmtool/gvm-cli/issues/330#issuecomment-113016288.

Thanks for you suggestion. However, I have not used RVM till date. Only NVM (node version manager). Not sure if that can interact with GVM in anyway

Any news on this? Can we close this issue?

Last night I did a brand new installation of Mint Linux. When I installed gvm I got the same error message. I do not think I have a messed up installation. I basically installed the OS, installed Oracle Java SDK (left OpenJDK installed), Groovy, curl, all with apt-get, then gvm with curl and finall using gvm to install more. I saw the same problem on another fresh installation I did about two weeks ago. I would suggest creating a clean installation using a VM player. I am confident you will be able to reproduce the problem.

Would be great if we could get to the bottom of this but unfortunately I
need a lot more information.
Firstly, are you installing the oracle jdk through apt-get, and if so, are
you using a PPA? Next, why are you installing Groovy with apt? That is what
GVM is for. What version of Mint are you using?
Next the shell, are you using ZSH or bash? If you are using ZSH, is it with
ohmyzsh or prezzto? If with bash, are you running /bin/sh or /bin/bash as
your shell?
When reporting an error, please give all the information needed so we can
try making the best diagnosis possible.
BTW, I just spun up a docker instance of ubuntu (aka mint) on my machine. I
installed openjdk 8, then curl and unzip. I installed gvm with curl, then
groovy with gvm and all worked fine as usual.
On Sat, 5 Sep 2015 at 17:26 Andreas Guther<EMAIL_ADDRESS>wrote:

Last night I did a brand new installation of Mint Linux. When I installed
gvm I got the same error message. I do not think I have a messed up
installation. I basically installed the OS, installed Oracle Java SDK (left
OpenJDK installed), Groovy, curl, all with apt-get, then gvm with curl and
finall using gvm to install more. I saw the same problem on another fresh
installation I did about two weeks ago. I would suggest creating a clean
installation using a VM player. I am confident you will be able to
reproduce the problem.
—
Reply to this email directly or view it on GitHub
https://github.com/gvmtool/gvm-cli/issues/330#issuecomment-137972635.

I just had this problem on a CentOS 7.
When I log out then back in, I don't have the problem anymore.
I saw bin/sdkman-init.sh does a touch "${SDKMAN_DIR}/var/delay_upgrade". Maybe this is not done in the install procedure but only when logging in?

A question: after the install procedure, did you source this file as instructed? This should have created the file.


Add ProductFeedbackDisabled and SurveysDisabled policies for IDE

Closed https://github.com/microsoft/Visual-Studio-Administrative-Templates/pull/126 and opened this in hopes to getting compliance passing.

@kfam98 Sadly compliance failing again. I will re-investigate.
Meanwhile, I added myself and Edward as reviewer. Generally looks good to me too like Edward mentioned in previous PR, please ensure this show up correctly on policy editor and test the functionality.

@kfam98 , Tyler and I tracked down the cause, I pinged you on Teams. Please follow the direction from the message!

@kfam98 Sadly compliance failing again. I will re-investigate.
Meanwhile, I added myself and Edward as reviewer. Generally looks good to me too like Edward mentioned in previous PR, please ensure this show up correctly on policy editor and test the functionality.

I will check this PR in and bypass the compliance checks.  No problem.


Initial setup to Lichtblick

Replacing foxglove refs to lichtblick

[X]  fixed lint issues
[X]  yarn build
[X]  yarn lint
[X]  yarn test*

~* RosNode test fails on Windows only, on other OS there's no problem with it since this package runs only on Linux shouldn't be a major problem~ Test failed on ubuntu as well

RosNode.test.ts was fixed with some changes on the hostname


FIXED PHP version requirement conflict

FIXED PHP version requirement conflict
laravel/framework 5.1 branch requires php 5.5 while doctrine/inflector branch 1.2 requires php 7

Laravel 5.1 is not supported any more.

5.1 LTS – Jun 9, 2015
Bug fixes until June 2017, and security fixes until June 2018.

Source: https://laravel-news.com/laravel-release-process


always set frame_size_override_flag when creating new inter frames

This prevents the value from the previous frame cloned at the beginning of new_inter_frame() from being used if none of the existing checks succeeds.

Coverage decreased (-0.002%) to 80.791% when pulling b093815a07a7562efbd78b58326853217010d293 on jamrial:frame_size_override_flag into edfc865445b18ceb86f176c51f063f67392ffae2 on xiph:master.

This has been marinating for a while now. Can it be merged?


New Profile Picture and Banner for Twitter

Hi there
Can we get a new profile picture and Banner for the JuliaCon 2024 twitter account?
Dimensions : 400px by 400px
The ideal image size for your Twitter profile image is 400px by 400px. Your profile picture will be uploaded as a square, but it's actually displayed as a circle throughout the site. Make sure that your image maintains its integrity when cropped into a circle.
Info on Banner Size here;
https://influencermarketinghub.com/twitter-banner-sizes/

There are some square/round images uploaded - do you want something different?

No. I didnt look properly for those. The twitter account is updated now.
I might keep this issue open for Bluesky / Mastodon for the time being


Add support for other aggregate functions

Any interest in adapting the gem to support other aggregate functions? Like Sum, Avg, Max, etc ?

Interesting. But activerecord-precount makes it hard to implement them because each of them would require association definition. For maintainability, I prefer to implement that in https://github.com/k0kubun/activerecord-precounter. Closing this in favor of it. If you really need it, please file an issue in that repository.


PasswordValidator - Impossible to pass validation if min_test_score is set

The SilverStripe\Security\PasswordValidator.php class has configuration based settings for specifying a simple minimum password strength policy via private static $min_test_score;
If used, there is logic in the PasswordValidate() method to check the required minimum score against the actual score (based on the usage of lowercase, uppercase, digit and symbol characters in the password).
However, the check to calculate the actual score incorrectly references count($this->testNames) (which defaults to null) instead of using count($testNames) (which contains an array of values returned by public function getTestNames()
This equates to $score = count(null) - count([FAILED TESTS]); which, if it is set, will be less than private static $min_test_score; (e.g. 0 at best, or -1, -2 etc).
This PR fixes this mistake/typo.

@maxime-rainville,
I am looking at PasswordValidatorTest::testValidateMinScore() at the moment, but I can't really see how it isn't already failing?
I am working in 4.1.0 and I have the below:
    public function testValidateMinScore()
    {
        $v = new PasswordValidator();
        $v->characterStrength(3, array("lowercase", "uppercase", "digits", "punctuation"));

        $r = $v->validate('aA', new Member());
        $this->assertFalse($r->isValid(), 'Passing too few tests');

        $r = $v->validate('aA1', new Member());
        $this->assertTrue($r->isValid(), 'Passing enough tests');
    }

The last line of that function, the assertTrue(), should already fail based on my findings shouldn't it? e.g. 3/4 character types are provided, but it's irrelevant because of the bug in validate() I identified, to the assertTrue on a falsey ValidationResult should fail?
Either way, I am not very familiure with the test classes and I don't really have time at the moment to learn about it an include that change in my PR as well. Would you mind doing so as you offered? If you could let me know when you do so that I can review what changes you have made in an effort to learn a bit more about the test classes?

@HARVS1789UK because the test calls characterStrength which calls setTestNames which populates $this->testNames  - I think there are two problems. the one you identified and the fact you're incorrectly implementing the class? you need to make sure you call setTestNames and setMinTestScore on your validator...

@dhensby - I think I see what you are saying, but that would mean I have to create a new instance of PasswordValidator and configure it, each time I wanted a form etc to use it to validate passwords (or at best, maybe do this in _config.php and call Member::set_password_validator() or a similar method to set it globally?)
What I am doing right now is making use of the YAML config based properties as so:
SilverStripe\Security\PasswordValidator:
  min_length: 8
  min_test_score: 3

Which means these settings are applied to all instances of PasswordValidator across my system.
I presume this is what these @config commented properties are for? I can also see that the public getter methods seem to make use of them, e.g.
    public function getMinTestScore()
    {
        if ($this->minScore !== null) {
            return $this->minScore;
        }
        return $this->config()->get('min_test_score');
    }

I agree that your way would work (as per the if statement above) but I think my way should also work, no? (and is less intrusive/easier).
Is there any good reason that the protected $testNames; variable would/should be used over the public function getTestNames() (or at least the value that function outputs, stored in $testNames) in my example/changes?

hmm, ok - so maybe injector is creating the validator incorrectly?

@dhensby - Quite possibly, unfortunately I have no idea where to even start looking in order to validate that :-(

OK - I'll look into tests and maybe how the validator is created from config.
Is this a bug that only affects 4.x-dev or is it 4.0+?

@HARVS1789UK @dhensby Just had a look.
I think the current test isn't failing because it calls characterStrength() which indirectly calls setTestNames(). So when the validate method is called later, $this->testNames will not be equal to null.
The following test fails for me with the current logic and works with @HARVS1789UK's fix.
$v = new PasswordValidator();
$v->setMinTestScore(3);

$r = $v->validate('aA1', new Member());
$this->assertTrue($r->isValid(), 'Passing enough tests');

This whole class is a mess, let's make a point to re-look at this soon and fix it up for 4.2 at the very least. I'm not happy in particular about the disjoint and independent behaviour of getTests() / getTestNames(), and I think the poor bounds checking of min score and total number of tests is the least of our problems.
In any case, don't feel pressured to address all of these issues just yet. I would rather put off merging this issue and address it properly in a separate PR.

I think the current test isn't failing because it calls characterStrength() which indirectly calls setTestNames(). So when the validate method is called later, $this->testNames will not be equal to null.

That's right, yep :)

@tractorcow so you want to leave the bug as is without a patch in the meantime? I think it'd be good to get this in myself...

I am currently using my own GitHub hosted fork of silverstripe/framework,
with my patch applied, in order for the project I am working on to go live.
So I would agree it would be good to get a fix in, as I won't be able to
upgrade at all until that is done.
Kind regards,
[image: Quadra]   Joe Harvey
Lead Web Developer
t: +44 (0) 1534 491096
e<EMAIL_ADDRESS>w: quadradigital.co.uk

[image: Follow us on Twitter] https://twitter.com/Quadra_Digital
[image: Find us on LinkedIn] http://uk.linkedin.com/in/joeharvey2

Quadra, 22 Hill Street, St. Helier, Jersey, JE2 4UAAn E-scape company
DISCLAIMER: This e-mail is confidential and may contain legally privileged
information. If you are not named above as an addressee it may be unlawful
for you to read, copy, distribute, disclose or otherwise use the
information in this e-mail. Any views or opinions presented are solely
those of the author, and do not necessarily represent those of Quadra
Digital. If you are not the intended recipient and have received this
e-mail in error please notify Quadra Digital on +44 (0) 1534 491 096
<+441534491096>.
Quadra and Quadra Digital are the trading names of Quadrahedron Limited.
On 16 April 2018 at 15:31, Daniel Hensby<EMAIL_ADDRESS>wrote:

@tractorcow https://github.com/tractorcow so you want to leave the bug
as is without a patch in the meantime? I think it'd be good to get this in
myself...
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/silverstripe/silverstripe-framework/pull/7995#issuecomment-381618710,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AE4LFYWXAk7mnPLtDW3sy7eKpqhl1TBbks5tpKsvgaJpZM4TQWJo
.

There's still bugs in the code even with this fix is my concern.

There are still bugs without it too, just less of them. We need to do that "is this an improvement" test rather than "is it perfect" for this PR IMO

Check https://github.com/silverstripe/silverstripe-framework/pull/8013 which has another fix plus code quality cleanup.

Replaced with https://github.com/silverstripe/silverstripe-framework/pull/8013


jablotron component - magnet door/windod sensor not visible in homebridge/homekit

hi is it possible in generally to add also the magnetic sensors that check open/close windows doors? all the other compoments pgm and sections i added OK. thank u

Hi,
I think it should be possible. Can you demonstrate what it should look like in Homekit?

Fred thank u for coming back to me
i did some printscreens hope this clarifies
I used the door/window sensor of aqa=r to demonstrate how it looks in homekit
today the jablotron adds into homekit via homebridge only particular components but not the door window nor co2 or any other sensors
please let me know if u need other info

Fred thank u for coming back to me
i did some printscreens hope this clarifies
I used the door/window sensor of aqa=r to demonstrate how it looks in homekit
today the jablotron adds into homekit via homebridge only particular components but not the door window nor co2 or any other sensors
please let me know if u need other info
[cid:F3638F37-BBDF-44A5-8B5C-DE683D1DF9B7]
[cid:A2B3DF9E-76BE-4915-B129-F515E02A40FF]
[cid:5E7EEA90-F7EF-4E30-8196-BF86085FA56B]
[cid:E75B7026-7C49-4298-B93F-4C2196D48CE9]
On 20 Feb 2021, at 21:30, Fred de Gier <notifications<EMAIL_ADDRESS>wrote:
This Message Is From an External Sender
This message came from outside your organization.
Hi,
I think it should be possible. Can you demonstrate what it should look like in Homekit?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/F4stFr3ddy/homebridge-jablotron-alarm/issues/54#issuecomment-782744956, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AMIEXC5MAMBQ2WUVRWM2U4TTAALV5ANCNFSM4XDHWMFQ.

Thanks for sharing. I will look into it.

I've again spent time on exploring the API and did not find any possibilities for this, maybe at some point in the future it will be possible via the API.
If you want, perhaps you could make a wired solution to the bus, that should work. However wired solutions are not the intent of this project, only API communication to make it accessible for everyone.

Hi, any news about it please? Thank you

It's only possible if you can see them in the app. I haven't seen them in the app so it's not possible unless Jablotron adds them to the app. If you can see them in the app, let me know.

It’s possible if you have them added as segment or PG output.
pá 13. 1. 2023 v 22:14 odesílatel Fred de Gier @.***>
napsal:

It's only possible if you can see them in the app. I haven't seen them in
the app so it's not possible unless Jablotron adds them to the app. If you
can see them in the app, let me know.
—
Reply to this email directly, view it on GitHub
https://github.com/fdegier/homebridge-jablotron-alarm/issues/54#issuecomment-1382397678,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AARPHHI7YAYALV3XWCSEC2LWSHATRANCNFSM4XDHWMFQ
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

--

Martin Polívka

Last one is “Garrage door opened” and status is set by door sensor. I can’t
control it, but status is the right one.
so 14. 1. 2023 v 1:26 odesílatel Martin Polívka @.***>
napsal:

It’s possible if you have them added as segment or PG output.
pá 13. 1. 2023 v 22:14 odesílatel Fred de Gier @.***>
napsal:

It's only possible if you can see them in the app. I haven't seen them in
the app so it's not possible unless Jablotron adds them to the app. If you
can see them in the app, let me know.
—
Reply to this email directly, view it on GitHub
https://github.com/fdegier/homebridge-jablotron-alarm/issues/54#issuecomment-1382397678,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AARPHHI7YAYALV3XWCSEC2LWSHATRANCNFSM4XDHWMFQ
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

--

Martin Polívka

--

Martin Polívka

Did you mean to add screenshots to the last messages?
PG's can already be controlled, same for segments.
I don't have any sensors so I can not see those in the apps.

Thanks. How can I get the PGs to Homekit?

In the config you can add it like this (see README)
"switches": [
                        {
                            "name": "Hooter",
                            "segment_id": "PGM_1",
                            "segment_key": "pgm_1"
                        }
                    ],
                    "outlets": [
                        {
                            "name": "Camera",
                            "segment_id": "PGM_2",
                            "segment_key": "pgm_2"
                        }
                    ],

So only I need -> buy PG output for Jablotron and set HB config?

No need to buy anything, it's all controlled via the API. Just add the number of the PG to HB config.

But I have wire something inside a switchboard of Jablotron, have not I?

No, the PG's are available in the app see screenshot.

I can not see any PGs on the app.

How do you control the PG's? Do you have admin access on your Jablotron account? If the PG's are not available in the app, you can not control them. You need to be able to see it in the app in order to control it via HomeKit.


Remote(tramp) rustfmt does not consider rustfmt.toml

Currently, rust-format-buffer does not care about remote rustfmt.toml if user uses tramp. (Local works fine considering config file). Can we fix it should see the remote config file?

I don't use tramp, but I would be happy to accept a PR with a test for the same.


[feature request] Remove yurtadm init command

What would you like to be added:
Remove yurtadm init command.
Why is this needed:
Since the yurtadm init command is no longer maintained and have some problem, it needs to be removed in order not to confuse yurtadm users.
others
/kind feature

@YTGhost Thank you for raising issue, I agree with you that we can remove yurtadm init command. go ahead.


Add WhatsApp Clone

Hello, Myself Contributor from GSSOC22 . I would like to contribute. I would like to add WhatsApp Clone in your project. Please assign me this issue.

I have already made clones of various apps and so I could contribute well enough

hey @abhi1e9-1e10  I am a gssoc'22 participant can work on it . i made twitter clone already

Hi I am a gssoc '22 participant and would like to work on this issue. I am already working on making a real time chat appliation so...


Change getDefaultProps to static and remove warning

When trying sample code from the Working with Scenes area of this page I see a warning and the example did not appear to work as expected.  To fix this I updated the code to static so others following along will not see a warning about using a static property to define defaultProps.   Also included is a screen capture of the warning message.

By analyzing the blame information on this pull request, we identified @hramos and @greyvugrin to be potential reviewers.

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at<EMAIL_ADDRESS>Thanks!

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@gregjacobson updated the pull request.

@facebook-github-bot shipit

Thanks for importing. If you are an FB employee go to Phabricator to review internal test results.


Why do you have to re-approve SPFx package for MSGraph use?

Category

[x] Question
[ ] Typo
[ ] Bug
[ ] Additional article idea

I have a SPFx package that I'm working on. Using the graph client in preview right now. When I replace the same package with the same package, or even a new "version" of the package by changing the number but not the permissions in the package-solution.json file I get another approval in the admin panel. My question, is why? If I have already approved the request before and no additional permissions are being requested why is this happening?
Lastly, if this is just how things are what does MSFT advise we do? re-approve it? reject it? revoke the old and approve the new?
I've already tried to just re-approve it and I get this error:
An OAuth permission with the resource Microsoft Graph and scope User.ReadBasic.All already exists.
Expected or Desired Behavior
I expect there to be no new record to approve permissions for
Observed Behavior
Every time I deploy package a new record is created for approval even though one is already approved from a previous deployment.
Steps to Reproduce

Build a SPFx package that has MSGraph access permissions in the package-solution.json
Deploy the package to the app catalog
approve in the admin page of your SharePoint tenant
repeat steps 1-2

Submission Guidelines
Thanks for your contribution! Sharing is caring.

This issue will be resolved by the time we release for GA.  It is currently a preview feature and we are aware of the issue.

Is it common for an account, that is over 2 years old, to only have one post.... This one ^ in two years with the authority to close my issue with no proof of this being fixed for GA? Not saying you're lying at all, just have doubts to the authenticity of your claim. Anyone else more reputable than a 1 time poster can confirm this?

@devinprejean - FYI I'm on the SPFX dev team at Microsoft.


how do u get the real ip of the originating ip from a reverse proxy?

e.g.
[client] -> [tcp proxy] -> [https terminator] <== this one gets <IP_ADDRESS> because tcp proxy is <IP_ADDRESS>. how to get the ip of the client?

You can get it in the New() function: lconn.RemoteAddr().String()

You can get it in the New() function: lconn.RemoteAddr().String()

You can't. Originating IPs are passed through higher-level protocols (HTTP here for example), there is no place in a TCP to store it - all you see is the proxy IP.

You can't. Originating IPs are passed through higher-level protocols (HTTP here for example), there is no place in a TCP to store it - all you see is the proxy IP.

Is it possible to modify the tcp packet and add it at the app level?


Game Submission: SwordStrike

My first game + second project ever with libdragon!
I may add some more commits before deadline, but in a fully playable state on both Ares + original console (tested with ED64).
I was unable to display player labels during match due to font bug, but was able to display them during the countdown to avoid crashing as a workaround

Thank you for your submission!

Merged to main into the unified ROM.


Hamming: Make error checking identical to other tests

I noticed this after @petertseng mentioned the error handling in #147.
The Hamming exercise performs error checking with comparison to Err(.). Most tests (Nucleotide Codons, Queen Attack, Wordy) only check with is_err(). The exceptions are Circular Buffer and Forth, but they use more complex error reporting with different conditions and provide an Error enum with the correct return values.
Because there is only one error conditions I suggest to remove the fixed value and only check with is_err().

Thanks. I like it.


i.parentChange is not a function

OpenUI5 version: 1.65.1
Browser/version (+device/version):
Google Chrome | 74.0.3729.108
Any other tested browsers/devices(OK/FAIL):
URL (minimal example if possible):
https://openui5.hana.ondemand.com/test-resources/sap/m/demokit/orderbrowser/webapp/test/mockServer.html
User/password (if required and possible - do not post any confidential information here):
Steps to reproduce the problem:

Just open the URL

What is the expected result?
That UI5 still works
What happens instead?
Uncaught (in promise) TypeError: i.parentChange is not a function
at f.m.setParent (ManagedObject-dbg.js:2647)
at f.m.setAggregation (ManagedObject-dbg.js:1959)
at f.setTitle (ManagedObjectMetadata-dbg.js:310)
at f.m.applySettings (ManagedObject-dbg.js:1171)
at ManagedObject-dbg.js:541
at f.constructor (ManagedObject-dbg.js:556)
at f.constructor (Element-dbg.js:143)
at f.constructor (Control-dbg.js:168)
at new f (Metadata-dbg.js:463)
at f.h._initDynamicPage (SemanticControl-dbg.js:97)
Any other information? (attach screenshot if possible)
It happens in the entire 1.65.1 Version of ui5

I don't get this error when I open the link, neither in Safari nor in Chrome 74. Looks like an inconsistency to me (because parentChange was introduced only recently).
Can you please check whether the issue still occurs after clearing the browser cache?

If cleaned the cache before. Ok now the Error doesn't occure anymore. Maybe some Issues with the new Version not correctly updated on the server.

I met with this issue too, probably not because the CACHE, but because U clear the CACHE, then the UI5 upgrade with some flaws(from 1.65.1 to higher) .
RESOLUTION should be:
find your app entry html such as index.html or app.html
then try to fix the version you are using like following...
<script id="sap-ui-bootstrap"
	src="https://sapui5.hana.ondemand.com/1.65.1/resources/sap-ui-core.js"
	data-sap-ui-theme="XXXX"
	data-sap-ui-resourceroots='{"XXXX": "./"}'
	data-sap-ui-compatVersion="XXX"
	data-sap-ui-oninit="XXXXXX"
	data-sap-ui-async="true"
	data-sap-ui-frameOptions="trusted">
</script>

@bobowwb I can confirm that the i.parentChange is not a function problem occurred today on https://sapui5.hana.ondemand.com (only when not using a specific version).
This has now been resolved. You might again need to clear your browser cache.

Actually this problem caused us failure in our production environment because any page was not rendering correctly. Please ensure this never happens again.

@zygimantus more than sorry for that. But please don't use the unversioned URL for productive usage. This is explicitly mentioned and warned about in the version overview for SAPUI5:

Make sure that you always refer to a specific SAPUI5 version instead of using
the generic reference to the latest released version.
Use the generic reference for testing purposes only.

The same applies for openui5.hana.ondemand.com.
Alternatively, you can use the UI5 cache buster as documented here, but that results in less optimal caching.
@petermuessig anything to add?

@codeworrior, not sure why then WebIDE uses that link in SAPUI5 Project Wizzard if it is not stable, anyways thank you for your information!

Good question :(
Most likely the idea was to have timeless templates. But a simple inline comment ("please change this to a fixed version before productive usage") could save a lot of trouble.
At least, the "Walkthrough" tutorial contains the same warning, but only in the text, not in the source.
I'll suggest to add some comment to the sample code as well.

@bobowwb I can confirm that the i.parentChange is not a function problem occurred today on https://sapui5.hana.ondemand.com (only when not using a specific version).
This has now been resolved. You might again need to clear your browser cache.

Yes, I have tested that this fix is done.