用Python 3.3扭曲工作?

时间:2015-02-12 13:40:30

标签: twisted

我在win7上使用py3.3.2和Twisted 15并得到此错误

Traceback (most recent call last):
  File "C:\Users\coder\Desktop\s.py", line 1, in <module>
    from twisted.internet import protocol, reactor, endpoints
  File "D:\Python33\lib\site-packages\twisted\internet\protocol.py", line 18, in <module>
    from twisted.internet import interfaces, error, defer
  File "D:\Python33\lib\site-packages\twisted\internet\defer.py", line 29, in <module>
    from twisted.python import lockfile, log, failure
  File "D:\Python33\lib\site-packages\twisted\python\lockfile.py", line 52, in <module>
    _open = file
NameError: name 'file' is not defined
>>> 

1 个答案:

答案 0 :(得分:3)

Twisted目前在Python 3上没有针对Windows的持续集成;支持Python 3测试的唯一支持平台是Ubuntu。请在https://twistedmatrix.com/提交错误。

同时,请使用Python 2.7 for Windows在那里使用Twisted。