ipython does not work with latest version of prompt-toolkit

Cecil Westerhof Cecil at decebal.nl
Sun Jun 3 04:25:50 EDT 2018


When executing:
    pip3 list --no-cache-dir --outdated

I got:
    prompt-toolkit 1.0.15    2.0.1    wheel
    PyGObject      3.28.2    3.28.3   sdist
    youtube-dl     2018.5.30 2018.6.2 wheel

So I executed:
    pip3 install --upgrade prompt-toolkit PyGObject youtube-dl

This gave:
    Successfully installed PyGObject-3.28.3 prompt-toolkit-2.0.1 youtube-dl-2018.6.2
    ipython 6.4.0 has requirement prompt-toolkit<2.0.0,>=1.0.15, but you'll have prompt-toolkit 2.0.1 which is incompatible.

And when I now execute ipython3, I get:
    Traceback (most recent call last):
      File "/usr/local/bin/ipython3", line 7, in <module>
        from IPython import start_ipython
      File "/usr/local/lib/python3.5/dist-packages/IPython/__init__.py", line 55, in <module>
        from .terminal.embed import embed
      File "/usr/local/lib/python3.5/dist-packages/IPython/terminal/embed.py", line 16, in <module>
        from IPython.terminal.interactiveshell import TerminalInteractiveShell
      File "/usr/local/lib/python3.5/dist-packages/IPython/terminal/interactiveshell.py", line 22, in <module>
        from prompt_toolkit.shortcuts import create_prompt_application, create_eventloop, create_prompt_layout, create_output
    ImportError: cannot import name 'create_prompt_application'

When I now execute:
    pip3 list --no-cache-dir --outdated

I do not get output. So pip3 thinks everything is OK.

How do I fix this? Or is the expected that ipython3 will be updated
shortly?

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof



More information about the Python-list mailing list