[Featureserver] FeatureServer connection to PostGIS

Brent Pedersen bpederse at gmail.com
Thu Jul 12 16:05:54 EDT 2007


not sure if this is the problem, but the latest version of that module
is psycopg2. you could try changing the import in postGIS.py to
reflect that.
-brent

On 7/12/07, Ed Fialkowski <edfialk at gmail.com> wrote:
> Hello, I have set up postGIS and I'm trying to connect FeatureServer to it.
> I have installed psycopg the best I can and run some tests that passed so I
> assume it's working okay.
>
> When I do a WFS request in the browser, I get:
>
>
>  An error occurred: No module named psycopg
>  File "./FeatureServer/Server.py", line 200, in cgiHandler
>  service = Server.load(*cfgfiles)
>  File "./FeatureServer/Server.py", line 44, in _load
>
>  datasources[section] = cls.loadFromSection(
>  File "./FeatureServer/Server.py", line 22, in _loadFromSection
>  module = __import__("%s.%s" % (module_type, type), globals(), locals(),
> type)
>
>  File "./FeatureServer/DataSource/PostGIS.py", line 3, in ?
>  import psycopg, copy, re, ogr
>
>
>
> Anyone know if there's a step in between after installing psycopg, like if I
> have to do anything in FeatureServer?
> Thanks for any help!
> -Ed
>
>
>
> _______________________________________________
> Featureserver mailing list
> Featureserver at openlayers.org
> http://featureserver.org/mailman/listinfo/featureserver
>
>



More information about the Featureserver mailing list