Bug 62933

Summary: posgresql-python: import pg traceback
Product: [Retired] Red Hat Public Beta Reporter: David M. Cook <dcook>
Component: postgresqlAssignee: Trond Eivind Glomsrxd <teg>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: skipjack-beta2   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-04-08 03:51:03 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description David M. Cook 2002-04-08 00:39:10 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.79 [en] (X11; U; Linux 2.4.18-0.8 i586)

Description of problem:
When importing pg, get the following traceback:

[dmcook@localhost tmp]$ /sbin/service postgresql status
postmaster (pid 16664 16663 16661) is running...
[dmcook@localhost tmp]$ python -v -c 'import pg'
# /usr/lib/python1.5/exceptions.pyc matches /usr/lib/python1.5/exceptions.py
import exceptions # precompiled from /usr/lib/python1.5/exceptions.pyc
# /usr/lib/python1.5/site.pyc matches /usr/lib/python1.5/site.py
import site # precompiled from /usr/lib/python1.5/site.pyc
# /usr/lib/python1.5/os.pyc matches /usr/lib/python1.5/os.py
import os # precompiled from /usr/lib/python1.5/os.pyc
import posix # builtin
# /usr/lib/python1.5/posixpath.pyc matches /usr/lib/python1.5/posixpath.py
import posixpath # precompiled from /usr/lib/python1.5/posixpath.pyc
# /usr/lib/python1.5/stat.pyc matches /usr/lib/python1.5/stat.py
import stat # precompiled from /usr/lib/python1.5/stat.pyc
# /usr/lib/python1.5/UserDict.pyc matches /usr/lib/python1.5/UserDict.py
import UserDict # precompiled from /usr/lib/python1.5/UserDict.pyc
Python 1.5.2 (#1, Mar 26 2002, 17:37:49)  [GCC 2.96 20000731 (Red Hat Linux 7.2
2 on linux-i386
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
# /usr/lib/python1.5/site-packages/pg.pyc matches
/usr/lib/python1.5/site-packages/pg.py
import pg # precompiled from /usr/lib/python1.5/site-packages/pg.pyc
Traceback (innermost last):
  File "<string>", line 1, in ?
  File "/usr/lib/python1.5/site-packages/pg.py", line 7, in ?
    from _pg import *
ImportError: /usr/lib/python1.5/site-packages/_pgmodule.so: undefined symbol:
_PyString_Join


Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1.python -v -c 'import pg'
2.
3.
	

Actual Results:  Get a traceback.	

Expected Results:  Module pg ready for use.

Additional info:

This is a system that was upgraded from 7.2.92 to 7.2.93 via RHN.   Current
python and postgresql packages are:

postgresql-python-7.2.1-2
python-1.5.2-37
postgresql-libs-7.2.1-2
postgresql-7.2.1-2
postgresql-devel-7.2.1-2
postgresql-server-7.2.1-2

Comment 1 David M. Cook 2002-04-08 03:50:58 UTC
_PyString_Join is used on line 143 of Eliot Lee's betterquote patch,
postgresql-7.2rc2-betterquote.patch.  Looks like _PyString_Join is a python2
thing, though.

Comment 2 Trond Eivind Glomsrxd 2002-04-08 14:52:21 UTC
Fixed in 7.2.1-3