Hi, I am porting to a new Red Hat system a PostgreSQL database that uses and python & PyGreSQL module for connection, and I am having trouble getting the PyGreSQL working. New system is Red Hat Enterprise Server Rel 6.5. PostgreSQL is 8.4.20. I have Python 2.6.6 and Python 2.7.5 on the system; if I can get either version of Python to with the PyGreSQL that would be great. I have PyGreSQL-4.1.1.-3.Fc22.x86-64.rpm. I am looking for guidance on path of least resistance (i.e. whichever Python I can get it working with it faster). From my errors below, if someone can guide me I best direction to take, I'd really appreciate it.
In Python 2.7 I get error: import pgdb Import Error: /opt/Python/Python-2.7.5/lib/python2.7/site-pakages/_pg.so: undefined symbol: PyUnicodeUCs$_AsLatin1String I thought if I reinstalled Python 2.7.5 using "enable-unicode=ucs4" that would fix the problem, but I still get the error message above after reinstalling Python like this: ./configure -enable-shared --enable-unicode=ucs4 -prefix=/opt/Python/Python-2.7.5 To see if I am at ucs2 or ucs4, I did: import sys print sys.maxunicode 65535 In Python 2.6 I get error: import pgdb Import Error: /usr/lib64/python2.6/site-packages/_pg.so: undefined symbol: PQescapeLiteral My Python 2.6 installation is ucs4, if that matters: import sys print sys.maxunicode 111411 I saw reference to setting "escaping-funcs=0" in archive (when using PostgreSQL older than 9.x), but I am unsure if the .rpm I have already has that update in it or not. If not, I don't see what file I would add it to. If that is next step, can someone point me to the file in .rpm to update (or whatever other file)? Alas, prior Red Hat system was already configured with all the software, so I didn't have to install any of the software on the old system. -Lisa The information contained in this communication is confidential, is intended only for the use of the recipient(s) named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, please re-send this communication to the sender and delete the original message or any copy of it from your computer system.
_______________________________________________ PyGreSQL mailing list [email protected] https://mail.vex.net/mailman/listinfo.cgi/pygresql
