2
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "uploader.zip/__main__.py", line 10, in <module>
  File "uploader.zip/__main__.py", line 5, in main
  File "uploader.zip/appcfg.py", line 27, in <module>
  File "../local/proxy.py", `enter code here`line 1686, in <module>
    class DNSServer(gevent.server.DatagramServer):
AttributeError: 'module' object has no attribute 'DatagramServer'
Exception KeyError: KeyError(140338870835888 ,) in <module 'threading' from '/usr/lib/python2.7/threading.pyc'> ignored

我该怎么办?我不知道python.thanks。

4

1 回答 1

3

尝试改变你的

class DNSServer(gevent.server.DatagramServer):

class DNSServer(gevent.server.StreamServer):

在 file 的第 1686 行(在您的情况下)local/proxy.py

在此链接中查找更多信息。

于 2012-11-11T04:52:10.370 回答