-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
"Spyder has encountered an error" when editing python script #5929
Comments
|
I downgraded anaconda from the latest custom (custom-py36h363777c_0) to the last stable (5.0.1-py36h8316230_2), and jedi was also downgraded from 0.11 --> 0.10.2, and so far no more errors |
what is #5838? Even thought the same pop up opens, I don't think it's similar, because the traceback message in the pop up is different. That one refers to Qt widgets maybe, and I think it will be fixed in Spyder-3.2.5 |
I also received similar errors referring to lexors and introspection as I was typing a line in. Dismissing the error several times but no crashes. only common that I can see off hand is .... jedi 0.11 |
This error is produced because you have You can do that with
or
|
Thanks for reporting. The error traceback that was posted is apparently incomplete. However, it is very likely a duplicate of e.g. #5673 , an error that's been reported at least a half dozen times just today. As the full error message states, Jedi is only compatible with parso 0.1.0, not, 0.1.1. Therefore, please downgrade to 0.1.0 to fix this, and this issue can be closed. |
Thank you Carlos. I downgraded parso and that fixed the issue.
Darren Conly | Analyst I
Sacramento Area Council of Governments
916-319-5192
dconly@sacog.org<mailto:dconly@sacog.org>
From: Carlos Cordoba [mailto:notifications@github.com]
Sent: Friday, December 08, 2017 8:38 PM
To: spyder-ide/spyder <spyder@noreply.github.com>
Cc: Darren Conly <DConly@sacog.org>; Author <author@noreply.github.com>
Subject: Re: [spyder-ide/spyder] "Spyder has encountered an error" when editing python script (#5929)
This error is produced because you have parso 0.1.1 installed. Please downgrade to parso 0.1.0 to fix this problem.
You can do that with
conda install parso=0.1.0
or
pip install parso==0.1.0
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#5929 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AOmyE3R2Bz9DfkJ0OLKK3I2vMVDxypOZks5s-g7AgaJpZM4Q7yX0>.
|
Quick note: this can also be fixed by updating Jedi with
conda update jedi
El 11/12/17 a las 11:08, djconly85 escribió:
… Thank you Carlos. I downgraded parso and that fixed the issue.
Darren Conly | Analyst I
Sacramento Area Council of Governments
916-319-5192
***@***.******@***.***>
From: Carlos Cordoba ***@***.***
Sent: Friday, December 08, 2017 8:38 PM
To: spyder-ide/spyder ***@***.***>
Cc: Darren Conly ***@***.***>; Author ***@***.***>
Subject: Re: [spyder-ide/spyder] "Spyder has encountered an error"
when editing python script (#5929)
This error is produced because you have parso 0.1.1 installed. Please
downgrade to parso 0.1.0 to fix this problem.
You can do that with
conda install parso=0.1.0
or
pip install parso==0.1.0
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on
GitHub<#5929 (comment)>,
or mute the
thread<https://github.com/notifications/unsubscribe-auth/AOmyE3R2Bz9DfkJ0OLKK3I2vMVDxypOZks5s-g7AgaJpZM4Q7yX0>.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#5929 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAWS7fzKzFRnTHHFZYU1lQwK_ckXCnvmks5s_VN5gaJpZM4Q7yX0>.
|
Description
What steps will reproduce the problem?
What is the expected output? What do you see instead?
Expected: Nothing, just be able to code/edit as usual
What I see instead: Error window saying "Spyder has encountered a problem" appears with the details shown in the "additional information" section below.
Please provide any additional information below
System info:
-Windows 7
-Using as part of Anaconda package
-Spyder 3.2.4
-Python 3.6.3
Stuff I've tried
I googled my issue and saw that a similar problem was submitted last month at this link:
https://github.com/spyder-ide/spyder/issues/5838
I tried resetting Spyder by entering spyder --reset in the command line, but it did not help.
Error description:
File "C:\ProgramData\Anaconda3\lib\site-packages\spyder\utils\introspection\manager.py", line 234, in show_object_info
info = self._get_code_info('info', position, auto=auto)
File "C:\ProgramData\Anaconda3\lib\site-packages\spyder\utils\introspection\manager.py", line 216, in _get_code_info
**kwargs)
File "C:\ProgramData\Anaconda3\lib\site-packages\spyder\utils\introspection\utils.py", line 75, in init
self._get_info()
File "C:\ProgramData\Anaconda3\lib\site-packages\spyder\utils\introspection\utils.py", line 87, in get_info
lexer = find_lexer_for_filename(self.filename)
File "C:\ProgramData\Anaconda3\lib\site-packages\spyder\utils\introspection\utils.py", line 180, in find_lexer_for_filename
lexer = get_lexer_for_filename(filename)
File "C:\ProgramData\Anaconda3\lib\site-packages\pygments\lexers_init.py", line 203, in get_lexer_for_filename
res = find_lexer_class_for_filename(fn, code)
File "C:\ProgramData\Anaconda3\lib\site-packages\pygments\lexers_init.py", line 168, in find_lexer_class_for_filename
for cls in find_plugin_lexers():
File "C:\ProgramData\Anaconda3\lib\site-packages\pygments\plugin.py", line 53, in find_plugin_lexers
yield entrypoint.load()
The text was updated successfully, but these errors were encountered: