c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #05492
[Bug 568257] Re: Solving Server crashes within inspect module when using external debugging/optimization tools
(Sorry, Launchpad crashes at the moment during the conversion to a question - so I will close it as Invalid for now, because this is not an OpenERP bug)
In the mean time, here's the answer I would have posted on the question:
Many python-code altering tools interfere with the inspect module on
which OpenERP relies (another known one is Psyco) and thus break it.
Unfortunately this is not a dependency we can easily lift, and the issue
really comes from the way these tools break inspect's vision of python
frames. The workaround is to disable these tools (unless you find a way
to do a brutal patch, such as suggested in comment #4).
However, please note that our developers use Eclipse with PyDev and are
perfectly able to run the OpenERP server within the debugger, so it may
be some other specific tool your are using that interferes with this.
** Changed in: openobject-server
Status: Confirmed => Invalid
--
Solving Server crashes within inspect module when using external debugging/optimization tools
https://bugs.launchpad.net/bugs/568257
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:
openerp 5.0.9
Traceback (most recent call last):
File "openerp-server.py", line 99, in <module>
pooler.get_db_and_pool(db, update_module=tools.config['init'] or tools.config['update'])
File "/home/gptmanage/webapps/openerp_server/bin/pooler.py", line 40, in get_db_and_pool
addons.load_modules(db, force_demo, status, update_module)
File "/home/gptmanage/webapps/openerp_server/bin/__init__.py", line 678, in load_modules
File "/home/gptmanage/webapps/openerp_server/bin/sql_db.py", line 316, in cursor
return Cursor(self._pool, self.dbname, serialized=serialized)
File "/home/gptmanage/webapps/openerp_server/bin/sql_db.py", line 95, in __init__
self.__caller = tuple(stack()[2][1:3])
File "/usr/local/lib/python2.5/inspect.py", line 884, in stack
return getouterframes(sys._getframe(1), context)
File "/usr/local/lib/python2.5/inspect.py", line 865, in getouterframes
framelist.append((frame,) + getframeinfo(frame, context))
File "/usr/local/lib/python2.5/inspect.py", line 840, in getframeinfo
lines, lnum = findsource(frame)
File "/usr/local/lib/python2.5/inspect.py", line 510, in findsource
if pat.match(lines[lnum]): break
IndexError: list index out of range
Exception exceptions.AttributeError: "'cursor' object has no attribute '_Cursor__caller'" in <bound method Cursor.__del__ of <sql_db.Cursor object at 0x89e594c>> ignored