Difficulty using pypgsql rpm
"Stanley A. Klein" <[email protected]>
| Newsgroups | gmane.comp.python.db.pypgsql.user |
|---|---|
| Message-ID | <[email protected]> |
I've been having a problem using pyPgSQL as installed from the rpms on a
Red Hat 7.2 system. I have been trying to bring up GNU Enterprise 0.4
(www.gnuenterprise.org) for which pyPgSQL is one of the possible supported
database drivers.
When I try to bring up GNUe Designer, I get an error message to the effect
that the database driver isn't there. I tried going into Python directly
(I'm running Python 2.1) and doing "from pyPgSQL import PgSQL" as suggested
for diagnosis by a member of the GNUe Core Team. When I do, I get the
following traceback:
Python 2.1.2 (#1, Feb 1 2002, 15:17:37)
[GCC 2.96 20000731 (Red Hat Linux 7.1 2.96-98)] on linux2
Type "copyright", "credits" or "license" for more information.
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/lib/python2.1/site-packages/pyPgSQL/PgSQL.py", line 330, in ?
from libpq import *
File "/usr/lib/python2.1/site-packages/pyPgSQL/libpq/__init__.py", line
23, in ?
from libpq import *
ImportError: : shared object not open
BTW, I got pyPgSQL to appear in python2.1/site-packages by a symbolic link
from where it installs under the rpm as provided.
I looked at the rpm spec file and the setup.py file in the tarball. There
are aome alternatives provided for the library and include directories.
The Red Hat installation places its directories consistent with second
alternative (commented out in the distributed setup.py).
What do I need to do to get pypgsql working on my Red Hat 7.2 system? Can
you provide me a set of directions?
Also, the rpm dependencies specify python2. Python 2.1 does not qualify
under the dependency as stated. You may want to specify something like
python >= 2. Likewise, my python2.1 requires that it be invoked as
python2.1, not python2. Is a symbolic link required there?
Stan Klein
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf