python - ImportError for jsonrpc -


i trying follow this walkthrough on how use serviceproxy in jsonrpc.

i followed directions getting error no import of serviceproxy.

here code using:

#!usr/bin/python import sys import json jsonrpc import serviceproxy  givex = jsonrpc.serviceproxy() print "foo" 

which resulting in:

enter image description here

would able me out ideas on how fix this, or have suggestion better jsonrpc library use.

the tutoral following seems outdated. try

from jsonrpc.proxy import jsonrpcproxy givex = jsonrpcproxy.from_url("http://localhost/url/of/your/service.py") 

Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -