View previous topic :: View next topic |
Author |
Message |
CrazyCasta n00b
Joined: 01 Sep 2011 Posts: 27
|
Posted: Tue Jun 19, 2012 11:10 pm Post subject: Sudoku with python3 selected |
|
|
Since selecting 3.2 as my active python gnome-sudoku fails with an error about importing lib. I've determined that if I change #! /usr/bin/env python with #! /usr/bin/env python2.7 that everything appears fine. This doesn't seem kosher. Is there a better way to do this? I assume that the next time gnome-games gets re-emerged I'll lose this change. |
|
Back to top |
|
|
avx Advocate
Joined: 21 Jun 2004 Posts: 2152
|
Posted: Wed Jun 20, 2012 2:09 pm Post subject: |
|
|
Can you give the specific error please? It may be a) the needed lib has not been build for python-3.x, so you should try running `python-updater` (read the help before that) or b) the app is written specifically for python-2.x, then you should file a bug. _________________ ++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>. |
|
Back to top |
|
|
CrazyCasta n00b
Joined: 01 Sep 2011 Posts: 27
|
Posted: Sat Jun 23, 2012 7:19 pm Post subject: |
|
|
Sorry, I forgot to mention what I have tried. I tried python-updater, I've also tried rebuilding gnome-games. Neither seems to have done any good. The error is:
Code: | Traceback (most recent call last):
File "/usr/bin/gnome-sudoku", line 41, in <module>
import lib;
ImportError: No module named lib
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/gnome-sudoku", line 48, in <module>
from gnome_sudoku.gnome_sudoku import start_game
ImportError: No module named gnome_sudoku.gnome_sudoku
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/gnome-sudoku", line 52, in <module>
import gtk
ImportError: No module named gtk
Exception AttributeError: 'flush' in <__main__.SafeStdout object at 0x94f3d0> ignored
|
|
|
Back to top |
|
|
hasufell Retired Dev
Joined: 29 Oct 2011 Posts: 429
|
|
Back to top |
|
|
CrazyCasta n00b
Joined: 01 Sep 2011 Posts: 27
|
Posted: Mon Jun 25, 2012 11:01 pm Post subject: |
|
|
Thanks, that works. Ofc it would be nice if that fix were stabilized |
|
Back to top |
|
|
|