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
NameError: name 'sys' is not defined #12745
Comments
same |
same. I've also tried downgrading and trying different versions of python from 3.6 - 3.9 all with varying levels of errors. This is the first time I've seen a bug like this with ipython that seems to affect multiple versions. I wish I had more information to report other than just saying, I'm also affected by this. If I determine what the issue is, I will certainly post and or try to open a PR to address. Thank you for creating this tool. I've been using it for for 10+ years now. |
I think I see the same thing.
|
Ok that was easy. |
I can also confirm the issue is related to Jedi as @yurzo kindly pointed out and not ipython. It took me a moment to figure that out. Here's what I was seeing.
The fix was exactly as pointed out here: #12745 (comment) |
This looks like a duplicate of #12740. |
I get same issue with auto-completion
|
Posted a pr to pin the dependency #12746 |
detectable with flake8
|
I found the culprit, it seems that installing a fresh ipython package pulls over the recent jedi==0.18.0 and parso==0.8.1 Not sure of the overall fix, but hopefully this helps anyone for a temp solution. also this solution is found in #12740 |
For those looking for a quick fix, here's @duysqubix's answer, distilled into a command: |
Ugh, can we please stop re-posting the solution and trying to take credit where credit is not due. The bleeding has stopped, a fix has been put in by @yurzo there is no need to re-post the fix. |
When is a release with the fix coming? |
@duysqubix solved for me, |
Jedi version 18.0 which is dependency of ipython breaks tab completion in ipython. Details here: ipython/ipython#12745
I don't think it has actually been fixed. I installed the current 7.20.0.dev0 snapshot
this is with jedi-0.18.0 parso-0.8.1 When I try auto-completion, say
It does seem to work with, however, with current IPython 8.0.0 development branch
such that
|
backport PR is merged re-closing. I'll start the release in a few minutes. |
Line completion now for me in 7.20.0. Thanks a lot!
|
Thank you all who helped triage this problem and for providing workarounds while multiple fixes were in place. I'm grateful to the python community with how collaborative everyone can be to fix issues. I've also confirmed it's working for me. Thanks again for the all the hard work and keep on kicking butt. I love this tool. |
This awesome, THX very much |
Got the below error when I use this code snipets,
Error:
The text was updated successfully, but these errors were encountered: