How to get Tuxemon up and running on your Gameshell

I’m actually getting this error when running the pip command–

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-up8Obo/pygame/

Prior to that, this message appears

Hunting dependencies...
SDL     : found 1.2.15
FONT    : found
IMAGE   : found
MIXER   : not found
PNG     : found
JPEG    : found
SCRAP   : found
PORTMIDI: not found
PORTTIME: not found
FREETYPE: found 22.1.16
Missing dependencies

I’m pretty sure I’ve seen this error before in my own Py projects, but I don’t remember how to resolve it. Everything I’ve seen online says to basically update everything, but it doesn’t seem to make any difference for me. I’ve also tried using pip3 instead of pip.

UPDATE

I was able to fix this by running these commands:

apt-get build-dep python-pygame
sudo apt-get install libxml2 libxml2-dev libxslt1-dev

The latter command actually had to do with a new problem that arose after building the dependencies.

If anyone else has any other confusions that I had, I was able to launch the game by navigating to the tuxemon directory through Dingux. (I wasn’t able to launch through SSH since it wasn’t connected to the X server.) Then, since only the top-left part of the screen could be showed, so I couldn’t see the menu to exit, I had to force-shut off the system to restart it.

The game’s working now, though the controls are a little weird-- The only two usable buttons are Start and MENU, matching Tuxemon’s Enter/Escape from the PC controls. I actually started to manually change them in the source code, but that’s not really a good idea because then you could get merge conflicts on updating.

1 Like