Skip to content

Incompatibility with Python 3.X #4

@pauljherrera

Description

@pauljherrera

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions