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

Bug 480846

Summary: games-puzzle/gnome-sudoku: traceback when default python interpreter != 2.x
Product: Gentoo Linux Reporter: Dieter Verfaillie <dieterv>
Component: [OLD] GNOMEAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED FIXED    
Severity: normal CC: aklhfex
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 463242    

Description Dieter Verfaillie 2013-08-13 07:45:44 UTC
dieterv@localhost ~ $ emerge -pvt gnome-sudoku

These are the packages that would be merged, in reverse order:

Calculating dependencies... done!
[ebuild   R    ] games-puzzle/gnome-sudoku-3.8.1  PYTHON_SINGLE_TARGET="python2_7 -python2_6" PYTHON_TARGETS="python2_6 python2_7" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB



dieterv@localhost ~ $ eselect python list
Available Python interpreters:
  [1]   python2.6
  [2]   python2.7
  [3]   python3.2
  [4]   python3.3 *



dieterv@localhost ~ $ gnome-sudoku 
Traceback (most recent call last):
  File "/usr/games/bin/gnome-sudoku", line 19, in <module>
    from lib.gnome_sudoku import start_game
ImportError: No module named 'lib'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/games/bin/gnome-sudoku", line 21, in <module>
    from gnome_sudoku.gnome_sudoku import start_game
ImportError: No module named 'gnome_sudoku'



# But this works:
dieterv@localhost ~ $ python2.7 /usr/games/bin/gnome-sudoku



# Aha, the shebang takes whatever python interpreter (defaults to 3.3 on my system)
dieterv@localhost ~ $ cat /usr/games/bin/gnome-sudoku
#! /usr/bin/env python


Reproducible: Always
Comment 1 Gilles Dartiguelongue (RETIRED) gentoo-dev 2013-08-25 17:41:46 UTC
+  25 Aug 2013; Gilles Dartiguelongue <eva@gentoo.org>
+  gnome-sudoku-3.8.1.ebuild:
+  Fix shebang, bug #480846.

Thanks for reporting.