You are not logged in.
Hi,
I am having problems getting a game called "Oil Worker" working because of a problem with the python-pygame package. When I try to start the game, I get an error saying "ImportError: No module named pygame". I can't figure out why because I checked and the python-pygame package is installed.
While trying to figure out a way to fix this problem, I went onto AUR and tried looking for a different version of pygame. One PKGBUILD I found was pgu, which is a collection of pygame utilities and libraries. I tried to make the package but it sees python-pygame as a missing dependency and then says "error: target not found: python-pygame" when it tries to install it.
I tried reinstalling the python-pygame package and making the pgu package again but still got the same error. I'm now wondering if something is not working right during the python-pygame install that is causing it to not be found by the game and show up as a missing dependency when I try to make the pgu package.
Anyone got any ideas what may be causing the game not to find the pygame module?
Thanks,
~Boz~
Offline
Oil Worker last version appears to be from 2008, so chances are big it uses python 2 .
check arch wiki on Python2
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
Thanks for the help. But man, after reading the wiki describing changing the first line in the file to #!/usr/lib/python2, I thought I had this figured out for sure. Major disappointment .
I am still getting the same error ("ImportError: No module named pygame") when trying to launch the game. I looked into the python-pygame package more and found that it is installed within the /usr/lib/python2.7 directory so I would have to think it is set up to use python2.
I will just give up on the game soon but it is just frustrating bc so many of these games that don't work at first and then I can usually fix it with the littlest thing like creating a link from the old version of a library to the new version. I am assuming there is something stupid that could be fixed in 2 seconds causing this game not to work too.
Any other ideas?
Offline
It could be that Oil Worker is not searching the right directories,
This webpage Appending to Your Python Path describes a way to append directories to the puthon search path.
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
Both times I think I have the problem solved after reading your post and then looking at the config file, but I still haven't got it working. The sys.path.append was searching "lib", not "/usr/lib" so I thought for sure that was the problem.
After changing this to make it look in the directory where pygame is housed, I got a new error saying the following:
"File '/usr/lib/python2.7/site-packages/pygame/__init__.py', line 95, in from pygame.base import *
ImportError: dynamic module does not define init function (PyInit_base)"
Anyways, its looking like this one won't be as easy of a fix as I thought it would be. I think I will just leave it be unless someone knows what the issue is.
Thanks for all the help.
~Boz~
Offline