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:32:25 am you wrote: > Hei, > Thanks for your mail.I have already add psycopg2-2.013 > directory to the the PYTHONPATH.But Its not working. > What you are thinking about this? > > I am CC'ing the list, so more eyes can see this. The psycopg1.py is not finding _psycopg.so so either it is not looking in the right place, hence the question about PYTHONPATH, or _psycopg.so does not exist. I would put run sys.path in your test11.py and print the results to make sure your psycopg2 installation is being found. Have you actually built psycopg2 or are you trying to run off the source directory? If it was not actually compiled than there would not be a _psycopg.so file. -- Adrian Klaver [email protected]