#7 Unexpected exception

closed-fixed
nobody
None
5
2003-12-10
2003-10-26
Anonymous
No

First, thanks for spyce, it's has the right features in
a relativaly simple package!

But:-)
using Debian woody (current stable tree), I got the
following error in "examples/getpost.spy" and my own
code:

Unexpected exception: (please report!)
Traceback (most recent call last):
File "/opt/spyce/spyce.py", line 169, in commonHandler
thespyce.spyceDestroy(theError)
File "/opt/spyce/spyce.py", line 442, in spyceDestroy
try: mod.finish(theError)
File "/opt/spyce/modules/error.py", line 24, in finish
self.handler(self)
File "/opt/spyce/modules/error.py", line 19, in
<lambda>
self.handler = lambda self: spyceHandler(self,
pageerrorData, pageerrorType)
NameError: global name 'pageerrorData' is not defined

Debian woody use the following package/version:
apache 1.3.26-0woody3
libapache-mod-python 2:2.7.8-0.0woody1
python 2.1.3-3

using debian unstable (apache-2.0.47, mod_python
3.0.3) it runs fine!

I would really like to run spyce on debian stable.

Discussion

  • batripler
    batripler
    2003-12-10

    Logged In: YES
    user_id=371556

    Have not replicated this bug, but I think I've fixed it. Please
    verify in Spyce v1.3.12. Suspected cause: In earlier versions
    of Python, lambda expressions do not inherit the namespace
    of the enclosing functions. Added default parameters to the
    lambda expressions in the error module, so it should now be
    backwards compatible with Python 1.5.2.

     
  • batripler
    batripler
    2003-12-10

    • status: open --> closed-fixed