Re: Cant import psycopg2
Adrian Klaver <[email protected]>
| Newsgroups | gmane.comp.python.db.psycopg.devel |
|---|---|
| Message-ID | <[email protected]> |
On Tuesday 01 December 2009 7:04:37 am Md.Atiqur Rahman wrote: > Hi, > I am using python 2.5, postgreSQL 8.4 and psycopg2-2.013.I use pydev > eclipse and add this psycopg2-2.013 folder to use.But I cant get connection > with my database.It shows following error: > > Traceback (most recent call last): > File "F:\JavaWorkspace\Test\src\test11.py", line 1, in <module> > import psycopg1 > File "C:\Users\Romance\Desktop\psycopg2-2.0.13\lib\psycopg1.py", line 23, > in <module> import _psycopg as _2psycopg > ImportError: No module named _psycopg > > Can anybody help me in this regards. > > cheers, > Rahman Did you install psycopg2 system wide? If not then the problem is that _psycopg is not in PYTHONPATH. Looks like you might need to add the psycopg2-2.013 directory to the the PYTHONPATH. -- Adrian Klaver [email protected]