Traceback (most recent call last):
File "/usr/bin/jupyter-notebook", line 3, in <module>
from notebook.notebookapp import main
File "/usr/lib/python3.6/site-packages/notebook/notebookapp.py", line 61, in <module>
from .services.kernels.kernelmanager import MappingKernelManager
File "/usr/lib/python3.6/site-packages/notebook/services/kernels/kernelmanager.py", line 16, in <module>
from jupyter_client.multikernelmanager import MultiKernelManager
File "/usr/lib/python3.6/site-packages/jupyter_client/__init__.py", line 7, in <module>
from .manager import KernelManager, run_kernel
File "/usr/lib/python3.6/site-packages/jupyter_client/manager.py", line 32, in <module>
from .session import Session
File "/usr/lib/python3.6/site-packages/jupyter_client/session.py", line 61, in <module>
from jupyter_client.jsonutil import extract_dates, squash_dates, date_default
File "/usr/lib/python3.6/site-packages/jupyter_client/jsonutil.py", line 11, in <module>
from dateutil.parser import parse as _dateutil_parse
File "/usr/lib/python3.6/site-packages/dateutil/parser.py", line 158
l.append("%s=%s" % (attr, `value`))
^
SyntaxError: invalid syntax
I tried uninstalling and reinstalling
Greetings I had the same issue and I solve it like the others specify, by upgrading the python-dateutil:
sudo -H pip install python-dateutil --upgrade
It worked for me too, thanks! In my case, dateutil had been “retrograded” to 1.5 when I installed heroku 0.1.4 as it is not compatible with newer versions of dateutil. Maybe that information can help someone else
it upgraded but I take the same error again 😕
What’s
pip list
? Specificallypython-dateutil
?Also make sure you are using pip >= 9.