Closed PCatinean closed 9 years ago
Please, could you show the traceback ? without the except IOError
Thank you
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/erppeek.py", line 1555, in runcode
_exec(code, global_vars)
File "/usr/local/lib/python2.7/dist-packages/erppeek.py", line 1520, in _exec
exec('exec code in g')
File "
Your hostname is wrong.
If you read the code of xmlrpclib.py in the init
method, you can read that
import urllib
type, uri = urllib.splittype(uri)
if type not in ("http", "https"):
raise IOError, "unsupported XML-RPC protocol"
The signature of the function is
erppeek.Client('SCHEME://HOSTNAME:PORT', DATABASE, USERNAME, PASSWORD)
or
erppeek.Client('http://localhost:8069', 'odoo', 'admin', 'admin')
Read the code and the examples or this tutorial http://wirtel.be/posts/en/2014/06/13/using_erppeek_to_discuss_with_openerp/
Thank you
Thank you for the reply matrixise, I know it is wrong I was just curious why the error thrown cannot be bypassed and it hangs the process
I confirm there's a bug due to a recursion in the __del__
method when the wrong parameter is passed to the constructor.
Thank you @PCatinean
The fix will be in 1.6.2
try: erppeek.Client('dsadas') except IOError: print "This is a error!"
Proccess hangs after this and you cannot escape it