简体   繁体   English

有人可以帮我理解这个错误:

[英]Can someone help me understand this error:

I never know how to read these. 我永远不知道怎么读这些。 It would be helpful if someone could help me understand this one, and maybe give advice on how to read these in general? 如果有人可以帮助我理解这个,并且可能就如何阅读这些内容提供建议会很有帮助吗?

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

In a stack traceback, Python lists the current call stack, in the order the calls happened. 在堆栈回溯中,Python按照调用发生的顺序列出当前的调用堆栈。 So, first your code in captain2.py : 那么,首先你的captain2.py的代码:

from twisted.internet import reactor

Then the reactor module did: 然后reactor模块做了:

from twisted.internet import default

and so on, until selectreactor.py did: 依此类推,直到selectreactor.py

from zope.interface import implements

and apparently there does not exist a zope.interface module on your system. 并且显然系统上不存在zope.interface模块。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 有人可以帮我理解python中的循环吗 - Can someone help me understand this for loop in python 有人可以帮我理解这个逻辑吗? - Can someone help me understand the logic of this? 有人可以帮我理解 class 变量吗 - Can someone help me understand class variables 有人可以帮助我了解此Python代码如何工作 - Can someone help me understand how this Python code works 有人可以帮助我了解特殊方法与常规方法吗? - Can someone help me understand special methods vs normal methods? 有人可以帮助我了解以下python程序吗? - Can someone help me understand the following python program? 有人可以帮我理解什么.index 在这段代码中做了什么吗? - Can someone help me understand what .index is doing in this code? 有人可以帮我解决这个输入错误吗? - Can someone help me solve this input error? 如何解决此 Jupiter Notebook 错误? [关闭] - How can I resolve this Jupiter Notebook error? [closed] 为什么我的 PySpark 函数 2 给出错误而 function 1 工作正常,从逻辑上讲,它们都在做同样的事情? 有人可以帮我理解吗? - Why is my PySpark function2 giving error and function 1 working fine, logically they both are doing the same thing ? can someone help me understand?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM