473,320 Members | 2,020 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Maximum recursion depth

When I run on Webware(Python application Server),
there is a web Page that has a "Cancel" button , When
I press the Cancel button , I get the following error
based on the following code snippet

def Cancel(self):
"""
Cancel the current page
"""
log.debug("cancel()")
self.forward("Display")
Traceback (most recent call last):
File "WebKit\Application.py", line 415, in
dispatchRequest
File "WebKit\Application.py", line 567, in
handleGoodURL
File "WebKit\Application.py", line 776, in respond
File "WebKit\Transaction.py", line 105, in respond
File "WebKit\HTTPServlet.py", line 38, in respond
File "WebKit\Page.py", line 38, in respondToPost
File "WebKit\Page.py", line 70, in _respond
File "WebKit\Page.py", line 265, in handleAction
File "C:\agents\context\pageedit\Display.py", line
140, in Cancel
self.forward("Display")
File "WebKit\Page.py", line 335, in forward
File "WebKit\Application.py", line 652, in forward
File "WebKit\Application.py", line 430, in
dispatchRequest
File "WebKit\Application.py", line 1076, in
handleExceptionInTransaction
File "WebKit\ExceptionHandler.py", line 104, in
__init__
File "WebKit\ExceptionHandler.py", line 136, in
work
File "WebKit\ExceptionHandler.py", line 168, in
logExceptionToConsole
File "D:\Python23\lib\traceback.py", line 210, in
print_exc
print_exception(etype, value, tb, limit, file)
File "D:\Python23\lib\traceback.py", line 123, in
print_exception
print_tb(tb, limit, file)
File "D:\Python23\lib\traceback.py", line 68, in
print_tb
line = linecache.getline(filename, lineno)
File "D:\Python23\lib\linecache.py", line 14, in
getline
lines = getlines(filename)
File "D:\Python23\lib\linecache.py", line 40, in
getlines
return updatecache(filename)
RuntimeError: maximum recursion depth exceeded
This eems not a problem with Webware, but with
Python2.3 KIt
Can anyone tell me

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Jul 18 '05 #1
2 2616
Sujit Marar wrote:

This eems not a problem with Webware, but with
Python2.3 KIt
Can anyone tell me


import sys
print sys.getrecursionlimit()

will tell you this limit. On my system is 1000.
You can set it with:

sys.setrecursionlimit(new_limit)

But you need to wonder why you Webware exceeded it
in the first place...

Istvan

Jul 18 '05 #2
On Mon, Jul 12, 2004 at 04:37:25PM -0400, Istvan Albert wrote:
But you need to wonder why you Webware exceeded it
in the first place...


If the OP included the full traceback, one has to wonder why webware
made the recursion depth so small -- there are only a few dozen frames
there.

Jeff

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFA9SxFJd01MZaTXX0RAoy4AJ4xF5A0bHGoOIhuud+k+j eeBkKkmQCdFC22
RPBVMUtCfGnuhqYwf5Hdts4=
=VazD
-----END PGP SIGNATURE-----

Jul 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Simon Burton | last post by:
Hi, I am pickling big graphs of data and running into this problem: File "/usr/lib/python2.2/pickle.py", line 225, in save f(self, object) File "/usr/lib/python2.2/pickle.py", line 414, in...
6
by: Georgy Pruss | last post by:
Sometimes I get this error. E.g. >>> sum = lambda n: n<=1 or n+sum(n-1) # just to illustrate the error >>> sum(999) 499500 >>> sum(1000) ............ RuntimeError: maximum recursion depth...
4
by: Dan | last post by:
I've encountered some strange behavior in a recursive procedure I'm writing for a bill of materials. First let me ask directly if what I think is happening is even possible: It seems like the...
5
by: yogee | last post by:
Hi, I want to know if we have any limit for calling any function recoursively. If there is any, On what parameters this limit depends? and is it different for .net 1.0, 1.1 and 2.0? Thank you,...
10
by: MakeMineScotch | last post by:
What's the secret to writing recursive functions that won't crash the computer?
13
by: robert | last post by:
My code does recursion loops through a couple of functions. Due to problematic I/O input this leads sometimes to "endless" recursions and after expensive I/O to the Python recursion exception. What...
0
by: cwig | last post by:
The following code fails: <?xml version="1.0" encoding="iso-8859-1"?> <!-- Based on a template found here: http://www.stylusstudio.com/xsllist/200303/post91230.html --> <xsl:stylesheet...
29
by: lovecreatesbea... | last post by:
The following function determines the maximum of two integers. It works on my machine. If (a - a) is negative, what's the first bit of: (unsigned)(a - a)? Is it 0 or 1? #include <limits.h>...
6
by: globalrev | last post by:
i received an error maximum recursion depth when processing large amounts of data. i dont know exactly how many recursive calls i made but id assume 50000 or so. is there a definitie limit...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.