Hi all,
forgetSQL is an unmaintained piece of shi^H^Hoftware that NAV versions up to 3.5 depend on. While we have removed this dependency from the coming NAV 3.6, some will experience warnings when running NAV under Python 2.5, and outright failures on Python 2.6, due to problems with the forgetSQL module.
The forgetSQL module raises string exceptions in three places, and these are deprecated in Python 2.5, and not supported in 2.6. You may see error messages such as these:
/var/lib/python-support/python2.5/forgetSQL.py:212: DeprecationWarning: raising a string exception is deprecated raise "NotFound"
or
File "/var/lib/python-support/python2.6/forgetSQL.py", line 212, in __new__ raise "NotFound"
TypeError: exceptions must be classes or instances, not str
I'm attaching a quick forgetSQL patch I've written to overcome these problems until NAV 3.6 has reached a stable release.
Morten Brekkevold morten.brekkevold@uninett.no writes:
forgetSQL is an unmaintained piece of shi^H^Hoftware that NAV versions up to 3.5 depend on. While we have removed this dependency from the coming NAV 3.6, some will experience warnings when running NAV under Python 2.5, and outright failures on Python 2.6, due to problems with the forgetSQL module.
Mortens patch++ is included in the lastest upload of forgetSQL to Debian [1]. I've also added this package to the lenny-repository on alioth.debian.org together with the NAV-package, and will upload to backports.org when/if it hit's Debian testing.
- Werner
[1] http://packages.qa.debian.org/f/forgetsql/news/20100318T061707Z.html