Bug 682575 - yum update produces undefined symbol PyUnicodeUCS4_AsUTF8String
Summary: yum update produces undefined symbol PyUnicodeUCS4_AsUTF8String
Keywords:
Status: CLOSED CANTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: python
Version: 14
Hardware: i686
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Dave Malcolm
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-06 20:52 UTC by George R. Goffe
Modified: 2011-03-11 14:11 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-03-08 00:04:36 UTC
Type: ---


Attachments (Terms of Use)

Description George R. Goffe 2011-03-06 20:52:53 UTC
Description of problem:

yum update produces undefined symbol PyUnicodeUCS4_AsUTF8String

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

System is yum fc14 up to date

How reproducible:

Always

Steps to Reproduce:
1.type in yum update
2.
3.
  
Actual results:

see error messages below

Expected results:

successful yum update of system

Additional info:

Here's a complete "log" of the problem.

shooter bash-4.1 /opt# yum update
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

   /usr/lib/python2.7/site-packages/rpm/_rpmmodule.so: undefined symbol: PyUnicodeUCS4_AsUTF8String

Please install a package which provides this module, or
verify that the module is installed correctly.

It's possible that the above module doesn't match the
current version of Python, which is:
2.7.1+ (release27-maint:88500, Feb 22 2011, 03:25:12) 
[GCC 4.5.1 20100924 (Red Hat 4.5.1-4)]

If you cannot solve this problem yourself, please go to 
the yum faq at:
  http://yum.baseurl.org/wiki/Faq
  

I found a url that may describe the solution to this problem:

http://www.velocityreviews.com/forums/t349304-undefined-symbol-pyunicodeucs4.html

Comment 1 Dave Malcolm 2011-03-07 18:46:15 UTC
Thanks for filing this bug report.

What is the output of running the following commands:

  python -c"import rpm._rpm"


  rpm -qa rpm rpm-python python python-libs


  python -c"import sys; print sys.path"


  eu-readelf -s /usr/lib*/libpython2.*.so.1.0|grep PyUnicodeUCS4_AsUTF8String


  eu-readelf -s /usr/lib*/python2.*/site-packages/rpm/_rpmmodule.so| grep PyUnicodeUCS4_AsUTF8String


  echo $PYTHONPATH 


Thanks

Comment 2 Ignacio Vazquez-Abrams 2011-03-08 00:04:36 UTC
User rebuilt Python in a form incompatible with Fedora-provided C modules (i.e., using UCS-2 instead of UCS-4 as the internal format for unicode strings). As such, there is nothing that we can do to resolve this.

Comment 3 George R. Goffe 2011-03-08 04:07:27 UTC
Ignacio,

Here is the output of the commands you asked me to run above.

George...



./tstpython 
module () {  eval `/usr/bin/modulecmd bash $*`
}
#!/bin/bash -xv

 python -c"import rpm._rpm"
+ python '-cimport rpm._rpm'

 rpm -qa rpm rpm-python python python-libs
+ rpm -qa rpm rpm-python python python-libs
python-libs-2.7-8.fc14.1.i686
rpm-python-4.8.1-5.fc14.i686
python-2.7-8.fc14.1.i686
rpm-4.8.1-5.fc14.i686

 python -c"import sys; print sys.path"
+ python '-cimport sys; print sys.path'
['', '/usr/lib/python27.zip', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/lib/python2.7/site-packages', '/usr/lib/python2.7/site-packages/FontTools', '/usr/lib/python2.7/site-packages/Numeric', '/usr/lib/python2.7/site-packages/PIL', '/usr/lib/python2.7/site-packages/gst-0.10', '/usr/lib/python2.7/site-packages/gtk-2.0', '/usr/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg-info', '/usr/lib/python2.7/site-packages/webkit-1.0', '/usr/lib/python2.7/site-packages/wx-2.8-gtk2-unicode']

 eu-readelf -s /usr/lib*/libpython2.*.so.1.0|grep PyUnicodeUCS4_AsUTF8String
+ grep PyUnicodeUCS4_AsUTF8String
+ eu-readelf -s /usr/lib/libpython2.7.so.1.0
  951: 069bffd0     78 FUNC    GLOBAL DEFAULT       11 PyUnicodeUCS4_AsUTF8String

 eu-readelf -s /usr/lib*/python2.*/site-packages/rpm/_rpmmodule.so| grep PyUnicodeUCS4_AsUTF8String
+ grep PyUnicodeUCS4_AsUTF8String
+ eu-readelf -s /usr/lib/python2.7/site-packages/rpm/_rpmmodule.so
  261: 00000000      0 FUNC    GLOBAL DEFAULT    UNDEF PyUnicodeUCS4_AsUTF8String

 echo $PYTHONPATH 
+ echo


 exit 0
+ exit 0

Comment 4 George R. Goffe 2011-03-08 04:09:12 UTC
Ignacio,

The problem seems to have gone away.

What did you do?

I have made NO changes to the system.

George...

Comment 5 George R. Goffe 2011-03-08 04:12:04 UTC
Ignacio,

By the way, user did NOT build python on this system.

Regards,

George...

Comment 6 Ignacio Vazquez-Abrams 2011-03-08 04:53:22 UTC
The version of Python as reported by yum is not the version provided by Fedora. It is possible that another application on the system has included its own version of Python and that it was loaded into memory when you were trying to use yum. Search the system for the presence of libpython*.so.* to attempt to verify.

Comment 7 George R. Goffe 2011-03-11 14:11:51 UTC
Ignacio,

I'll do this.

Thanks for your help!

George...


Note You need to log in before you can comment on or make changes to this bug.