[英]Can someone help me understand this error:
我永遠不知道怎么讀這些。 如果有人可以幫助我理解這個,並且可能就如何閱讀這些內容提供建議會很有幫助嗎?
D:\>python captain2.py
Traceback (most recent call last):
File "captain2.py", line 2, in <module>
from twisted.internet import reactor
File "c:\Python27\lib\site-packages\twisted\internet\reactor.py", line 37, in
<module>
from twisted.internet import default
File "c:\Python27\lib\site-packages\twisted\internet\default.py", line 50, in
<module>
install = _getInstallFunction(platform)
File "c:\Python27\lib\site-packages\twisted\internet\default.py", line 46, in
_getInstallFunction
from twisted.internet.selectreactor import install
File "c:\Python27\lib\site-packages\twisted\internet\selectreactor.py", line 1
4, in <module>
from zope.interface import implements
ImportError: No module named zope.interface
在堆棧回溯中,Python按照調用發生的順序列出當前的調用堆棧。 那么,首先你的captain2.py
的代碼:
from twisted.internet import reactor
然后reactor
模塊做了:
from twisted.internet import default
依此類推,直到selectreactor.py
:
from zope.interface import implements
並且顯然系統上不存在zope.interface
模塊。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.