-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Kernel crashes with ModuleNotFoundError on 'prompt_toolkit.formatted_text' #4050
Comments
This came up during installation and later resulted in the error mentioned by OP.
installing latest version of prompt-toolkit==2.0.4 resulted in
so it seems that ipython and jupyter-console have conflicting versions of prompt-toolkit as dependency. installing with pipenv gives this error: Adding jupyter to Pipfile's [packages]...
|
seems like it is being fixed here nengo/nengo-dl@f71bcef |
As a temporary workaround, this will fix it: |
Have been trying to fix for hours. |
It seem extremely unlikely this was the problem. IPykernel does not rely on For those of you who tried and for who this fixes things with version of IPython is now installed ? |
The See jupyter_console #167, for updates on the release. |
Sure, but I dont' think everyone should run for master. It just make no sens that downgrading ipykernel fixes things. It must be a fluke. |
This fixed the problem for me such that the Kernel would start and I could use my notebook. |
Thank you, this fixed my problem also. I was able to open up notebooks but the cells would not run. |
Using jupyter notebooks, if I just specify ipykernel with 'jupyter' as a requirement I still get this error:
The minimal requirements.txt that gives me working notebook is:
pip figures it out from there. If you add same error So you need |
I confirm below works for me at the moment (
|
I have the same error as indicated above. If I try
Please can you let this newbie know how to rectify this error? |
since there is a new release of |
Thanks for helping. Yes, pip --version works. I managed to get around the problem with the answer from https://stackoverflow.com/questions/52551878/problems-upgrading-ipython-prompt-toolkit-incompatibilities |
Confirmed that In particular, this problem started happening in my environment with prompt-toolkit-1.0.15. For what it's worth, my environment initially had prompt-toolkit-2.0.5, but then an install of So, this may happen if the installation of a new package sneaks in a downgrade of |
You can try to upgrade jupyter-conslole 's version, then promblems are fixed. |
Thank you so much! |
Hi pip install -U jupyter_console helped me out. |
- when tensorflow-gpu v1.15.0 is installed in the conda environment some strange dependency leads to `ModuleNotFoundError: No module named 'prompt_toolkit.formatted_text'` error - according to jupyter/notebook#4050 installing `ipykernel<5.0.0 ipython<7.0.0` helps - fixes cupy version to 6.6.0 as this the last one supporting python 2.7 Signed-off-by: Janusz Lisiecki <[email protected]>
- when tensorflow-gpu v1.15.0 is installed in the conda environment some strange dependency leads to `ModuleNotFoundError: No module named 'prompt_toolkit.formatted_text'` error - according to jupyter/notebook#4050 installing `ipykernel<5.0.0 ipython<7.0.0` helps - fixes cupy version to 6.6.0 as this the last one supporting python 2.7 Signed-off-by: Janusz Lisiecki <[email protected]>
pip install -U jupyter_console +1 |
pip install -U jupyter_console |
Thank you so much, I almost took a day to solve this. |
I had to replace the single quotes to double quotes to get the command to work: |
(From #5024 (comment)) Rather than downgrade Also, since IPython appears to be sensitive to the version of prompt_toolkit, I would recommend checking prompt_toolkit's version as well. If someone finds this "upgrade" approach successful, could you please add a comment? This will allow future incidents to be forward-moving rather than not. Thank you. |
Thanks @gronki conda install ipykernel'<5.0.0' ipython'<7.0.0' worked for me. |
@kevin-bates This worked for me indeed:
Thanks! |
|
This worked for me. Thanks! |
Hey it's worked for me too. it's saved my day. thanks |
|
And sometimes some package forces the old |
Thanks a lot! |
Thank you very much~ |
This worked for me... thanks! |
This appears to be solved by updating |
pip install ipykernel |
Worked for me |
With a fresh install of Jupyter in a clean pipenv or virtualenv, a new notebook crashes immediately upon launch with the following in terminal:
Originally seen on an Ubuntu 18.04 machine using Python 3.7 and recreated on Mac OS Sierra and High Sierra with 3.7, as well as Ubuntu 16.04 with 2.7 and then 3.6. Four separate machines.
The text was updated successfully, but these errors were encountered: