I get following error when I want to run any code in spyder in Anaconda.Do you know how can I resolve this?!:
This command failed to be executed because an error occurred while trying to get the file code from Spyder's editor. The error was:
An exception has occurred, use %tb to see the full traceback.
TypeError: handle_get_file_code() got an unexpected keyword argument 'save_all'
Anaconda
Hey @mmahdavian, please update to Spyder 4.1.5 and try again. That should fix your problem.
Updating to 4.1.5 is what caused the problem, for me. And it isn't fixed by downgrading back to 4.1.3 where I was before.
Uninstalling Anaconda entirely and reinstalling didn't work either. Now Spyder won't even launch--but still insists it is running when I try to shut down Anaconda.
This happened to three of my computers as well. I fixed it by completely uninstalling anaconda and reinstalling the latest version. Not a great solution but it worked for me.
This sounds related to #13679 .
I was hit by this, and was able to fix it by installing spyder-kernels==1.9.3
. I'm on spyder==4.1.2
.
This problem is solved by running
conda install spyder-kernels=1.9.4
Same thing happened to me in a pip3 environment. Reinstalling spyder-kernels worked for me (1.9.4 is the latest on pypi).
This problem is solved by running
conda install spyder-kernels=1.9.4
I have got the issue but this solution did not solve the problem
I was hit by this, and was able to fix it by installing
spyder-kernels==1.9.3
Note that the workaround for spyder==4.1.2
is downgrading to this specific version.
Spyder: 4.1.4
spyder-kernels: 1.9.4
Python 3.7.7 64-bit | Qt 5.9.6 | PyQt5 5.9.2 | Windows 10
So I'm trying to debug a file. With F9 (Run selection) it runs, but with F5 (Run file) or Ctrl+F5 (Debug file) the same error occurs. Now reading these comments I'm not sure whether I should downgrade spyder-kernels or Spyder.
For more context, I'm trying to import several packages AND a custom one, which is still in development, from a working directory.
@theinexorable, Spyder 4.1.4 works with spyder-kernels 1.9.3, not with 1.9.4
update to the new version, its work for me
conda install spyder=4.1.5
edit the File spydercustomize.py:
lib/python3.7/site-packages/spyder_kernels/customize/spydercustomize.py", line 463, in get_file_code function:
file_code = frontend_request().get_file_code(
filename, save_all=save_all)
to:
file_code = frontend_request().get_file_code(filename)
update to the new version, its work for me
conda install spyder=4.1.5
Worked for me!
C Cordoba....what the hell have u done to spyder?????
its has been two months it all messed up
nothing works
have tried re-installing it...re-installing spyder kernels, and all the help on stackoverflow
nothing works
spyder doesnt just work at all
i want to throw it into dustbin
Got the same problem after upgrading to 4.1.3 and moved to 4.1.5 and it is now ok. thanks for the tip.
update to the new version, its work for me
conda install spyder=4.1.5
This worked for me! Thank You!
Thanks!
update to the new version, its work for me
conda install spyder=4.1.5
Thanks!
Most helpful comment
update to the new version, its work for me
conda install spyder=4.1.5