jupyter / jupyter_console

Jupyter Terminal Console
http://jupyter-console.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
250 stars 146 forks source link

Cannot run jupyter-console #268

Closed Tiko7454 closed 2 years ago

Tiko7454 commented 2 years ago

It worked for me, but when I updated it, I have this error

Traceback (most recent call last): File "/sbin/jupyter-console", line 5, in from jupyter_console.app import main File "/usr/lib/python3.10/site-packages/jupyter_console/app.py", line 25, in from jupyter_console.ptshell import ZMQTerminalInteractiveShell File "/usr/lib/python3.10/site-packages/jupyter_console/ptshell.py", line 35, in from .completer import ZMQCompleter File "/usr/lib/python3.10/site-packages/jupyter_console/completer.py", line 10, in from jupyter_client.utils import run_sync ImportError: cannot import name 'run_sync' from 'jupyter_client.utils' (/home/tiko7454/.local/lib/python3.10/site-packages/jupyter_client/utils.py)

I wanted to find a file which containes run_sync function to link it from /usr/lib/python3.10/site-packages/jupyter_console/completer.py file but I couldn't

davidbrochart commented 2 years ago

run_sync exists in jupyter-client. Which version of jupyter-client do you have?

Tiko7454 commented 2 years ago

6.1.12

Tiko7454 commented 2 years ago

I had two versions of jupyter one from pip one from pacman, I just deleted pip version and it worked thanks