in web2py 2.6.1 for Windows this code:

from jsonrpc import ServiceProxy
rise error:

Traceback (most recent call last):

 File "C:\web2py\gluon\restricted.py", line 217, in restricted

   exec ccode in environment

 File 
"C:/web2py/applications/ipay/controllers/default.py"<http://127.0.0.1:8000/admin/default/edit/ipay/controllers/default.py>
, line 8, in <module>

   from jsonrpc import ServiceProxy

 File "C:\web2py\gluon\custom_import.py", line 94, in custom_importer

   raise e2  # there is an error in the module

NameError: name 'default' is not defined

jsonrpc I load from here https://en.bitcoin.it/wiki/API_reference_(JSON-RPC)

in python27 comman line:
>>>from jsonrpc import ServiceProxy
>>>Ok


in web2py 1.99.7 for unix - all good work

help!

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to