Hello Sucameli. In the shell : Python 2.4.3 (#1, Sep 21 2011, 20:06:00) [GCC 4.1.2 20080704 (Red Hat 4.1.2-51)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import psycopg2 >>> conn = psycopg2.connect("dbname=routing user=postgres") OK .
In Qgis >>> import sys >>> sys.version '2.6.5 (r265:79063, Feb 28 2011, 21:55:56) \n[GCC 4.1.2 20080704 (Red Hat 4.1.2-50)]' Thanks 2011/9/29 Giuseppe Sucameli <sucam...@faunalia.it> > Hi Jules, > > > I've now Install psycopg2 2.4.2 and it run perfectly . > > how do you know it runs? did you try it from the shell? > > On Thu, Sep 29, 2011 at 12:23 PM, Jules Kouadio <seked...@gmail.com> > wrote: > > but i get always the same message when i try to run RT Sql Layer . > > Even in the qgis python console with the phyton command "import" psycopg2 > [[CUT]] > > ImportError: No module named psycopg2 > > To help you we need more info, > the OS you run QGis on, the python version used by QGis. > > I know that some people have throuble on Debian OS after > installing python 2.7 and keeping the 2.6 version installed. > I don't know if your problem may be due to this, just tell us > if the version of python running from the shell it's the same of > the one used by QGis. > > To know the running python version, just open the qgis python > console and run: > > import sys > sys.version > > Regards. > > > > > 2011/9/29 Noli Sicad <nsi...@gmail.com> > >> > >> Download and install psycopg2 2.4.2. > >> > >> It is python package, not part of QGIS or QGIS plugins. > >> > >> Python-PostgreSQL Database Adapter > >> http://pypi.python.org/pypi/psycopg2 > >> > >> Noli > >> > >> > >> On 9/29/11, Jules Kouadio <seked...@gmail.com> wrote: > >> > Hello . > >> > Installation is ok > >> > I get this message when i try to run it > >> > Couldn't import Python module 'psycopg2' for communication with > PostgreSQL > >> > database. > >> > Its the same problem whith Postgis Manager Plugin. > >> > My Os version is centos 5.5 > >> > Qgis version 1.8.0-Trunck > >> > > >> > -- > >> > * > >> > * > >> > > > > > > > > > -- > > > > > > > > > > > > _______________________________________________ > > Qgis-user mailing list > > Qgis-user@lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/qgis-user > > > > > > -- > Giuseppe Sucameli > -- * *
_______________________________________________ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user