Incompatibility with Python 3.X
pauljherrera opened this issue · comments
I tried to import the library on Python 3.6. I did it on Anaconda distribution and a Windows machine.
from socketclusterclient import Socketcluster
I got this error.
File "C:\ProgramData\Anaconda3\lib\site-packages\socketclusterclient\Socketcluster.py", line 256
print "delay"
^
SyntaxError: Missing parentheses in call to 'print'
I changed the Socketcluster.py on my local machine and it ran just fine. I just did:
from future import print_function
And then added the parenthesis in the line 256. I think it should be compatible to Python 2 and 3.
Thank you, I will fix the bug and update the library on Pypi.
Latest library has been uploaded, please take a look.
Thanks a lot!