-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using this library with Python 3.x #58
Comments
The xmlrpclib module has been renamed to xmlrpc.client in Python 3. This project has not been updated for two years, so you can find this file jsonrpc.py and change
to
|
I am after the same thing. I've got it working in Python 3.5.2 (win10) with all tests passing, but have broken it for 2.7 (linux) which I'm looking into now. There's a bit more to the changes than those listed above. |
You can use
This will do the above for you. Then change manually these two lines:
To
The best option is however to switch to jsonrpclib-pelix which supports Python3 |
@SajidSalim / @tony-bony / @prs247au I know it is several years since you posted, but this should be resolved in 0.2.1 on PyPI for Python 3.5+. Please let me know if there are other issues (assuming you are still using something like this library), otherwise I will close the issue. |
Can this library be supported to work for Python 3.x if certain issues are fixed? The following are the basic issues I have found. There are no compilation issues.
jsonrpc.py:
from xmlrpclib
becomesfrom xmlrpc.client
.from httplib import HTTP, HTTPConnection
becomesfrom http.client import HTTPConnection
SimpleJSONRPCServer.py:
SimpleXMLRPCServer
becomesxmlrpc.server
ServerSocket
becomesserversocket
Line 62:
except Exception, e:
becomesexcept Exception as e:
Any other changes I am missing?
The text was updated successfully, but these errors were encountered: