Page 1 of 1

Unity crash [SOLVED]

Posted: 20 Oct 2006, 19:40
by cuardin
Hi.
I have played TASpring a bit on Windows but I have now decided to join the Linuxification effort. Unfortunately I came off to a bad start when UnityLobby gave me the following on startup after I created a profile:

Code: Select all

Profile Launched
Traceback (most recent call last):
  File "/usr/share/games/taspring-linux-svn/UnityLobby/client/main.py", line 221, in ?
    status_icon.main()
  File "/usr/share/games/taspring-linux-svn/UnityLobby/client/main.py", line 207, in main
    self.create()
  File "/usr/share/games/taspring-linux-svn/UnityLobby/client/main.py", line 97, in create
    self.status_icon = gtk.StatusIcon()
AttributeError: 'module' object has no attribute 'StatusIcon'
Does anyone have any creative ideas? I took the easy path and installed spring using the games-strategy/taspring-linux-svn-0.72-r3 ebuild on my Gentoo system. I am not really sure what more info would be helpful here since I am not much of a GTK over Python coder, so feel free to ask.

Sincerely
Daniel Armyr

Posted: 20 Oct 2006, 19:51
by Kloot
There are a number of possibilities here:

1) You do not have the required version of GTK (>=2.10)
2) You do not have the required version of PyGTK (>=2.10)
3) Conditions 1 and 2 combined
4) You installed PyGTK before GTK, causing it to get bound to an older version of GTK

So I'm afraid you'll have to take a slightly less easy path to get Unity working. :)

Posted: 20 Oct 2006, 20:31
by cuardin
Are those requirements fixed, or do you mean "at least" gtk 2.1 and "at least" pygtk 2.1?

Posted: 20 Oct 2006, 20:39
by Kloot
They're in the "at least" sense, sorry for being unclear about that.

Posted: 20 Oct 2006, 20:52
by cuardin
OK, recompiling gtk+ and pygtk now to versions 2.8 now and then a recompile of spring.

BTW, I am compiling pygtk without support for OpenGL because I have had problems with that. Is this an issue?

Sincerely
Daniel Armyr

Posted: 20 Oct 2006, 21:08
by cuardin
Sorry, after a recomile, nothing changed.

On the other hand, I am not really that interested in Unity. I want to help code Spring, not play it. Is there a HOWTO on how to get a game going at the most basic level so I can get a place to start at least.

Sicnerely
Daniel Armyr

Posted: 20 Oct 2006, 23:39
by Tobi
Basically, grab the source, compile it, and download the datafile(s) from berlios.
Instructions on what to do with the datafiles are in the release notes (on that berlios page) and in the readme in the data tarball itself.

Posted: 21 Oct 2006, 00:13
by Kloot
cuardin wrote:OK, recompiling gtk+ and pygtk now to versions 2.8 now and then a recompile of spring.
Unity depends on GTK/PyGTK version 2.10 or higher, 2.8 isn't recent enough.
BTW, I am compiling pygtk without support for OpenGL because I have had problems with that. Is this an issue?
No. It's a lobby, not a 3D engine. :)

Posted: 21 Oct 2006, 02:49
by hollowsoul
Yeah UnityLobby requires
  • Python 2.4 (Not sure if threading class 20 lines will work on python 2.5 rest should be ok. Checked the changelog)
    Python Imaging Library (Be nice if someone knows how to generate a image in python of certain size & all colored in a rgb color. Would mean losing this requirement)
    Pygtk 2.10
    Gtk 2.10

Posted: 21 Oct 2006, 11:51
by cuardin
Thanks. Works very well now......

OK, it starts without errors. Now I have to learn how to actually use the thing to start a game. But that is for later.