Skip to content

Can't launch jupyter #5816

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
racle257 opened this issue Oct 16, 2020 · 1 comment
Closed

Can't launch jupyter #5816

racle257 opened this issue Oct 16, 2020 · 1 comment

Comments

@racle257
Copy link

racle257 commented Oct 16, 2020

I have created a new env with python==2.7 and install jupyter by 'pip install jupyter'. Then I run notebook by 'jupyter notebook'. But got this, what is wrong? Please help me with this, it really confused me.
Traceback (most recent call last):
File "/data01/home/zhuruofei.2457/CommonLib/py_env/py_27/bin/jupyter-notebook", line 5, in
from notebook.notebookapp import main
File "/data01/home/zhuruofei.2457/CommonLib/py_env/py_27/local/lib/python2.7/site-packages/notebook/notebookapp.py", line 83, in
from .services.contents.manager import ContentsManager
File "/data01/home/zhuruofei.2457/CommonLib/py_env/py_27/local/lib/python2.7/site-packages/notebook/services/contents/manager.py", line 17, in
from nbformat import sign, validate as validate_nb, ValidationError
File "/data01/home/zhuruofei.2457/CommonLib/py_env/py_27/local/lib/python2.7/site-packages/nbformat/init.py", line 33, in
from .validator import validate, ValidationError
File "/data01/home/zhuruofei.2457/CommonLib/py_env/py_27/local/lib/python2.7/site-packages/nbformat/validator.py", line 12, in
from jsonschema import ValidationError
File "/data01/home/zhuruofei.2457/CommonLib/py_env/py_27/local/lib/python2.7/site-packages/jsonschema/init.py", line 21, in
from jsonschema._types import TypeChecker
File "/data01/home/zhuruofei.2457/CommonLib/py_env/py_27/local/lib/python2.7/site-packages/jsonschema/_types.py", line 3, in
from pyrsistent import pmap
File "/data01/home/zhuruofei.2457/CommonLib/py_env/py_27/local/lib/python2.7/site-packages/pyrsistent/init.py", line 3, in
from pyrsistent._pmap import pmap, m, PMap
File "/data01/home/zhuruofei.2457/CommonLib/py_env/py_27/local/lib/python2.7/site-packages/pyrsistent/_pmap.py", line 98
) from e
^
SyntaxError: invalid syntax

@kevin-bates
Copy link
Member

Hi. This issue stems from newer versions of pyrsistent not working on Python 2.7. Since this is a transitive dependency (via jsonschema) there isn't a whole lot we can do.

To get around this immediate issue, you should be able to downgrade your pyrsistent package using the equivalent of pip install pyrsistent==0.16.0. However, please keep in mind that Python 2.7 is no longer supported so you might find similar issues elsewhere and could run into pushback beyond these kinds of downgrade steps you're doing here.

I'm going to close this issue as the downgrade of pyrsistent should get you moving forward.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants