Chimera Chimera packaging

I can't seem to get this working (pyglet 1.1.2, Ubuntu Linux 10.04): seems to be problem with the resource loader. After disabling sfx and music (which trigger similar errors) I got:


Traceback (most recent call last):
  File "chimera.py", line 73, in <module>
    TILEMAP_TEX = get_tex('tiles.png')
  File "chimera.py", line 65, in get_tex
    tex = pyglet.resource.texture('images/'+name)
  File "/usr/lib/pymodules/python2.6/pyglet/resource.py", line 599, in texture
    file = self.file(name)
  File "/usr/lib/pymodules/python2.6/pyglet/resource.py", line 383, in file
    raise ResourceNotFoundException(name)
pyglet.resource.ResourceNotFoundException: Resource "images/tiles.png" was not found on the path.  Ensure that the filename has the correct captialisation.

Also, it'd be nice if there was a download that didn't include all the Windows stuff (*.pyd, *.dll, *.exe, etc.) that takes quite a bit of space for those with slow internet connection.

(log in to comment)

Comments

Sorry I did not notice this message until now! I am looking into this problem and will try to find a fix for you.

And sorry about the windows stuff. It's too late for me to update the files on the entry page for now unfortunately.
It looks like this is a bug in older versions of pyglet. If you install pyglet from source, it will run with that configuration.

However, you may still need to run with SFX (not music) off, because I get "pyglet.media.drivers.alsa.ALSAException: File descriptor in bad state" errors when it starts to play SFX sometimes. This may be dependent on my machine though. I doubt I am going to have a fix for that any time soon short of just turning off audio since it seems to be deep in pyglet's internals.

This is what I did to install the new version of pyglet:
 
wget http://pyglet.googlecode.com/files/pyglet-1.1.4.tar.gz
tar xvzf pyglet-1.1.4.tar.gz
cd pyglet-1.1.4
sudo python setup.py install --prefix=/usr/local

 
Oh, and before all that, you'll want to do:

sudo apt-get purge pyglet

Sorry if this is a little drastic.
Or more easily:


sudo apt-get purge pyglet
# only if you don't already have easy_install

sudo apt-get install python-setuptools
sudo easy_install pyglet
Sorry, that should be 'sudo apt-get purge python-pyglet.' Agh. :)
Or just install pyglet inside a virtualenv created with --no-site-packages.