Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 91290 - drpython crash
Summary: drpython crash
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-05-03 04:41 UTC by Shiner_Man
Modified: 2007-01-11 22:41 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Shiner_Man 2005-05-03 04:41:28 UTC
After emerge'ing drpython, trying to run drpython throws a fatal error:

Bitmap Directory (/usr/lib/python2.3/site-packages/drpython/bitmaps) Does Not Exist.
This is either a bug with DrPython,
 an error with your installation,
or the bitmap directory was simply removed.

Reproducible: Always
Steps to Reproduce:
1.echo 'dev-python/drpython ~x86' >> /etc/portage/package.keywords
2.emerge drpython
3.drpython

Actual Results:  
Running 'drpython' gave the same error as above:

"Bitmap Directory (/usr/lib/python2.3/site-packages/drpython/bitmaps) Does Not
Exist.
This is either a bug with DrPython,
 an error with your installation,
or the bitmap directory was simply removed."

Expected Results:  
Run

Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130,
glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r6 i686)
=================================================================
System uname: 2.6.11-gentoo-r6 i686 AMD Athlon(tm) XP 3200+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Apr 27 2005, 20:05:29)]
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /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/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo
http://mirror.datapipe.net/gentoo http://gentoo.seren.com/gentoo
http://open-systems.ufl.edu/mirrors/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apm avi berkdb bitmap-fonts cdr crypt curl dvd dvdread emboss
encode esd fam flac foomaticdb fortran gdbm gif gnome gpm gtk gtk2 imagemagick
imlib ipv6 java jpeg junit kde libg++ libwww mad mikmod motif mp3 mpeg ncurses
nls nvidia ogg oggvorbis opengl oss pam pdflib perl png python qt quicktime
readline real samba sdl spell ssl svga tcpd tiff truetype truetype-fonts
type1-fonts vorbis x xml2 xmms xv zlib userland_GNU kernel_linux libc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 Rob Cakebread (RETIRED) gentoo-dev 2005-05-03 08:10:39 UTC
I can't reproduce this. Are we talking about drpython-3.10.12? Which version(s) of wxpython do you have installed?

Does this directory exist?
/usr/lib/python2.3/site-packages/drpython/
Comment 2 Shiner_Man 2005-05-03 16:40:40 UTC
Oh yes, that information would have been usefull in my original post:

wxGTK-2.6.0
wxpython-2.6.0.0
drpython-3.10.12

The directory /usr/lib/python2.3/site-packages/drpython exists but there is no bitmaps subdirectory.
Comment 3 Rob Cakebread (RETIRED) gentoo-dev 2005-05-03 19:51:46 UTC
I just added 3.10.13 to portage today, but I'll be suprised if that works, because both work for me and the ebuild didn't change.

Can you try emerging it again and see if there are any errors displayed that aren't causing the ebuild to fail please? There should be a zillion lines like "copying ./bitmaps/24/..." you should see.

I do notice this one, but it doesn't affect my system:
package init file './__init__.py' not found (or not a regular file)

Comment 4 Shiner_Man 2005-05-04 03:33:49 UTC
I tried re-emerge'ing 3.10.12 but no luck.  The only strange thing during compiling is the __init__.py as you said.  I then tried 3.10.13 but the same thing happened.  Niether even tried to create a bitmaps directory.
Comment 5 Rob Cakebread (RETIRED) gentoo-dev 2005-05-04 10:08:10 UTC
I'm stumped. Its just a simple setup.py but I can't reproduce your error.

There is a report on their forums about the same thing. The only thing I can think of is maybe something in the .zip format is screwing it up, like that __init__.py file having Windows line-endings.

I filed a bug upstream:

http://sourceforge.net/tracker/index.php?func=detail&aid=1195398&group_id=83074&atid=568238
Comment 6 Shiner_Man 2005-05-04 12:47:45 UTC
Well at least its not just me.  I'll keep my eye out as well.  Thanks.
Comment 7 Bryan Østergaard (RETIRED) gentoo-dev 2005-05-05 07:55:05 UTC
I'm curious about your bash version.. It seems that bash-3.0-r10 could cause problems similar to this.

Please upgrade to bash-3.0-r11 if using -r10 and try again.
Comment 8 Shiner_Man 2005-05-05 17:35:49 UTC
I upgraded to bash-3.0-r11, re-emerge'ed drpython.  Same issue.
Comment 9 Pieter Baele 2005-05-10 05:32:52 UTC
same problem here
Comment 10 jon R-B 2005-05-15 09:18:19 UTC
same here???
Comment 11 jon R-B 2005-05-15 09:26:42 UTC
I think I have solved it

following this:
http://sourceforge.net/forum/forum.php?thread_id=1255513&forum_id=283803

I checked wot had got installed and bitmaps and docs do not.
SO I checked the *.zip d/l from the drpython site and it has these directories.
I then checked the *.zip that portage d/l and it to contains these directories GREAT!!!

So it looks like the ebuild just doesnt cp these directories into the sandboxed install location.

Could that be added to the ebuild?
Comment 12 Rob Cakebread (RETIRED) gentoo-dev 2005-05-15 10:13:21 UTC
Its installed via distutils' setup.py but fails for a very small percentage of people. Where is the fix you mention?
Comment 13 Shiner_Man 2005-05-16 04:47:56 UTC
Maybe if we compare our 'emerge info' results between people who have the issue and people who don't we may get a clue as to whats causing this.  What do you think?
Comment 14 Peter Fein 2005-05-19 17:02:10 UTC
Same.  I also noticed in the log:

/usr/lib/python2.3/distutils/dist.py:227: UserWarning: Unknown distribution
option: 'package_data'
  warnings.warn(msg)

According to the python docs, package_data is a new option in 2.4's distutils:
http://www.python.org/doc/2.4.1/dist/node11.html

Drpython seems to run just fine under 2.3.4, except for install. I manually
copied the bitmaps dir from the archive.  Perhaps a patch to the setup.py?  I'm
not familar enough with distutils to do this, but data_files looked promising...

Python 2.3.4-r1
drpython 3.10.13

Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5, glibc-2.3.4.20040808-r1,
2.6.11-gentoo-r3 i686)
=================================================================
System uname: 2.6.11-gentoo-r3 i686 Intel(R) Pentium(R) 4 CPU 1.80GHz
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Mar 11 2005, 17:34:27)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4-r1
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -pipe -march=pentium3 -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/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe -march=pentium3 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig buildpkg ccache distlocks sandbox sfperms strict
userpriv usersandbox"
GENTOO_MIRRORS="http://mirrors.acm.cs.rpi.edu/gentoo/
ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://gentoo.llarian.net/
http://open-systems.ufl.edu/mirrors/gentoo http://gentoo.chem.wisc.edu/gentoo/
http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="x86 X alsa apm avi bash-completion berkdb bitmap-fonts cdr crypt cups curl
emacs emboss encode fam foomaticdb fortran gdbm gif gnome gpm gtk gtk2 imlib
ipv6 jpeg ldap libg++ libwww logrotate mad motif mp3 mpeg ncurses nls ogg opengl
pam pcre pdflib perl png postgres ppds python qt quicktime readline ruby sdl
spell ssl startup-notification svga tcltk tcpd tiff truetype truetype-fonts
type1-fonts vdesktop xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 15 Rob Cakebread (RETIRED) gentoo-dev 2005-05-19 19:25:09 UTC
Ah ha, good catch, Peter, thanks. I'm running 2.4.1 and I'd rather not re-emerge
wxpython and everything under 2.3.5 so I was lazy and just copied the bitmaps
manually in the ebuild (fixed in CVS).

It looks like if the bitmaps weren't copied, you guys are also missing out on
the documentation and examples directories. So if someone can verify that, I'll
manually fix that too and then close this. In the meantime I'll report your
discovery upstream.
Comment 16 Peter Fein 2005-05-19 22:34:40 UTC
Yep, that's correct - no docs or examples.  Manual copying worked fine for those
too.  Thanks!
Comment 17 jon R-B 2005-05-20 08:59:24 UTC
yup manual copying of bitmaps and doc works, that was what my post was abt!!
Comment 18 Ben van der Harg 2005-08-15 06:30:16 UTC
Hey,

I first got the error mentioned in this bug, then I copied the files manually
and that worked. But I now have some other problem. The program crashes when I
try to open a python interpreter. It only happens when I open it using the
button or when I click Open a python interpreter in the program menu. The
program doesn't crash when I try to run a python script.

wxPython Version: 2.6.1.0

wxPython Platform: wxGTK, ansi, gtk2, wx-assertions-off

Python Version: 2.3.5.final

Python Platform: linux2

Using Kernel 2.6.11-r9 and KDE 3.4.1

Emerge info :

Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.5-20050130,
glibc-2.3.5-r0, 2.6.11-gentoo-r9 i686)
=================================================================
System uname: 2.6.11-gentoo-r9 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.11
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.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -mcpu=i686"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /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/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo/
http://ftp.snt.utwente.nl/pub/os/linux/gentoo
http://vlaai.snt.ipv6.utwente.nl/pub/os/linux/gentoo/
ftp://mirror.scarlet-internet.nl/pub/gentoo ftp://mirror.nutsmaas.nl/gentoo/"
LINGUAS="nl"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apm arts avi berkdb bitmap-fonts cdr crypt cups curl dvd eds
emboss encode fam foomaticdb fortran gdbm gif gpm gstreamer gtk gtk2 imagemagick
imlib ipv6 java jpeg kde libg++ libwww mad mikmod motif mozilla mp3 mpeg ncurses
nls ogg oggvorbis opengl oss pam pdflib perl png python qt quicktime readline
samba scanner sdl spell ssl svga tcltk tcpd tiff truetype truetype-fonts
type1-fonts usb vorbis xine xml2 xmms xv zlib linguas_nl userland_GNU
kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Comment 19 Tiziano Müller (RETIRED) gentoo-dev 2007-01-11 22:41:34 UTC
Ok, the ebuild copies the stuff manually in addition to the maybe automatic copying.
Fixed.