[Qgis-user] plug-ins
Chang, Elizabeth
Elizabeth.Chang at noblis.org
Tue Oct 21 18:28:05 PDT 2008
I was running 1.0 but I just switched to 0.11 and had some luck with New
Layer plug-in after installing psycopg version 1. Thanks for the tip.
It installed successfully but when I tried to connect to my database, I
got an error, I think, due to PostGIS being on a Linux server, not my
machine.
________________________________________________
An error has occured while executing Python code:
Traceback (most recent call last):
File "C:/Documents and
Settings/m29308/.qgis//python/plugins\newlayer\newlayer.py", line 50, in
run
con = psycopg.connect(str(dsn[0]))
OperationalError: could not connect to server: Connection refused
(0x0000274D/10061)
Is the server running on host "???" and accepting
TCP/IP connections on port 5432?
_______________________________________________________
For the PostGPS plugin that needs psycopg2, is the psycopg and psycopg2
module version 1, and version 2, respectively? When I downloaded psycopg
v. 2.0.8 from the stickpeople site, I didn't see any modules called
psycopg2. There were some files called psycopg1.p* under a directory
called psychopg2.
Thanks so much for your help.
Elizabeth
-----Original Message-----
From: Richard Duivenvoorde [mailto:rdmailings at duif.net]
Sent: Tuesday, October 21, 2008 4:40 PM
To: Chang, Elizabeth
Cc: qgis-user at lists.osgeo.org
Subject: Re: [Qgis-user] plug-ins
Hi,
what versions are you running?
I'm running here on winXP, qgis 0.11 (metis). You should not try out
python plugins in 1.0 preview yet because the api is still moving on,
thereby making some plugins look buggy (while they were working a few
svn-versions ago ;-) ).
Anyway,
On 0.11/XP I am able to install PostGPS fine, it doesn't look to have
dependecies here... Mmm, nope it needs psycopg2, and apparently it's
installed in my python. But you can find it here:
http://www.stickpeople.com/projects/python/win-psycopg/#Version1
NewLayer has indeed a psycopg dependency. For windows you can find
packages here:
http://www.stickpeople.com/projects/python/win-psycopg/#Version1
But probably you have a more current postgis version then psycopg
handles, so maybe it's a nice starting project to 'port' it to psycopg2
:-) (shouldn't be that much trouble, start with changing all 'psycopg'
in 'psycopg2' in newlayer.py...).
(by the way, psycopg(2) are python packages, needed to make
python-database connections to postgis.
Pypostgis has gdal-dependencies, but I have no experience with that on
windows. Hopefully others have.
Good Luck,
Richard Duivenvoorde
Chang, Elizabeth wrote:
> I'm trying to install any of the following 3 plugins in a Windows XP
> machine.
>
>
>
> - PostGPS
>
> - NewLayer
>
> - Pypostgis
>
>
>
> For each of them, there is some dependency I can't find in a windows
> version or just not recognizing them if they are there. I was
wondering
> if there are people who have been successful installing these in
Windows
> and if so, if you also had problems installing.
>
>
>
>
>
> Thanks,
>
> Elizabeth
>
>
>
------------------------------------------------------------------------
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
More information about the Qgis-user
mailing list