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:
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
Post a Comment