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

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -