python Importerror using jsonrpc2 -
I am trying jsonrpc2 using python I have created a file hello.py
< Code> def Greeting (name): return word (message = "hello,% s!"% Name)Then I
runjsonrpc2 Hellobut got me
importError: Hello any module
It looks like
runjsonrpc2 is missinghello.py module insys.pathYou can increase the search path along with that directory where your
Hello module only gives the environment settings variableFor example, if you are using a shell shell, you can run the following commands in the same directory of your
hello.py file:$ export PYTHONPATH = $ PYTHONPATH:. $ Runjsonrpc2 Hello
Comments
Post a Comment