Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 100635

Summary: Many python scripts fail with ImportError due to math.so
Product: Gentoo Linux Reporter: Adam <adam>
Component: Current packagesAssignee: Python Gentoo Team <python>
Status: RESOLVED NEEDINFO    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Adam 2005-07-28 13:49:20 UTC
I've discovered that many python scripts are failing with the lines

  File "/usr/lib/python2.4/site-packages/_xmlplus/sax/saxutils.py", line 8, in ?
   import os, urlparse, urllib2, types
  File "/usr/lib/python2.4/urllib2.py", line 93, in ?
    import httplib
  File "/usr/lib/python2.4/httplib.py", line 70, in ?
    import mimetools
  File "/usr/lib/python2.4/mimetools.py", line 6, in ?
    import tempfile
  File "/usr/lib/python2.4/tempfile.py", line 33, in ?
    from random import Random as _Random
  File "/usr/lib/python2.4/random.py", line 44, in ?
    from math import log as _log, exp as _exp, pi as _pi, e as _e
ImportError: /usr/lib/python2.4/lib-dynload/math.so: undefined symbol: PyFPE_jbuf


I've remerged python and the problem persists.  I've searched around google, but
haven't gotten to much help.  I've seen just problems, but not answers.

Reproducible: Always
Steps to Reproduce:




Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r1,
2.6.12-ck3 i686)
=================================================================
System uname: 2.6.12-ck3 i686 AMD Athlon(tm) XP 3200+
Gentoo Base System version 1.6.13
dev-lang/python:     2.4.1-r1
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/init.d /etc/terminfo
/etc/env.d"CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy digest distlocks sandbox sfperms strict userpriv
usersandbox"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo"
MAKEOPTS="-j2"
PKGDIR="/var/pub/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowex 3dnowext S3TC X aac acpi aim alsa ao asm async avi bmp
bzip2 cairo cddb cdr cdrom cjk crypt css cups curl dbus divx4linux dlloader dnd
dvd dvdread edl eds elf encode evo evo2 fam firefox foomaticdb freetype gif
gimpprint gnome gnutls gstreamer gtk gtk2 gtkhtml hal imagemagick ithreads
jabber javascript jpeg libwww mad md5sum mmx mmx2 moznocompose moznoirc
moznomail mp3 mpeg mpeg4 mpi mplayer msn ncurses network nls no_wxgtk1 nocardbus
nocd nodod nowin nptl nptlonly nvidia offensive ogg oggvorbis openal opengl
oscar pdflib pic pie png ppds print python quicktime readline real rhythmbox rtc
sdl session silc slp spamassassin spell src sse ssl stencil-buffer stroke svg
symlink tcpd theora threads truetype truetype-fonts unicode usb userlocales
videos vim vorbis win32codecs xgetdefault xml2 xscreensaver xv xvid yahoo
userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Adam 2005-07-30 22:14:20 UTC
Additional note, I've done some more testing, and I can't seem to reproduce this
with python2.3. Only python2.4 seems to be affected.
Comment 2 Alastair Tse (RETIRED) gentoo-dev 2005-08-01 10:46:52 UTC
i've never seen this happen before. PyFPE is the floating point exception handler (and related parts). i'm 
not quite sure why that is broken on your system. can you include your config.log from the python-2.4 
emerge?
Comment 3 Adam 2005-08-01 11:07:42 UTC
(In reply to comment #2)
> i've never seen this happen before. PyFPE is the floating point exception
handler (and related parts). i'm 
> not quite sure why that is broken on your system. can you include your
config.log from the python-2.4 
> emerge?

Where would I find that?  I did a locate config.log|grep python and found
nothing.  I'm assuming I'll have to remerge it, and catch something?
Comment 4 Alastair Tse (RETIRED) gentoo-dev 2006-09-02 05:14:07 UTC
i'm not sure whether this bug is still relevant. but you can get the config.log from /var/tmp/portage/python-*/work/Python*/config.log. I'm closing this as needinfo for the moment because no one else has run across this.