Apache Mod-Python - Errors in latest beta

This is Interesting: Free IT Magazines  
Home > Archive > Apache Mod-Python > September 2005 > Errors in latest beta





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Errors in latest beta
Nick

2005-09-24, 5:46 pm

For some reason I can no longer execute a function registered with
req.register_cleanup:

[Sat Sep 24 11:56:18 2005] [error] [client 127.0.0.1]
exceptions.UnboundLocalError: 1124096352
[Sat Sep 24 11:56:18 2005] [error] [client 127.0.0.1] python_cleanup:
Error calling cleanup object <function pse_cleanuphandler at 0x2aaaadb1f758>

I haven't had time to dig into the mod_python code yet, and I'll be
somewhat busy this weekend, but I want to give a heads up.

I don't rule out the possiblity that it's because of my code ;-) It did
worked before I upgraded, though. Basically I'm calling like so:

req.register_cleanup(pse_cleanuphandler, req)

Nick

Nick

2005-09-24, 5:46 pm

Never mind; I think I've tracked down the problem, and I think it's
related to the fact that I inadvertently upgraded the python2.4 package
on my system to version 2.4.2rc1 :-/

Nick

Nick wrote:
> For some reason I can no longer execute a function registered with
> req.register_cleanup:
>
> [Sat Sep 24 11:56:18 2005] [error] [client 127.0.0.1]
> exceptions.UnboundLocalError: 1124096352
> [Sat Sep 24 11:56:18 2005] [error] [client 127.0.0.1] python_cleanup:
> Error calling cleanup object <function pse_cleanuphandler at
> 0x2aaaadb1f758>
>
> I haven't had time to dig into the mod_python code yet, and I'll be
> somewhat busy this weekend, but I want to give a heads up.
>
> I don't rule out the possiblity that it's because of my code ;-) It did
> worked before I upgraded, though. Basically I'm calling like so:
>
> req.register_cleanup(pse_cleanuphandler, req)
>
> Nick


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com