Welcome, Guest
Username: Password: Remember me

TOPIC: Runtime Error during Telemac compilation with python on Ubuntu

Runtime Error during Telemac compilation with python on Ubuntu 11 years 5 months ago #9324

  • cmitsis
  • cmitsis's Avatar
... File "compileTELEMAC.py", line 81, in getTree
tTree,rTree = getTree(use,libname,list,level,rebuild)
File "compileTELEMAC.py", line 103, in getTree
tTree,rTree = getTree(function.strip(),libname,list,level,rebuild)
File "compileTELEMAC.py", line 81, in getTree
tTree,rTree = getTree(use,libname,list,level,rebuild)
File "compileTELEMAC.py", line 81, in getTree
tTree,rTree = getTree(use,libname,list,level,rebuild)
File "compileTELEMAC.py", line 100, in getTree
if lib != lname and list[lib].get(function) != None:
RuntimeError: maximum recursion depth exceeded in cmp '

The above error is generated when compiling Telemac on ubuntu with python 2.7.5. persistently associated with the getTree function

Here is the definition of the above mentioned function

def getTree(name,lname,list,level,rebuild):
# ~~ Recursive tree Build ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
level = level + 1
# ~~ prints the tree to screen:
#print "# "*level + name + " > " + lname
time = list[lname][name]
#if debug: print '===> use',list[lname][name]
for use in list[lname][name]:
libname = lname
if list[lname].get(use) == None:
for lib in list.keys():
if lib != lname and list[lib].get(use) != None: libname = lib


Any clues? I use the latest tag from the svn reposity.

Thanks in advance.
The administrator has disabled public write access.

Runtime Error during Telemac compilation with python on Ubuntu 11 years 5 months ago #9325

  • sebourban
  • sebourban's Avatar
  • OFFLINE
  • Administrator
  • Principal Scientist
  • Posts: 814
  • Thank you received: 219
Hello,

We are still sorting this one out. It is a problem with 2.7.5 and python is not always backward compatible. We should be capable of having the scripts ready for all 2.7.x within 2 weeks, well before the release of v6p3.

In the meantime, we can only recommend that you use python 2.7.3 (or 2.7.1 or 2.7.2). These work.

Hope this helps,
Sébastien.
The administrator has disabled public write access.
The following user(s) said Thank You: cmitsis
Moderators: borisb

The open TELEMAC-MASCARET template for Joomla!2.5, the HTML 4 version.