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.

New version has import errors

See original GitHub issue

Hey there, I’m super excited about the new version of both prompt_toolkit and ptpython. I just installed the newest versions of both, as well as iPython (pip list shows prompt_toolkit==2.0.5, ptpython==2.0.1, ipython==7.0.1). Upon trying to launch ptpython I get various import errors:

ImportError: cannot import name 'PathCompleter' from 'prompt_toolkit.contrib.completers' since https://github.com/jonathanslenders/ptpython/blob/6c0b99ea2b4be963b42c1062b2f33880ba30b6d3/ptpython/ipython.py#L14 is still using the old path for PathCompleter and WordCompleter, and fixing that raises an issue with https://github.com/jonathanslenders/ptpython/blob/9b61c9941bd4a5dff61c7bbb03172b0a515ee83b/ptpython/ipython.py#L19 since CommandLineInterface has been removed.

Is there a newer version of this file which supports prompt_toolkit 2.0?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:14
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

7reactions
jonathanslenderscommented, Oct 9, 2018

Thanks! I just realised this issue is about ptipython, which is broken indeed. IPython and ptpython should work in the same environment. I’ll fix it asap.

2reactions
jonathanslenderscommented, Oct 13, 2018

Thanks for reminding me! Give me a little more time. Yesterday I pushed a new prompt_toolkit release with some fixes for IPython itself (something that certain people were experiencing in iTerm2). Today, I’ve fixed another bug in prompt_toolkit that the pgcli/mycli people had. Another release will follow. This will come soon, I know you are a lot of people using ptipython.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Review and troubleshoot import errors
Learn how to view and troubleshoot common errors that occur during record imports.
Read more >
What Does This Import Error Mean? | Simplicity Collection ...
This refers to a corrupted Excel file. Manually copy all of your data, paste it into a brand new Excel workbook, save, and...
Read more >
Project import errors – Support Portal | Snyk
While importing a project into the Snyk console, you may sometimes encounter an error; for example: Some common errors and suggested...
Read more >
python - Import error - what is going on? - Stack Overflow
What is happening is that a module, while being imported, is incomplete until the whole top level has been executed. If during that...
Read more >
Fix Data Import Errors in Salesforce Essentials
Tips for Fixing Import Errors​​ Follow these tips to get your import finished quickly and correctly. Fix the errors in the error file,...
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