Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 304799 - sci-libs/scipy-0.7.1 backport fix for a bug request
Summary: sci-libs/scipy-0.7.1 backport fix for a bug request
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Science Related Packages
URL: http://projects.scipy.org/scipy/ticke...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-13 01:49 UTC by Lukasz Ligowski
Modified: 2010-02-25 04:06 UTC (History)
0 users

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


Attachments
scipy-0.7.1-weave.patch (scipy-0.7.1-weave.patch,413 bytes, patch)
2010-02-17 06:29 UTC, Sébastien Fabbro (RETIRED)
Details | Diff
ebuild that works for me (scipy-0.7.1-r1.ebuild,4.12 KB, text/plain)
2010-02-19 18:18 UTC, Lukasz Ligowski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lukasz Ligowski 2010-02-13 01:49:51 UTC
There is annoying bug in scipy that disables some of the functionality (like scipy.weave) of the package when using with python 2.6+.

Problem is that scipy 0.7.1 is most recent version and last version was half year ago.

I wonder if it will get accepted if I test patch mentioned in this ticket and modify gentoo ebuild to include it?



There is simple fix for that and I wonder if it would be included if I extracted it from se

Reproducible: Always

Steps to Reproduce:
1. start python
2. type:
>>> from scipy import weave
3. type:
>>> weave.inline('printf("3\n");')

Actual Results:  
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib64/python2.6/site-packages/scipy/weave/inline_tools.py", line 321, in inline
    results = attempt_function_call(code,local_dict,global_dict)
  File "/usr/lib64/python2.6/site-packages/scipy/weave/inline_tools.py", line 389, in attempt_function_call
    function_list = function_catalog.get_functions(code,module_dir)
  File "/usr/lib64/python2.6/site-packages/scipy/weave/catalog.py", line 612, in get_functions
    function_list = self.get_cataloged_functions(code)
  File "/usr/lib64/python2.6/site-packages/scipy/weave/catalog.py", line 526, in get_cataloged_functions
    if cat is not None and code in cat:
  File "/usr/lib64/python2.6/shelve.py", line 110, in __contains__
    return key in self.dict
  File "/usr/lib64/python2.6/site-packages/scipy/io/dumbdbm_patched.py", line 73, in __getitem__
    pos, siz = self._index[key] # may raise KeyError
KeyError: 0

Expected Results:  
definitely not traceback

I can do everything that's needed to make/test this. I would like to see id merged into portage tree so I dont have to maitain my own overlay ;)

Just point me in the right direction.
Comment 1 Lukasz Ligowski 2010-02-13 01:51:23 UTC
Ticket URL:
http://projects.scipy.org/scipy/ticket/855

(it's not visible much on the top of a page)
Comment 2 Sébastien Fabbro (RETIRED) gentoo-dev 2010-02-17 06:29:39 UTC
Created attachment 219963 [details, diff]
scipy-0.7.1-weave.patch

Could you try this patch from upstream? weave seems to be very buggy on my box no matter what I try.
Thanks,
Comment 3 Lukasz Ligowski 2010-02-19 18:18:04 UTC
Created attachment 220381 [details]
ebuild that works for me

(In reply to comment #2)
> Created an attachment (id=219963) [details]
> scipy-0.7.1-weave.patch
> 
> Could you try this patch from upstream? weave seems to be very buggy on my box
> no matter what I try.
> Thanks,
> 

It works when doing:
weave.inline('printf("3\\n");')

I forgot that i dont want to put \n in python char but to pass "\n" sting to C.

Portage 2.2_rc62 (default/linux/amd64/10.0, gcc-4.4.3, glibc-2.10.1-r1, 2.6.31-gentoo x86_64)
=================================================================
System uname: Linux-2.6.31-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7100_@_1.80GHz-with-gentoo-1.12.13
Timestamp of tree: Fri, 19 Feb 2010 15:00:22 +0000
app-shells/bash:     4.0_p35
dev-java/java-config: 1.3.7-r1, 2.1.10
dev-lang/python:     2.6.4-r1, 3.1.1-r1
dev-python/pycrypto: 2.1.0_beta1
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.20.51.0.5
sys-devel/gcc:       4.3.3-r2, 4.4.1, 4.4.2, 4.4.3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA PUEL"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="pl_PL.UTF-8"
LC_ALL="pl_PL.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en pl"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 amr apache2 audiofile avahi avi bash-completion bzip2 cddb cdparanoia cdr cli consolekit cracklib crypt cscope cups cxx dbus djvu doc dri dts dvd dvdr dvdread encode examples exif fam ffmpeg flac fortran freetype gdbm gif hal htmlhandbook iconv imagemagick ipv6 jabber jpeg kde kdehiddenvisibility logrotate mad memlimit mime mmap mmx modules mp3 mpeg mudflap multilib musicbrainz ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf png policykit posix pppd python qt4 rdesktop readline reflection session skey sndfile source spell spl sse sse2 ssl svg sysfs tetex theora threads tiff truetype unicode usb userlocales v4l v4l2 vcd vim-syntax vorbis wifi x264 xcomposite xinerama xorg xpm xv xvid zeroconf zlib" ALSA_CARDS="cmi8330" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CAMERAS="canon" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en pl" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia nv"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 Sébastien Fabbro (RETIRED) gentoo-dev 2010-02-25 04:06:40 UTC
in cvs then.
Thanks.