Hi all, I'm having an issue setting up my Featureserver to read from postGIS. I have python configured correctly, and using psycopg2 I can connect and execute statements to my postGIS database, but when I try featureserver.cgi
through the browser, I get the following:<br><br><pre>An error occurred: (2, 'No such file or directory')<br> File "/opt/lampp/cgi-bin/featureserver2/FeatureServer/Server.py", line 247, in cgiHandler<br>
service = Server.load(*cfgfiles)<br> File "/opt/lampp/cgi-bin/featureserver2/FeatureServer/Server.py", line 68, in _load<br> datasources[section] = cls.loadFromSection(<br> File "/opt/lampp/cgi-bin/featureserver2/FeatureServer/Server.py", line 49, in _loadFromSection
<br> return objclass(section, **objargs)<br> File "/opt/lampp/cgi-bin/featureserver2/FeatureServer/DataSource/DBM.py", line 21, in __init__<br> self.db = Recno( args["file"] )<br> File "/opt/lampp/cgi-bin/featureserver2/FeatureServer/DataSource/DBM.py", line 146, in __init__
<br> self.data = anydbm.open( file, "c" )<br> File "/usr/lib/python2.4/anydbm.py", line 83, in open<br> return mod.open(file, flag, mode)<br> File "/usr/lib/python2.4/dbhash.py", line 16, in open
<br> return bsddb.hashopen(file, flag, mode)<br> File "/usr/lib/python2.4/bsddb/__init__.py", line 299, in hashopen<br> d.open(file, db.DB_HASH, flags, mode)<br><br></pre>
and then in tomcat's error log:<br><br>[Fri Jan 18 11:06:17 2008] [error] [client <a href="http://128.252.167.106">128.252.167.106</a>] Exception<br>[Fri Jan 18 11:06:17 2008] [error] [client <a href="http://128.252.167.106">
128.252.167.106</a>] exceptions.AttributeError<br>[Fri Jan 18 11:06:17 2008] [error] [client <a href="http://128.252.167.106">128.252.167.106</a>] :<br>[Fri Jan 18 11:06:17 2008] [error] [client <a href="http://128.252.167.106">
128.252.167.106</a>] "<br>[Fri Jan 18 11:06:17 2008] [error] [client <a href="http://128.252.167.106">128.252.167.106</a>] '<br>[Fri Jan 18 11:06:17 2008] [error] [client <a href="http://128.252.167.106">128.252.167.106
</a>] R<br>[Fri Jan 18 11:06:17 2008] [error] [client <a href="http://128.252.167.106">128.252.167.106</a>] e<br>[Fri Jan 18 11:06:17 2008] [error] [client <a href="http://128.252.167.106">128.252.167.106</a>] c<br>etc., etc., with 1 letter per line, but here's the gist:
<br><br>"'Recno' object has no attribute 'max'" in<br>[Fri Jan 18 11:06:17 2008] [error] [client <a href="http://128.252.167.106">128.252.167.106</a>] <bound method Recno.__del__ of <FeatureServer.DataSource.DBM.Recno
object at 0xb7d8bbac>><br>[Fri Jan 18 11:06:17 2008] [error] [client <a href="http://128.252.167.106">128.252.167.106</a>] ignored<br><br>Anyone have any ideas? I would be extremely grateful.<br>-Ed<br>