python - 在 AWS 上运行 Twisted 的问题

标签 python amazon-web-services twisted zope.interface

首先,我需要在我的服务器上运行扭曲的应用程序,但我得到的是这个错误

File "server2.py", line 1, in <module>
from twisted.internet.protocol import Factory, Protocol
File "/usr/lib64/python2.6/site-packages/Twisted-15.0.0-py2.6-linux-x86_64.egg/twisted/__init__.py", line 53, in <module>
_checkRequirements()
File "/usr/lib64/python2.6/site-packages/Twisted-15.0.0-py2.6-linux-x86_64.egg/twisted/__init__.py", line 51, in _checkRequirements
raise ImportError(required + ".")
ImportError: Twisted requires zope.interface 3.6.0 or later.

所以,这让我安装了 zope.interface。在 zope.interface-4.1.2 中运行 setup.py 后,我看到了这个

Finished processing dependencies for zope.interface==4.1.2

我想我已经更新了它,但是当我运行我扭曲的应用程序时,出现了同样的错误。请帮助我。

最佳答案

您使用的是哪个 Linux 发行版/AMI? 您是否检查过是否安装了多个 python 版本? 也许 zope.interface 需要 c-binding 库,你最好从 apt-get/yum 安装这个包?

关于python - 在 AWS 上运行 Twisted 的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28514086/

相关文章:

python - 什么取代了 scipy.misc.bytescale?

python - 如果分隔符出现在引号内,如何避免拆分分隔符?

python - python 中的邻近图

amazon-web-services - AWS ECS 使用相同的任务定义和镜像重新启动服务,无需停机

python - 无法弄清楚 TypeError : __init__() takes exactly 3 arguments (2 given)

python - 在python opencv中查找图像的所有X和Y坐标

amazon-web-services - Go lang 中的 AWS API Gateway 客户端证书

amazon-web-services - 如何通过 cloudformation 或 sam 使用 api 网关阶段?

python 扭曲: retrieve a deferred's execution time

扭曲的服务器,nc 客户端