Unity crash [SOLVED]

Unity crash [SOLVED]

Discuss everything related to running Spring on your chosen distribution of Linux.

Moderator: Moderators

Post Reply
cuardin
Posts: 5
Joined: 20 Oct 2006, 19:30

Unity crash [SOLVED]

Post 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
Last edited by cuardin on 21 Oct 2006, 11:51, edited 1 time in total.
Kloot
Spring Developer
Posts: 1867
Joined: 08 Oct 2006, 16:58

Post 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. :)
Last edited by Kloot on 20 Oct 2006, 20:43, edited 1 time in total.
cuardin
Posts: 5
Joined: 20 Oct 2006, 19:30

Post by cuardin »

Are those requirements fixed, or do you mean "at least" gtk 2.1 and "at least" pygtk 2.1?
Kloot
Spring Developer
Posts: 1867
Joined: 08 Oct 2006, 16:58

Post by Kloot »

They're in the "at least" sense, sorry for being unclear about that.
cuardin
Posts: 5
Joined: 20 Oct 2006, 19:30

Post 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
cuardin
Posts: 5
Joined: 20 Oct 2006, 19:30

Post 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
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post 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.
Kloot
Spring Developer
Posts: 1867
Joined: 08 Oct 2006, 16:58

Post 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. :)
hollowsoul
Posts: 665
Joined: 06 Jun 2006, 19:49

Post 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
cuardin
Posts: 5
Joined: 20 Oct 2006, 19:30

Post 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.
Post Reply

Return to “Linux”