Import error using pyPgSQL
"Kincaid, Larry" <[email protected]> Mon, 7 Feb 2005 14:10:58 -0700
| Newsgroups | gmane.comp.python.db.pypgsql.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Folks- I know there's probably an easy answer to this question but it's not coming to me so I thought I'd ask for help. I think I've successfully built and installed the pyPgSQL module and I know for sure libpq is installed and working because I've used it in a small C program interfacing with my PostgreSQL database. However, in my Python code, the line "from pyPgSQL import PgSQL" causes an error "ImportError: /usr/lib/python2.3/site-packages/pyPgSQL/libpq/libpqmodule.so: undefined symbol: lo_export". Any ideas? This is on a PC running Linux Fedora Core 2, Python 2.3 and PostgreSQL 7.3.4. I can always call the C program from Python and that works fairly well but at this point I'm exploring options. Plus, to be honest, it's a little annoying that one way works and the other doesn't so now I'm curious as to why. Any help, thoughts or suggestions would be greatly welcomed. - larry Larry Kincaid Sandia National Laboratories [email protected] (505) 845-0125