You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Firstly, thanks for the wonderful reference implementation!
dvf@ubuntu-us-nyc-01:~ twistd -noy server.tac
Unhandled Error
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/twisted/application/app.py", line 662, in run
runApp(config)
File "/usr/local/lib/python3.5/dist-packages/twisted/scripts/twistd.py", line 25, in runApp
_SomeApplicationRunner(config).run()
File "/usr/local/lib/python3.5/dist-packages/twisted/application/app.py", line 380, in run
self.application = self.createOrGetApplication()
File "/usr/local/lib/python3.5/dist-packages/twisted/application/app.py", line 445, in createOrGetApplication
application = getApplication(self.config, passphrase)
--- <exception caught here> ---
File "/usr/local/lib/python3.5/dist-packages/twisted/application/app.py", line 456, in getApplication
application = service.loadApplication(filename, style, passphrase)
File "/usr/local/lib/python3.5/dist-packages/twisted/application/service.py", line 412, in loadApplication
application = sob.loadValueFromFile(filename, 'application')
File "/usr/local/lib/python3.5/dist-packages/twisted/persisted/sob.py", line 177, in loadValueFromFile
eval(codeObj, d, d)
File "server.tac", line 7, in <module>
from kademlia.network import Server
File "/usr/local/lib/python3.5/dist-packages/kademlia/network.py", line 13, in <module>
from kademlia.storage import ForgetfulStorage
File "/usr/local/lib/python3.5/dist-packages/kademlia/storage.py", line 2, in <module>
from itertools import izip
builtins.ImportError: cannot import name 'izip'
Since Twisted supports 3.6, how about:
try:
from itertools import izip
except ImportError:
from itertools import zip
...
The text was updated successfully, but these errors were encountered:
Firstly, thanks for the wonderful reference implementation!
Since Twisted supports 3.6, how about:
The text was updated successfully, but these errors were encountered: