The only condition I can think of is that I have PYTHONPATH set for my
private installations:

  : ; echo $PYTHONPATH 
  
/home/levitte/.private-install/usr/lib/python2.5/site-packages:/home/levitte/.private-install/usr/lib/python2.5

That *shouldn't* make a difference as far as I can understand, or?
Here's the content if those directories:

  : ; ls -R /home/levitte/.private-install/usr/lib/python2.5
  /home/levitte/.private-install/usr/lib/python2.5:
  site-packages
  
  /home/levitte/.private-install/usr/lib/python2.5/site-packages:
  becommands  Bugs_Everywhere-0.0.193.egg-info  libbe
  
  /home/levitte/.private-install/usr/lib/python2.5/site-packages/becommands:
  assign.py    diff.pyc        list.py   set.pyc       target.py
  assign.pyc   help.py         list.pyc  set_root.py   target.pyc
  close.py     help.pyc        new.py    set_root.pyc  upgrade.py
  close.pyc    __init__.py     new.pyc   severity.py   upgrade.pyc
  comment.py   __init__.pyc    open.py   severity.pyc
  comment.pyc  inprogress.py   open.pyc  show.py
  diff.py      inprogress.pyc  set.py    show.pyc
  
  /home/levitte/.private-install/usr/lib/python2.5/site-packages/libbe:
  arch.py     cmdutil.py   git.py        mapfile.py   no_rcs.py   restconvert.py
  arch.pyc    cmdutil.pyc  git.pyc       mapfile.pyc  no_rcs.pyc  
restconvert.pyc
  bugdir.py   config.py    hg.py         mtn.py       plugin.py   tests.py
  bugdir.pyc  config.pyc   hg.pyc        mtn.pyc      plugin.pyc  tests.pyc
  bzr.py      diff.py      __init__.py   names.py     rcs.py      utility.py
  bzr.pyc     diff.pyc     __init__.pyc  names.pyc    rcs.pyc     utility.pyc

However, if I start the original krank (I made a copy to krank.orig)
with PYTHONPATH cleared, it works perfectly:

  : ; PYTHONPATH= krank.orig
  krank version 07

Either way, /usr/share/games/krank isn't in the default path:

  : ; python -c 'import sys
  print sys.path'
  ['', '/home/levitte/.private-install/usr/lib/python2.5/site-packages', 
'/home/levitte/.private-install/usr/lib/python2.5', '/usr/lib/python2.5', 
'/usr/lib/python2.5/plat-linux2', '/usr/lib/python2.5/lib-tk', 
'/usr/lib/python2.5/lib-dynload', '/usr/local/lib/python2.5/site-packages', 
'/usr/lib/python2.5/site-packages', '/usr/lib/python2.5/site-packages/Numeric', 
'/usr/lib/python2.5/site-packages/PIL', 
'/usr/lib/python2.5/site-packages/gst-0.10', 
'/var/lib/python-support/python2.5', 
'/var/lib/python-support/python2.5/pyinotify', 
'/usr/lib/python2.5/site-packages/gtk-2.0', 
'/var/lib/python-support/python2.5/gtk-2.0', 
'/usr/lib/python2.5/site-packages/wx-2.6-gtk2-unicode']
  : ; PYTHONPATH= python -c 'import sys
  print sys.path'
  ['', '/home/levitte', '/usr/lib/python2.5', '/usr/lib/python2.5/plat-linux2', 
'/usr/lib/python2.5/lib-tk', '/usr/lib/python2.5/lib-dynload', 
'/usr/local/lib/python2.5/site-packages', '/usr/lib/python2.5/site-packages', 
'/usr/lib/python2.5/site-packages/Numeric', 
'/usr/lib/python2.5/site-packages/PIL', 
'/usr/lib/python2.5/site-packages/gst-0.10', 
'/var/lib/python-support/python2.5', 
'/var/lib/python-support/python2.5/pyinotify', 
'/usr/lib/python2.5/site-packages/gtk-2.0', 
'/var/lib/python-support/python2.5/gtk-2.0', 
'/usr/lib/python2.5/site-packages/wx-2.6-gtk2-unicode']

... so I can only conclude that krank has something in it, or imports
something that's sensitive to added directories in the python path...

Cheers,
Richard

In message <20090308210412.gh6...@work.uvw.ru> on Mon, 9 Mar 2009 00:04:12 
+0300, "Dmitry E. Oboukhov" <un...@debian.org> said:

unera> tags 518825 unreproducible moreinfo
unera> thanks
unera> 
unera> Please tell me the conditions for reproducing this bug.
unera> :)
unera> 
unera> 
unera> On 21:37 Sun 08 Mar     , Richard Levitte wrote:
unera> RL> Package: krank
unera> RL> Version: 0.7+dfsg1-3
unera> RL> Severity: grave
unera> RL> Tags: patch
unera> RL> Justification: renders package unusable
unera> 
unera> RL> Hi,
unera> 
unera> RL> This program will stop with the following error:
unera> 
unera> RL> krank version 07
unera> RL> Traceback (most recent call last):
unera> RL> File "/usr/lib/krank/Main.py", line 9, in <module>
unera> RL> from World  import *
unera> RL> File "/usr/lib/krank/World.py", line 8, in <module>
unera> RL> from Level  import *
unera> RL> File "/usr/lib/krank/Level.py", line 2, in <module>
unera> RL> import k, levels
unera> RL> ImportError: No module named levels
unera> 
unera> RL> The attached patch fixes the problem.
unera> 
unera> RL> -- System Information:
unera> RL> Debian Release: squeeze/sid
unera> RL> APT prefers unstable
unera> RL> APT policy: (500, 'unstable')
unera> RL> Architecture: i386 (i686)
unera> 
unera> RL> Kernel: Linux 2.6.28-1-686 (SMP w/1 CPU core)
unera> RL> Locale: LANG=sv_SE.utf8, LC_CTYPE=sv_SE.utf8 (charmap=UTF-8)
unera> RL> Shell: /bin/sh linked to /bin/bash
unera> 
unera> RL> Versions of packages krank depends on:
unera> RL> ii  python-pygame           1.7.1release-4.2 SDL bindings for games 
development
unera> RL> ii  ttf-dejavu              2.28-2           Metapackage to pull in 
ttf-dejavu-
unera> 
unera> RL> krank recommends no packages.
unera> 
unera> RL> krank suggests no packages.
unera> 
unera> RL> -- debconf-show failed
unera> --
unera> ... mpd is off
unera> 
unera> . ''`.                               Dmitry E. Oboukhov
unera> : :’  :   email: un...@debian.org jabber://un...@uvw.ru
unera> `. `~’              GPGKey: 1024D / F8E26537 2006-11-21
unera>   `- 1B23 D4F8 8EC0 D902 0555  E438 AB8C 00CF F8E2 6537



--
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to