Hello,

The problem "maximum recursion depth exceeded" has been solved.

I had a Mock class which contained Dummy-HTML-Code.
This Mock class did concatenate a lot of strings:
      DUMMY_CONTENT :"<table border='0' cellspacing='0' cellpadding='0' 
width='100%'> "
        + "  <tr> "
        + "    <td> "
      ...  

These many strings have caused the recursion-problem when executing 
"generate.py build".
(Other targets like "generate.py source-all" were not affected by this problem.)

The solution was to reduce the number of concatenated strings in some way.

Regards,
Uwe 

-----Ursprüngliche Nachricht-----
Von: thron7 [mailto:[email protected]] 
Gesendet: Montag, 16. November 2009 14:15
An: qooxdoo Development
Betreff: Re: [qooxdoo-devel] Build error: maximum recursion depth exceeded

Hi Uwe,

please try the following:

Edit the file tool/bin/generator.py

Under line saying "sys.setdefaultencoding('utf-8')" add the following line:

    sys.setrecursionlimit(1500)

If the problem persists, you can increase the recursion limit to 2000. 
If it still persists, please report back.

T.

Uwe Stahl wrote:
> Hello,
>
> I always get a "maximum recursion depth exceeded"-error when trying to 
> build my qooxdoo application.
> The stack trace is appended to the end of the E-Mail.
>
> My 8 qooxdoo-classes do not have any circular reference that could 
> explain such a recursion.
>
> The target "generate.py source-all" works fine, but the target 
> "generate.py build" always runs into this error.
>
> This problem cannot be resolved by running "generate.py clean" and 
> "generate.py distclean".
>
> I am using qooxdoo 0.8.3 with ActivePython 2.6 on Windows.
>
> Any idea?
>
> Regards,
> Uwe
>
>
> Exception RuntimeError: 'maximum recursion depth exceeded while 
> calling a Python object' in <type 'exceptions.AttributeError'> ignored 
> Traceback (most recent call last):
>   File "C:\ustahl\qooxdoo-0.8.3-sdk\tool\bin\generator.py", line 165, 
> in <module>
>     main()
>   File "C:\ustahl\qooxdoo-0.8.3-sdk\tool\bin\generator.py", line 160, 
> in main
>     generatorObj.run()
>   File 
> "C:\ustahl\qooxdoo-0.8.3-sdk\tool\pylib\generator\Generator.py",
> line 527, in run
>     self._codeGenerator.runCompiled(script, self._treeCompiler)
>   File
> "C:\ustahl\qooxdoo-0.8.3-sdk\tool\pylib\generator\action\CodeGenerator
> .p
> y", line 178, in runCompiled
>     compiledContent = self._treeCompiler.compileClasses(classes,
> variants, optimize, format)
>   File
> "C:\ustahl\qooxdoo-0.8.3-sdk\tool\pylib\generator\code\TreeCompiler.py
> ",
> line 78, in compileClasses
>     return self.compileClassesXX(classes, variants, optimize, format)
>   File
> "C:\ustahl\qooxdoo-0.8.3-sdk\tool\pylib\generator\code\TreeCompiler.py
> ",
> line 88, in compileClassesXX
>     content += self.getCompiled(classId, variants, optimize, format)
>   File
> "C:\ustahl\qooxdoo-0.8.3-sdk\tool\pylib\generator\code\TreeCompiler.py
> ",
> line 267, in getCompiled
>     tree = copy.deepcopy(tree)
>   File "C:\Programme\ActivePython26\lib\copy.py", line 162, in deepcopy
>     y = copier(x, memo)
>   File "C:\Programme\ActivePython26\lib\copy.py", line 293, in 
> _deepcopy_inst
>     state = deepcopy(state, memo)
>   File "C:\Programme\ActivePython26\lib\copy.py", line 162, in deepcopy
>     y = copier(x, memo)
>   File "C:\Programme\ActivePython26\lib\copy.py", line 256, in 
> _deepcopy_dict
>     y[deepcopy(key, memo)] = deepcopy(value, memo)
>   File "C:\Programme\ActivePython26\lib\copy.py", line 162, in deepcopy
>     y = copier(x, memo)
>   File "C:\Programme\ActivePython26\lib\copy.py", line 229, in 
> _deepcopy_list
>     y.append(deepcopy(a, memo))
>   File "C:\Programme\ActivePython26\lib\copy.py", line 162, in deepcopy
>     y = copier(x, memo)
>   File "C:\Programme\ActivePython26\lib\copy.py", line 293, in 
> _deepcopy_inst
>     state = deepcopy(state, memo)
>   ...
>
> ----------------------------------------------------------------------
> -------- Let Crystal Reports handle the reporting - Free Crystal 
> Reports 2008 30-Day trial. Simplify your report design, integration 
> and deployment - and focus on what you do best, core application 
> coding. Discover what's new with Crystal Reports now.  
> http://p.sf.net/sfu/bobj-july 
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
>   

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with Crystal 
Reports now.  http://p.sf.net/sfu/bobj-july 
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to