2016-11-05 215 views
1

我的問題是Spyder(in Windows 10)。當我嘗試我spyder控制檯(甚至一些如1 + 1那樣簡單)上做任何事情,我得到的內部控制檯選項卡下面的錯誤信息:Spyder控制檯在打印時出錯

(任何幫助將不勝感激)

Traceback (most recent call last): <br> <br> 
    File "C:\Users\ JohnDoe \Anaconda2\lib\site-packages\qtconsole\base_frontend_mixin.py", line 163, in _dispatch<br><br> 
Traceback (most recent call last):<br><br> 
    File "C:\Users\ JohnDoe \Anaconda2\lib\site-packages\qtconsole\base_frontend_mixin.py", line 163, in _dispatch<br><br> 
    handler(msg)<br><br> 
    File "C:\Users\JohnDoe\Anaconda2\lib\site-packages\spyder\widgets\ipythonconsole\namespacebrowser.py", line 188, in _handle_execute_reply<br><br> 
    self.handle_exec_method(msg)<br><br> 
    File "C:\Users\ JohnDoe\Anaconda2\lib\site-packages\spyder\widgets\ipythonconsole\shell.py", line 225, in handle_exec_method<br><br> 
    properties = ast.literal_eval(data['text/plain'])<br><br> 
KeyError: 'text/plain'<br><br> 
    handler(msg)<br><br> 
    File "C:\Users\ JohnDoe\Anaconda2\lib\site-packages\spyder\widgets\ipythonconsole\namespacebrowser.py", line 188, in _handle_execute_reply<br><br> 
    self.handle_exec_method(msg)<br><br> 
    File "C:\Users\ JohnDoe\Anaconda2\lib\site-packages\spyder\widgets\ipythonconsole\shell.py", line 222, in handle_exec_method<br><br> 
    view = ast.literal_eval(data['text/plain'])<br><br> 
KeyError: 'text/plain' 
+0

在Spyder 3.0.2中修正了這個錯誤。請更新到該版本。 –

+0

這就是我做的。謝謝。 – Prometheus

回答

1
當您安裝的Spyder 3像卡洛斯 mentioned

此錯誤已修復的Spyder 3.0.2

的問題得到解決。請更新到該版本。

但是,它實際上不影響我的代碼或運行時間。唯一的缺點是你不能在顯示這個錯誤的機器上測試你的代碼。

+0

我們添加了進一步的驗證,以避免在Spyder 3.1中出現此問題,以防您想更新到該版本:-) –

+0

感謝Carlos。我做到了。 :) 非常感激。 – Prometheus