maximum recursion depth exceeded while calling a Python object

Bug #731902 reported by mdkdopenerp
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Invalid
Undecided
mdkdopenerp
Ubuntu
Invalid
Undecided
Unassigned

Bug Description

Hello:
I'm new there. I have an ERROR LOG in 5015 server:

Environment Information :
System : Linux-2.6.32-29-generic-i686-with-Ubuntu-10.04-lucid
OS Name : posix
Distributor ID: Ubuntu
Description: Ubuntu 10.04.2 LTS
Release: 10.04
Codename: lucid
Operating System Release : 2.6.32-29-generic
Operating System Version : #58-Ubuntu SMP Fri Feb 11 19:00:09 UTC 2011
Operating System Architecture : 32bit
Operating System Locale : en_US.UTF8
Python Version : 2.6.5
OpenERP-Server Version : 5.0.15
Last revision No. & ID :
Traceback (most recent call last):
File "/home/mundukide/Desktop/openerp_5.0.15/openerp-server/bin/osv/osv.py", line 58, in wrapper
return f(self, dbname, *args, **kwargs)
File "/home/mundukide/Desktop/openerp_5.0.15/openerp-server/bin/osv/osv.py", line 119, in execute
res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/mundukide/Desktop/openerp_5.0.15/openerp-server/bin/osv/osv.py", line 111, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/mundukide/Desktop/openerp_5.0.15/openerp-server/bin/osv/orm.py", line 2230, in read
result = self._read_flat(cr, user, select, fields, context, load)
File "/home/mundukide/Desktop/openerp_5.0.15/openerp-server/bin/osv/orm.py", line 2377, in _read_flat
res2 = self._columns[f].get(cr, self, ids, f, user, context=context, values=res)
File "/home/mundukide/Desktop/openerp_5.0.15/openerp-server/bin/osv/fields.py", line 662, in get
res = self._fnct(obj, cr, user, ids, name, self._arg, context)
File "/home/mundukide/Desktop/openerp_5.0.15/openerp-server/bin/addons/mdkd_project/mdkd_project.py", line 240, in _to_account
obj=self.pool.get('mdkd.op').read(cr, uid, ids, ['activity_analytic_account_id'], context=context)
[...]

Does somebody know what kind of error is that and how can I solve it?
Thanks in advance.

description: updated
Changed in openobject-server:
assignee: nobody → mdkdopenerp (mdkdopenerp)
Changed in ubuntu:
status: New → Invalid
Revision history for this message
mdkdopenerp (mdkdopenerp) wrote :

Can anyone help me with that BUG?
Thnkx

Revision history for this message
Borja López Soilán (NeoPolus) (borjals) wrote :

That error means that one of your methods, probably the mdkd.op read method, depends on itself (either it, or one of the methods called by it, call read again), causing it to call itself again and again in an infinite loop, until Python kills it (before it runs out of stack space).

Something like this:

myobject.read calls somethingelse
somethingelse calls myobject.read
myobject.read calls somethingelse
somethingelse calls myobject.read
...

Just make sure that your read method does not cause another read of your own object.

Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

(Closing this bug for cleanup)

Changed in openobject-server:
status: New → Invalid
Revision history for this message
Sebby Bey (sebbybey) wrote :

any 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.