You are not logged in.

#1 2011-11-05 13:29:02

unclemike
Member
From: it_IT
Registered: 2011-06-01
Posts: 12

omnitux problem (python version?)

Hi,
I would install omnitux for my niece, built from aur, and I got the following error

File "menu.py", line 35
print "Impossible to write inside the log file (" + constants.log_file + "). Game will nevertheless try to run."
^
SyntaxError: invalid syntax

I changed /usr/share/omnitux/omnitux.sh last line from

python menu.py $*

to

python2 menu.py $*

Then I got this error

2011-11-05 12:59:39.959877	INFO	Starting Omnitux

2011-11-05 12:59:39.960034	INFO	Mixer pre init

2011-11-05 12:59:39.960113	INFO	pygame init

2011-11-05 12:59:40.164614	INFO	Trying to switch to fullscreen

2011-11-05 12:59:40.164729	INFO	No user parameters => using current desktop resolution

2011-11-05 12:59:40.299796	INFO	Success for opening in fullscreen

2011-11-05 12:59:40.302270	INFO	Omnitux release = complete

2011-11-05 12:59:40.302407	INFO	Version = 1.2.0

2011-11-05 12:59:40.302473	INFO	Showing screen

2011-11-05 12:59:40.330727	INFO	Run_Screen Super class initialization

2011-11-05 12:59:40.330849	INFO	Language = it

2011-11-05 12:59:40.330925	INFO	Loading tag definitions

2011-11-05 12:59:40.344611	INFO	Header structure looks ok

Traceback (most recent call last):
  File "menu.py", line 811, in <module>
    Run_Menu(globalvars) 
  File "menu.py", line 470, in __init__
    self.current_page = Page_menu(globalvars, tag_defs)
  File "menu.py", line 129, in __init__
    ui.Page.__init__(self, globalvars, background, "FILL")
  File "/usr/share/omnitux/bin/ui.py", line 97, in __init__
    self.mouse_component_pointer = Image(self, constants.mouse_initial_pos, constants.mouse_size, constants.mouse_pointer)
  File "/usr/share/omnitux/bin/ui.py", line 912, in __init__
    self.update()			
  File "/usr/share/omnitux/bin/ui.py", line 919, in update
    (self.surface, self.original_size) = load_image(self.image_file, (max_width, max_height), self.mode, self.page)
  File "/usr/share/omnitux/bin/ui.py", line 1252, in load_image
    buf = gtk.gdk.pixbuf_new_from_file_at_size(file, desired_width, desired_height)
TypeError: integer argument expected, got float

now, I don't know if this error is related to python version or what,

any idea?

thank you wink

Offline

Board footer

Powered by FluxBB