Net-RPC is not working under MacOsX

Bug #310008 reported by Sebastien LANGE - http://www.Syleam.fr
4
Affects Status Importance Assigned to Milestone
KDE OpenObject Client
Fix Released
Undecided
Unassigned

Bug Description

I tried to connect TinyERP server with net-rpc interface and I've got this message :

ERROR:common.message:MSG (57, 'Socket is not connected'): (57, 'Socket is not connected')
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Koo/Dialogs/KooMainWindow.py", line 348, in showLoginDialog
    self.login( dialog.url, dialog.databaseName )
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Koo/Dialogs/KooMainWindow.py", line 386, in login
    self.openMenuTab()
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Koo/Dialogs/KooMainWindow.py", line 488, in openMenuTab
    Api.instance.execute(self.menuId, {'window':self })
  File "./koo.py", line 160, in execute
    Actions.execute( actionId, data, type, context )
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Koo/Actions/Actions.py", line 124, in execute
    res = Rpc.session.execute('/object', 'execute', type, 'read', [act_id], False, ctx)[0]
TypeError: 'NoneType' object is unsubscriptable

If you want, I can do any tests.

Thanks for your help.

Revision history for this message
Albert Cervera i Areny - http://www.NaN-tic.com (albert-nan) wrote :

Could you try the new Pyro protocol under Mac? It's much faster than net-rpc..

Revision history for this message
Marcel van der Boom (HS-Development BV) (mrb) wrote :

This is likely the same issue as in https://bugs.launchpad.net/openerp/+bug/284469

Revision history for this message
Albert Cervera i Areny - http://www.NaN-tic.com (albert-nan) wrote :

Well, trying the GTK client under Mac and seeing if it happens the same could prove that. Anyway, I don't think we're going to give very good support for Net-RPC. Net-RPC is faster in GTK than Qt because in Qt we need to convert all strings to unicode. As Net-RPC is stateless doesn't give the performance boost Pyro gives. Pyro also opens the door to encrypted and compressed connections, including authentication using certificates. I don't see a reason for keeping Net-RPC in Koo. Pyro even makes the use of severs over the Internet really usable and I've seen logging in to take a fifth of the time compared to XML-RPC.

Revision history for this message
Stephane Wirtel (OpenERP) (stephane-openerp) wrote :

Can you describe the bug with net-rpc and mac os x ?

Revision history for this message
Albert Cervera i Areny - http://www.NaN-tic.com (albert-nan) wrote :

Fixed in r561. Applied the same fix as in GTK client.

Changed in openobject-client-kde:
status: New → Fix Released
Revision history for this message
Sebastien LANGE - http://www.Syleam.fr (alnslang) wrote :

I tried under MacOsX and it's ok for Net-RPC but not with the pyro module. Perhaps, I'm not using correctly pyro ?

Revision history for this message
Albert Cervera i Areny - http://www.NaN-tic.com (albert-nan) wrote : Re: [Bug 310008] Re: Net-RPC is not working under MacOsX

A Dissabte 07 Març 2009, Sebastien LANGE - http://www.Syleam.fr va escriure:
> I tried under MacOsX and it's ok for Net-RPC but not with the pyro
> module. Perhaps, I'm not using correctly pyro ?

Do you have Pyro installed on the client and the server? Do you have
the 'ktiny' module installed on the server? Pyro (nor any other modules in
Koo distribution) hasn't been tested with 5.0, you're supposed to use 4.2..
Can you show a backtrace or some kind of errors?

--
Albert Cervera i Areny
http://www.NaN-tic.com

Revision history for this message
Sebastien LANGE - http://www.Syleam.fr (alnslang) wrote :

Pyro installed on the client and server => OK
Ktiny and Pyro modules installed => OK
I used the 5.0, not 4.2 and I've not backtrace because the client don't find the server (just "Could not connect to server !"). I used the port 8071. Is-it good ?

Thanks for your help.

Revision history for this message
Albert Cervera i Areny - http://www.NaN-tic.com (albert-nan) wrote :

A Diumenge 08 Març 2009, Sebastien LANGE - http://www.Syleam.fr va escriure:
> Pyro installed on the client and server => OK
> Ktiny and Pyro modules installed => OK
> I used the 5.0, not 4.2 and I've not backtrace because the client don't
> find the server (just "Could not connect to server !"). I used the port
> 8071. Is-it good ?

The port is ok.
When you start the server you should see this output:

Sun, 08 Mar 2009 11:34:08 INFO:init:addon:pyro:registering classes
[.... maybe some lines in between ....]
Pyro Server Initialized. Using Pyro V3.7

Otherwise, the Pyro server is not starting.

>
> Thanks for your help.

--
Albert Cervera i Areny
http://www.NaN-tic.com

Revision history for this message
Sebastien LANGE - http://www.Syleam.fr (alnslang) wrote :

I don't have this message. I'll test with the 4.2 version.

Revision history for this message
Sebastien LANGE - http://www.Syleam.fr (alnslang) wrote :

I've tested in 4.2 and it's ok. With the 5.0, I'm starting the server without database then pyro server isn't starting. If I start with the database with pyro and ktiny installed, it's working.

It's normal and thanks for your help.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.