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 Hello
but got me
importError: Hello any module
It looks like
runjsonrpc2 is missing
hello.py module in
sys.path
You can increase the search path along with that directory where your
Hello module only gives the environment settings variable
For 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