Skip to content
This repository has been archived by the owner on Mar 26, 2019. It is now read-only.

Unable to make jupyter notebook run. #62

Closed
zachsj opened this issue Jul 11, 2016 · 13 comments
Closed

Unable to make jupyter notebook run. #62

zachsj opened this issue Jul 11, 2016 · 13 comments

Comments

@zachsj
Copy link

zachsj commented Jul 11, 2016

This is my first time posting and I'm new to Python, I'm not sure how to format this question. I apologize if this is not enough info below or incorrect format. I'm running on Windows 10. I'm unable to open a notebook, something is wrong with my path I believe. Here is what I receive when typing in jupyter notebook...

C:\Users\zj\AppData\Local\Programs\Python\Python35-32>jupyter notebook
Traceback (most recent call last): File "c:\users\zj\appdata\local\programs\python\python35-32\lib\runpy.py", line 184, in run_module_as_main "main", mod_spec) File "c:\users\zj\appdata\local\programs\python\python35-32\lib\runpy.py", line 85, in run_code exec(code, run_globals) File "C:\Users\zj\AppData\Local\Programs\Python\Python35-32\Scripts\jupyter-notebook.‌​exe__main.py", line 5, in

Much more of the above and then this error below...

OSError: [WinError 126] The specified module could not be found

@takluyver
Copy link
Member

Can you copy the last few lines of the traceback?

@zachsj
Copy link
Author

zachsj commented Jul 12, 2016

As in this below?

File "c:\users\zj\appdata\local\programs\python\python35-32\lib\site-packages\zmq_in‌​it_.py", line 37, in <module>
  libzmq = ctypes.cdll.LoadLibrary(bundled[0])
File "c:\users\zj\appdata\local\programs\python\python35-32\lib\ctypes__init_.py", line 425, in LoadLibrary
  return self._dlltype(name)
File "c:\users\zj\appdata\local\programs\python\python35-32\lib\ctypes_init_.py", line 347, in init
  self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] The specified module could not be found

Thank you

@takluyver
Copy link
Member

Thanks. How did you install Jupyter?

@minrk, this looks like it's failing to load zmq. Any ideas?

@zachsj
Copy link
Author

zachsj commented Jul 12, 2016

I believe that I just installed via pip. I'm not sure what zmq is. Can I somehow install it?

@takluyver
Copy link
Member

zmq is a library Jupyter uses to communicate with kernels, via its Python bindings pyzmq. It should have been automatically installed if you used pip, but maybe it's worth trying to uninstall and reinstall it:

pip uninstall pyzmq
pip install pyzmq

@zachsj
Copy link
Author

zachsj commented Jul 12, 2016

Just tried and no luck. Also tried to uninstall and install jupyter,
I believe I was supposed to originally append to the existing path in the environment variables screen but I had wiped out the existing path and have no idea what it originally was. Not sure if that may be the issue.

@minrk
Copy link
Member

minrk commented Jul 12, 2016

It sure is a pyzmq issue. I just made the first release of pyzmq using a new build system, and the Windows wheels now require VC 2015 redist, which they probably shouldn't.

You should be able to work around it for now with:

pip install "pyzmq<15.3"

@zachsj
Copy link
Author

zachsj commented Jul 12, 2016

I'm getting a bunch of items such as.... failed building wheel and failed cleaning build dir for pyzmq
error microsoft visual c++ 14.0 required
and then rolling back uninstall of pyzmq

@minrk
Copy link
Member

minrk commented Jul 13, 2016

That's very strange. What version of Python and pip?

@zachsj
Copy link
Author

zachsj commented Jul 13, 2016

python 3.5.2 pip 8.1.2

@minrk
Copy link
Member

minrk commented Jul 13, 2016

It shouldn't be trying to compile because there is a wheel. What about

pip install pyzmq==15.2

?

@zachsj
Copy link
Author

zachsj commented Jul 13, 2016

Nice work sir! I am now in Jupyter. Thank you guys.

@takluyver
Copy link
Member

Closing as this should now be fixed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants