ralhei / pyRserve

A python client for Rserve (network layer to remote R server)
Other
47 stars 13 forks source link

error when importing in Python 3 #9

Closed rjmorris closed 9 years ago

rjmorris commented 9 years ago

import pyRserve produces an error in Python 3.4.1. The problem is the except statement in rconn.py on line 79:

except socket.error, msg:

Using the comma in except statements is invalid syntax in Python 3. Using as in place of the comma works in Python 3, but I'm not sure if it will work in the older supported Python versions.

eeue56 commented 9 years ago

except..as was introduced in Python 2.6. I've created a PR that will fix this issue - #10

ralhei commented 9 years ago

solved by your pull request #10