← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 731902] Re: maximum recursion depth exceeded while calling a Python object

 

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.

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/731902

Title:
  maximum recursion depth exceeded while calling a Python object

Status in OpenERP Server:
  New
Status in Ubuntu:
  Invalid

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.



References