Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 109122 - scientificpython-2.4.3 fails with Python 2.4.2 (patch included)
Summary: scientificpython-2.4.3 fails with Python 2.4.2 (patch included)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-13 04:59 UTC by Jakob Schiotz
Modified: 2005-10-16 14:04 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
A patch fixing the bug (scientific.patch,521 bytes, patch)
2005-10-13 05:01 UTC, Jakob Schiotz
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jakob Schiotz 2005-10-13 04:59:58 UTC
There is a syntax error in one of the files in scientificpython-2.4.3.  The
error is detected by the newest Python, and the MPI module fails to load (the
module should load even if MPI is not available, since it is used to test for
availability of MPI.  The error is in the fallback code being executed if MPI is
not available).

Python 2.4.2 (#1, Oct 13 2005, 11:49:59)
[GCC 3.3.6 (Gentoo 3.3.6, ssp-3.3.6-1.0, pie-8.7.8)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import Scientific.MPI
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python2.4/site-packages/Scientific/MPI/__init__.py", line 1, in ?
    from core import *
  File "/usr/lib/python2.4/site-packages/Scientific/MPI/core.py", line 318
    def receiveString(self, None, source=None, tag=None):
SyntaxError: Invalid syntax.  Assignment to None.


The error is very easy to correct, I have attached a patch.


Reproducible: Always
Steps to Reproduce:
1. Start python
2. import Scientific.MPI
3.

Actual Results:  
A SyntaxError exception.


Expected Results:  
Loaded the MPI module with only one processor available


demokrit ~ # emerge info
Portage 2.0.51.22-r3 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r2,
2.6.13-gentoo-r3 i686)
=================================================================
System uname: 2.6.13-gentoo-r3 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 2.00GHz
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
DISTDIR="/var/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/
ftp://trumpetti.atm.tut.fi/gentoo/ ftp://ftp.rhnet.is/pub/gentoo/
ftp://gd.tuwien.ac.at/opsys/linux/gentoo/"
LINGUAS="dk"
MAKEOPTS="-j2"
PKGDIR="/var/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/portage-marving"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X Xaw3d acpi alsa atlas avi berkdb bitmap-fonts cdr crypt cups curl dga
dvd eds emacs emboss encode fam flac font-server foomaticdb fortran gd gdbm gif
gpm gstreamer gtk gtk2 imagemagick imap imlib java jpeg kde kdeenablefinal
kdexdeltas libg++ libwww mad maildir mbox mikmod mime motif mozilla mp3 mpeg
mule ncurses netcdf nls nptl ogg oggvorbis opengl oss pam pcmcia pdflib perl
plotutils png pnp ppds python qt quicktime readline real scanner sdl smime spell
sse sse2 ssl svga tcltk tcpd tetex tiff truetype truetype-fonts trusted
type1-fonts usb vorbis win32codecs wxwindows xine xml2 xmms xv xvid zlib
linguas_dk userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 1 Jakob Schiotz 2005-10-13 05:01:24 UTC
Created attachment 70556 [details, diff]
A patch fixing the bug

This patch fixes the syntax error.  It is already fixed in version 
2.5.4 (not yet in portage).
Comment 2 Bryan Østergaard (RETIRED) gentoo-dev 2005-10-16 14:04:29 UTC
Stabled 2.4.9 which fixes this issue.