can't connect to an OpenERP 7 instance with oobjlib.connection

Bug #1107234 reported by Alexandre Fayolle - camptocamp on 2013-01-27
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
A SYLEAM Component - OpenObject Library
High
Christophe CHAUVET

Bug Description

I can connect to a 6.1 instance with oobjlib 2.0.1 but not to a 7.0 instance:

I get the following stack trace

Traceback (most recent call last):
  File "base_config/eggs/openobject_library-2.0.1-py2.7.egg/oobjlib/connection.py", line 47, in __init__
    super(Connection, self).__init__(server=server, port=port)
  File "base_config/eggs/openobject_library-2.0.1-py2.7.egg/oobjlib/connection.py", line 36, in __init__
    self.server_version = self._sock.db('server_version').split('.')
  File "base_config/eggs/openobject_library-2.0.1-py2.7.egg/oobjlib/netrpclib.py", line 106, in <lambda>
    return lambda *args, **kwargs: self.send((name,) + args, **kwargs)
  File "base_config/eggs/openobject_library-2.0.1-py2.7.egg/oobjlib/netrpclib.py", line 76, in send
    res = self.recv()
  File "base_config/eggs/openobject_library-2.0.1-py2.7.egg/oobjlib/netrpclib.py", line 90, in recv
    size = int(read(self.sock, 8))
ValueError: invalid literal for int() with base 10: '<head>\n<'

It looks like both ends are speaking a different protocol.

I see there is work being done on the dev branch to support net rpc. It would be very nice to have a 2.2 release for this available on pypi.

Thanks for your time and work on free software.

description: updated
Amit Parik (amit-parik) on 2013-03-12
Changed in openobject-addons:
status: New → Triaged

Same problem with 2.0.3.

no longer affects: openobject-addons
description: updated

Actually, my analysis is wrong: OpenERP v7 *dropped* support for NetRPC in favor of XMLRPC. So oobjlib needs to convert to xmlrpc (or json rpc) to work with v7

Hi Alexandre

I see OpenERP have broken support in V7.0 and remove it to v7.1

I agree to use XMLRPC(S) and JSONRPC(S)

Regards,

Changed in openobject-library:
status: New → Confirmed
assignee: nobody → Christophe Chauvet - http://www.syleam.fr/ (christophe-chauvet)
Changed in openobject-library:
milestone: none → 3.0
Changed in openobject-library:
importance: Undecided → High
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers