Ghost.py - 这个堆栈跟踪意味着什么?

时间:2014-06-27 19:46:55

标签: python python-2.7 ghost.py

如何调试此堆栈跟踪?

Traceback (most recent call last):
  File "<string>", line 73, in execInThread
  File "C:\Program Files (x86)\PyScripter\Lib\rpyc.zip\rpyc\core\netref.py", line 196, in __call__
  File "C:\Program Files (x86)\PyScripter\Lib\rpyc.zip\rpyc\core\netref.py", line 71, in syncreq
  File "C:\Program Files (x86)\PyScripter\Lib\rpyc.zip\rpyc\core\protocol.py", line 431, in sync_request
  File "C:\Program Files (x86)\PyScripter\Lib\rpyc.zip\rpyc\core\protocol.py", line 379, in serve
  File "C:\Program Files (x86)\PyScripter\Lib\rpyc.zip\rpyc\core\protocol.py", line 337, in _recv
  File "C:\Program Files (x86)\PyScripter\Lib\rpyc.zip\rpyc\core\channel.py", line 50, in recv
  File "C:\Program Files (x86)\PyScripter\Lib\rpyc.zip\rpyc\core\stream.py", line 166, in read
EOFError: [Errno 10054] An existing connection was forcibly closed by the remote host

堆栈跟踪不是指我代码中的一行,这段时间太长而无法重现。但是,标准python库以外的关键组件是Ghost.py

谢谢!

1 个答案:

答案 0 :(得分:1)

这意味着服务器意外关闭了连接,通常是因为某些原因崩溃了。在这种情况下,它看起来像客户端是pyscripter,服务器是运行你的应用程序的子进程,听起来像子进程崩溃如此之大,以至于它没有正常关闭连接或发送回有意义的回溯。因此,pyscripter中存在错误或代码中存在错误。我的建议是在没有IDE的情况下运行您的应用程序,看看您是否可以重现问题并获得有意义的追溯。