擅长:python、mysql、java
<p>此<a href="http://code.google.com/p/spyderlib/issues/detail?id=1540" rel="nofollow">here</a>存在spyderlib问题。显然它已经关闭了,所以也许可以尝试更新你的库,看看它是否仍然是个问题。在</p>
<p><a href="http://code.google.com/p/spyderlib/source/detail?r=2417e4646f961a66b26e2d7337ac83c0d42e51c9" rel="nofollow">Log</a></p>
<pre><code>Log message
Executing script in current Python/IPython interpreter while no interpreter is
running was raising a TypeError exception:
Traceback (most recent call last):
File "[...]\spyderlib\plugins\externalconsole.py", line 722, in
run_script_in_current_shell
"and try again.") % osp.basename(filename), QMessageBox.Ok)
File "[...]\python-2.7.5.amd64\lib\ntpath.py", line 198, in basename
return split(p)[1]
File "[...]\python-2.7.5.amd64\lib\ntpath.py", line 173, in split
while i and p[i-1] not in '/\\':
TypeError: 'in <string>' requires string as left operand, not QString
Update Issue 1540
Status: Fixed
Affected files
expand all collapse all
Modify /spyderlib/plugins/externalconsole.py diff
</code></pre>