question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Recent release `1.0.17` breaks ipython

See original GitHub issue

I am running ipython==5.8.0 on Ubuntu and with the recent release 1.0.17 breaks it:

$ ipython
Traceback (most recent call last):
  File "/home/sphuber/.virtualenvs/aiida_dev/bin/ipython", line 6, in <module>
    from IPython import start_ipython
  File "/home/sphuber/.virtualenvs/aiida_dev/local/lib/python2.7/site-packages/IPython/__init__.py", line 49, in <module>
    from .terminal.embed import embed
  File "/home/sphuber/.virtualenvs/aiida_dev/local/lib/python2.7/site-packages/IPython/terminal/embed.py", line 18, in <module>
    from IPython.terminal.interactiveshell import TerminalInteractiveShell
  File "/home/sphuber/.virtualenvs/aiida_dev/local/lib/python2.7/site-packages/IPython/terminal/interactiveshell.py", line 16, in <module>
    from prompt_toolkit.document import Document
  File "/home/sphuber/.virtualenvs/aiida_dev/local/lib/python2.7/site-packages/prompt_toolkit/__init__.py", line 16, in <module>
    from .interface import CommandLineInterface
  File "/home/sphuber/.virtualenvs/aiida_dev/local/lib/python2.7/site-packages/prompt_toolkit/interface.py", line 19, in <module>
    from .application import Application, AbortAction
  File "/home/sphuber/.virtualenvs/aiida_dev/local/lib/python2.7/site-packages/prompt_toolkit/application/__init__.py", line 3, in <module>
    from .application import Application
  File "/home/sphuber/.virtualenvs/aiida_dev/local/lib/python2.7/site-packages/prompt_toolkit/application/application.py", line 13, in <module>
    from prompt_toolkit.buffer import Buffer
  File "/home/sphuber/.virtualenvs/aiida_dev/local/lib/python2.7/site-packages/prompt_toolkit/buffer.py", line 9, in <module>
    from .completion import Completer, Completion, CompleteEvent
  File "/home/sphuber/.virtualenvs/aiida_dev/local/lib/python2.7/site-packages/prompt_toolkit/completion/__init__.py", line 3, in <module>
    from .base import (
  File "/home/sphuber/.virtualenvs/aiida_dev/local/lib/python2.7/site-packages/prompt_toolkit/completion/base.py", line 9, in <module>
    from prompt_toolkit.eventloop import (
ImportError: cannot import name AsyncGeneratorItem

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:7
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

10reactions
jonathanslenderscommented, Oct 3, 2019

It should be fixed now.

The issue appeared on IPython 5 only, which uses prompt_toolkit 1.0. Python 3 users were not affected because they get a more recent IPython version, which uses prompt_toolkit 2.0. (This was probably also the reason why I didn’t notice it myself.)

The issue was caused by a file prompt_toolkit/completion.py in ptk2 that became a directory in ptk3. Somehow, I had some leftovers of the 2.0 branch while doing the 1.0 release.

Thanks everyone for reaching out so quickly, and sorry for the past few hours!

Jonathan

0reactions
jonathanslenderscommented, Oct 3, 2019

Thanks for pointing out!! I’ll push a new release in a few minutes. (First trying to see where it went wrong.)

Read more comments on GitHub >

github_iconTop Results From Across the Web

8.x Series — IPython 8.7.0 documentation
IPython 8.1 is the first minor release after 8.0 and fixes a number of bugs and Update a few behavior that were problematic...
Read more >
IPython reference — IPython 3.2.1 documentation
This documentation is for an old version of IPython. You can find docs for newer versions here. IPython reference¶. Command-line usage¶. You ...
Read more >
python - Trouble with TensorFlow in Jupyter Notebook
The problem was related to an existing version of numpy that was already installed on my system. I initially tried sudo pip3 install...
Read more >
Releases — Panel v0.14.2
Ensure Jupyter server extension serves resources, extensions and paths ... Ensure IPyWidget comm does not break when new widget is rendered (#4091).
Read more >
Change Log
13.0 - 2022-06-02#. (full changelog). This release contains some major UI and visual style upgrades for HTML output, and introduces some breaking changes...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found