spyder: TypeError: handle_get_file_code() got an unexpected keyword argument 'save_all'

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

Versions

  • Spyder version: 4.1.3
  • Python version: 3.6.9
  • Qt version: 5.9.7
  • Operating System name/version: Ubuntu

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 5
  • Comments: 25 (3 by maintainers)

Most upvoted comments

update to the new version, its work for me conda install spyder=4.1.5

update to the new version, its work for me conda install spyder=4.1.5

Worked for me!

@theinexorable, Spyder 4.1.4 works with spyder-kernels 1.9.3, not with 1.9.4

This problem is solved by running

conda install spyder-kernels=1.9.4

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

Same thing happened to me in a pip3 environment. Reinstalling spyder-kernels worked for me (1.9.4 is the latest on pypi).

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.

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.

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.