Hello,

I'm closing this bug as it is a limitation of Psyco, not a bug of OpenERP. 
Pyco breaks the inspect module, because of the way it emulates frame objects.
This is mentioned in the Psyco known bugs, and will break various features of 
Eclipse's debugger and OpenERP itself.

- http://psyco.sourceforge.net/psycoguide/bugs.html
- http://code.activestate.com/lists/python-list/399157

Thanks all for investigating, this will be a great help for people
having the same behavior.

I will manually convert create a question out of this bug (the
conversion is currently broken in Launchpad) so it's easier to find ...

** Changed in: openobject-server
   Importance: Low => Undecided

** Changed in: openobject-server
       Status: Confirmed => Invalid

** Changed in: openobject-server
    Milestone: 5.0.12 => None

-- 
Psyco debugger compatibility issue (can't debug in eclipse)
https://bugs.launchpad.net/bugs/541985
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject Server: Invalid

Bug description:
SUMMARY
Beginning with v5.0.7, debugging doesn't work in Eclipse when using Psyco, a 
python-code optimizer (http://psyco.sourceforge.net/).

WORKAROUND
Don't use psyco, it should work fine without it.

ORIGINAL BUG DESCRIPTION
Using server 5.0.6 I could enter debugging mode in eclipse. That fails in 5.0.7.

Eclipse says it uses the following commands:
"/usr/bin/python2.5 -u
/home/ls/Logiciels/eclipse/plugins/org.python.pydev.debug_1.5.5.2010030420/pysrc/pydevd.py
--vm_type python --client localhost --port 0 --file
/home/ls/Projets/OpenERP/server/5.0/bin/openerp-server.py

The PYTHONPATH that will be used is:

/home/ls/Logiciels/eclipse/plugins/org.python.pydev_1.5.5.2010030420/PySrc/pydev_sitecustomize:/usr/lib/python2.5:/usr/lib/python2.5/lib-dynload:/usr/lib/python2.5/lib-tk:/usr/lib/python2.5/plat-linux2:/usr/lib/python2.5/site-packages:/usr/lib/python2.5/site-packages/Cheetah-2.0.1-py2.5-linux-i686.egg:/usr/lib/python2.5/site-packages/CherryPy-2.3.0-py2.5.egg:/usr/lib/python2.5/site-packages/DecoratorTools-1.7-py2.5.egg:/usr/lib/python2.5/site-packages/FormEncode-1.0.1-py2.5.egg:/usr/lib/python2.5/site-packages/Numeric:/usr/lib/python2.5/site-packages/PIL:/usr/lib/python2.5/site-packages/Paste-1.7.1-py2.5.egg:/usr/lib/python2.5/site-packages/PasteDeploy-1.3.2-py2.5.egg:/usr/lib/python2.5/site-packages/PasteScript-1.6.3-py2.5.egg:/usr/lib/python2.5/site-packages/PyProtocols-1.0a0dev_r2302-py2.5-linux-i686.egg:/usr/lib/python2.5/site-packages/RuleDispatch-0.5a0.dev_r2306-py2.5-linux-i686.egg:/usr/lib/python2.5/site-packages/TurboCheetah-1.0-py2.5.egg:/usr/lib/python2.5/site-packages/TurboGears-1.0.8-py2.5.egg:/usr/lib/python2.5/site-packages/TurboKid-1.0.4-py2.5.egg:/usr/lib/python2.5/site-packages/eTiny-1.0.1.1-py2.5.egg:/usr/lib/python2.5/site-packages/gst-0.10:/usr/lib/python2.5/site-packages/gtk-2.0:/usr/lib/python2.5/site-packages/kid-0.9.6-py2.5.egg:/usr/lib/python2.5/site-packages/setuptools-0.6c8-py2.5.egg:/usr/lib/python2.5/site-packages/simplejson-1.9.1-py2.5-linux-i686.egg:/usr/lib/python25.zip:/usr/local/lib/python2.5/site-packages
"

When the first client connects it fails and the server console shows:
pydev debugger: starting
[2010-03-19 16:44:18,423] DEBUG:psycopg2:installed. Logging using 
Python logging module
[2010-03-19 16:44:18,430] INFO:server:version - 5.0.7
[2010-03-19 16:44:18,431] INFO:server:addons_path - 
/home/ls/Projets/OpenERP/addons/fdl-dev
[2010-03-19 16:44:18,431] INFO:server:database hostname - 
localhost
[2010-03-19 16:44:18,432] INFO:server:database port - 5432
[2010-03-19 16:44:18,432] INFO:server:database user - ls
[2010-03-19 16:44:18,433] INFO:objects:initialising distributed 
objects services
[2010-03-19 16:44:18,827] INFO:web-services:starting XML-RPC 
services, port 8069
[2010-03-19 16:44:18,828] INFO:web-services:starting NET-RPC 
service, port 8070
[2010-03-19 16:44:18,829] INFO:web-services:the server is 
running, waiting for connections...
[2010-03-19 16:44:22,235] DEBUG:Connection:create cursor to 
"template1"
[2010-03-19 16:44:22,237] 
DEBUG:ConnectionPool:ConnectionPool(used=0/count=0/max=64)
[2010-03-19 16:44:22,238] DEBUG:ConnectionPool:Borrow connection 
to user=ls dbname=template1
[2010-03-19 16:44:22,239] 
DEBUG:ConnectionPool:ConnectionPool(used=0/count=0/max=64)
[2010-03-19 16:44:22,240] DEBUG:ConnectionPool:Create new 
connection
> /usr/lib/python2.5/inspect.py(834)getframeinfo()
-> raise TypeError('arg is not a frame or traceback object')
(Pdb)





_______________________________________________
Mailing list: https://launchpad.net/~c2c-oerpscenario
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~c2c-oerpscenario
More help   : https://help.launchpad.net/ListHelp

Reply via email to