R00kie 发表于 2020-10-4 20:32:17

求助!Spyder报错

Spyder报错如下(发不了图):

runfile('E:/Desktop_E/ImageProcess/spyder_projects/cuda/MNIST/MNIST.py', wdir='E:/Desktop_E/ImageProcess/spyder_projects/cuda/MNIST')
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'

-------------
%tb
Traceback (most recent call last):

File "F:\anaconda\envs\pytorch_cuda\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 462, in get_file_code
    file_code = frontend_request().get_file_code(

File "F:\anaconda\envs\pytorch_cuda\lib\site-packages\spyder_kernels\comms\commbase.py", line 549, in __call__
    return self._comms_wrapper._get_call_return_value(

File "F:\anaconda\envs\pytorch_cuda\lib\site-packages\spyder_kernels\comms\commbase.py", line 432, in _get_call_return_value
    return self._sync_error(reply['value'])

File "F:\anaconda\envs\pytorch_cuda\lib\site-packages\spyder_kernels\comms\commbase.py", line 488, in _sync_error
    error_wrapper.raise_error()

File "F:\anaconda\envs\pytorch_cuda\lib\site-packages\spyder_kernels\comms\commbase.py", line 90, in raise_error
    raise self.etype(self)

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

R00kie 发表于 2020-10-4 20:34:17

应该不是我代码的问题,是不是spyder内部出了啥问题

hrp 发表于 2020-10-4 20:54:49

handle_get_file_code函数接受到一个非期望的关键字参数save_all,意思就是这个函数没有save_all这样的关键字参数。
检查一下你的代码吧
页: [1]
查看完整版本: 求助!Spyder报错