pyRserve python3 syntax error

16 views
Skip to first unread message

Стас Иванов

unread,
Sep 4, 2015, 12:55:33 PM9/4/15
to pyRserve
In the current version of pyRserve (install from pip3, ubuntu 14.04 x32, fedora 22 x64, python3.4) I've get this syntax error:

Traceback (most recent call last):
...
    import pyRserve
  File "/usr/lib/python3.4/site-packages/pyRserve/__init__.py", line 9, in <module>
    from .rconn import connect
  File "/usr/lib/python3.4/site-packages/pyRserve/rconn.py", line 79
    except socket.error, msg:
                       ^
SyntaxError: invalid syntax

After replacing line 79 in rconn.py to:
except socket.error as msg:

everything works.

Ralph Heinkel

unread,
Sep 4, 2015, 1:00:27 PM9/4/15
to pyRserve
I've received a patch some days ago which fixes this problem.
A new version of pyRserve has just been uploaded to pypi, so please upgrade your package from there to get a working version for Python 3.4.

RH
Reply all
Reply to author
Forward
0 new messages