MeltwaterArchive / datasift-python

Python client to interface with DataSift
http://datasift.com/
MIT License
43 stars 28 forks source link

Twisted error on Windows with Python 3.X #74

Closed sojojo closed 8 years ago

sojojo commented 9 years ago

A customer was using Python 3.4 in a Windows environment and getting a traceback ending with

from twisted.python import lockfile, failure
File "C:\Python34\lib\site-packages\twisted\python\lockfile.py", line 52, in <module>
_open = file
NameError: name 'file' is not defined

when importing the datasift module.

Apparently this is due to a known problem on Windows with Python 3.X (glyph is a core maintainer of twisted): http://www.scriptscoop.net/t/7d436f5544a8/twisted-work-with-python-3-3.html

Can we update the README advising Windows users to use Python 2.7?

andimiller commented 8 years ago

https://github.com/datasift/datasift-python/commit/ca14f983ee3c53e4a4ef1b8341ef5321416d5768

andimiller commented 8 years ago

Hopefully Twisted adds support for python 3 on windows soon, until then we can leave the README with that caveat