python Importerror using jsonrpc2 -
i trying jsonrpc2 using python. created file hello.py
def greeting(name): homecoming dict(message="hello, %s!" % name) then run
runjsonrpc2 hello but got
importerror: no module named hello
it seems runjsonrpc2 not able find hello.py module in sys.path.
you can augment search path including directory hello module lays setting pythonpath environment variable.
for example, if using bash shell, can run next commands in same directory of hello.py file:
$ export pythonpath=$pythonpath:. $ runjsonrpc2 hello python importerror json-rpc
No comments:
Post a Comment