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.

Import Error from prompt_toolkit

See original GitHub issue
# pip3 install nbterm
...
  Downloading prompt_toolkit-3.0.18-py3-none-any.whl (367 kB)
...

% nbterm
...
File "/usr/local/lib/python3.8/dist-packages/nbterm/notebook.py", line 8, in <module>
  from prompt_toolkit.layout import ScrollablePane
ImportError: cannot import name 'ScrollablePane' from 'prompt_toolkit.layout'  

I use Linux Mint 20 and Python 3.8.5.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
oricoucommented, Apr 27, 2021

Thanks

0reactions
oricoucommented, Apr 27, 2021

Argh, an old version in --user space!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fresh installation result in prompt-toolkit ImportError · Issue #254
Using ubuntu 18.04 , getting the listed error . The above mentioned steps has been tried out but still not working. image.
Read more >
ipython - "cannot import name 'create_prompt_application ...
This problem is caused by having a newer version of Prompt Toolkit installed than is depended upon by IPython. (Version 2.0.4 of Prompt...
Read more >
[Fixed] ModuleNotFoundError: No module named 'prompt-toolkit'
Quick Fix: Python raises the ImportError: No module named 'prompt-toolkit' when it cannot find the library prompt-toolkit . The most frequent source of...
Read more >
cannot import name 'create_prompt_application' : PY-34187
Can't run Jupyter cells in PY-191.5701.26: ImportError: cannot import name 'create_prompt_application' ; Priority, Normal N ; Type, Bug ; State, Answered A.
Read more >
prompt-toolkit - PyPI
ptpython is an interactive Python Shell, build on top of prompt_toolkit. ... from prompt_toolkit import prompt if __name__ == '__main__': answer ...
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