Ticket #35 (assigned defect)

Opened 1 year ago

Last modified 1 year ago

kmobilo not working with new python?

Reported by: benwah Assigned to: ug (accepted)
Priority: major Milestone:
Component: user_interface Version: 0.5
Keywords: Cc:

Description

I have recently upgraded my Linux operating system (from Ubuntu 6.10 Edgy Eft to Ubuntu 7.04 Feisty fawn) and now when I try to run Kombilo I get the following message:-

Traceback (most recent call last):

File "kombilo.py", line 60, in <module>

from board1 import *

File "/home/benwahwah/kombilo05/board1.py", line 27, in <module>

from whrandom import randint

ImportError?: No module named whrandom

I think this may be that I can only install python 2.4 or 2.5 on my system. If you have any ideas on how to overcome this problem.

Many thanks

benwahwah

Change History

04/21/07 20:22:18 changed by ug

  • status changed from new to assigned.

Unfortunately, the whrandom module has been renamed in recent Python versions. You can fix this by changing

from whrandom import randint

to

from random import randint

in the files v.py (line 45) and board1.py (line 27), both located in the directory where you put Kombilo.

You could also use Python 2.4 instead (by running Kombilo by "python2.4 kombilo.py", say). Version 2.4 will issue a warning about this problem, but otherwise will run fine.