0
有毛病我扭曲的依賴,它的工作,現在我真的得到這個錯誤,而進口協議和電抗器:Python的扭曲導入錯誤:無法導入名稱的Unicode
Python 2.7.8 (default, Nov 25 2014, 09:23:41)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-11)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from twisted.internet import reactor, protocol
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/nick/env/env/lib/python2.7/site-packages/twisted/__init__.py", line 56, in <module>
from twisted.python import compat
File "/home/nick/env/env/lib/python2.7/site-packages/twisted/python/compat.py", line 23, in <module>
import sys, string, socket, struct
File "socket.py", line 1, in <module>
from twisted.internet.protocol import Protocol, Factory
File "/home/nick/env/env/lib/python2.7/site-packages/twisted/internet/protocol.py", line 17, in <module>
from twisted.python import log, failure, components
File "/home/nick/env/env/lib/python2.7/site-packages/twisted/python/log.py", line 19, in <module>
from twisted.python.compat import unicode, _PY3
ImportError: cannot import name unicode
你可以導入twisted.python.compat嗎?如果是這樣,它是否有一個函數或類或稱爲unicode的模塊? – 2015-02-06 08:48:20
導致異常的行已從扭曲中刪除。當你更新到更新版本時,你應該看看它是否有效。 – 2015-02-06 09:01:17
它扭曲了15,我,米糊塗,導致通過點重新安裝並沒有幫助... – Nick 2015-02-06 09:53:20