openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #22340
[Bug 1107234] [NEW] can't connect to an OpenERP 7 instance with oobjlib.connection
Public bug reported:
I can connect to a 6.1 instance with oobjlib 2.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.
** Affects: openobject-addons
Importance: Undecided
Status: New
** Description changed:
- I can connect to a 6.1 instance with oobjlib 2.0.1 but not to a 7.0
+ I can connect to a 6.1 instance with oobjlib 2.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))
+ 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.
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1107234
Title:
can't connect to an OpenERP 7 instance with oobjlib.connection
Status in OpenERP Addons (modules):
New
Bug description:
I can connect to a 6.1 instance with oobjlib 2.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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1107234/+subscriptions
Follow ups
References