The most frustrating thing about using Linux is dependencies. Its just fine if you don’t do much in your system – just installing all the sweet updates and upgrades coming your way won’t give you much trouble. But in case have to try out something which happens to have a mangled dependency tree.
Small Note: It might get to you even if you are simply getting the regular updates. From the last few updates im getting a messy problem which I’m hoping to get resolved in the next few updates
The following packages have been kept back:
ffmpeg libavdevice53 libavfilter2 libavformat53 libpostproc52
Coming to the topic – pygame
Having worked around a bit in Python, I decided to give pygame a try. As usual with any new technology, I downloaded a pdf tutorial and set out to the pygame.org and downloaded the tarball(version 1.9.1) and compiled and installed it. The setup was simple and I created a “hello world” app and decided to wrap it up for the day. But the problem was I was using was Python 2.7.2. Later that day, a friend asked to teach python for her. She had installed python 3.2 in her Windows machine. So the very first line I told gave an error.I had asked her to do
After seeing the error only I realized that I was having an older version. Ubuntu had chosen to package python3+ as python3 instead of python. So anyway, i installed python3.2 and carried on.
But later when I tried pygame I was getting some error while importing, and I tried to build it again with python3.2. But then I got this weird dependency issue.
SDL : found 1.2.14
FONT : not found
IMAGE : found
MIXER : found
SMPEG : found 0.4.5
PNG : found
JPEG : found
SCRAP : found
PORTMIDI: not found
PORTTIME: not found
I checked the Package Manager and installed a few. This is one main reason why I like Synaptic Package Manager better than Software Center
Any way, the entire dependencies still could not be fulfilled. But the build option gives you choice to install even with these broken dependencies.
Warning, some of the pygame dependencies were not found. Pygame can still
compile and install, but games that depend on those missing dependencies
will not run. Would you like to continue the configuration? [Y/n]:
I tried that too, but still couldn’t get it running in python3.2.
As the usually first step at times of crisis, I turned to Google for help. But to my dismay, I got very few valuable results until I came upon this result.With I resolved some more of the dependencies. Later after some more searching, I found another guy who had the same problem. Luckily he had found a solution to the issue. He had downloaded the 1.9.2 version of pygame and installed to get it running.
Image Courtesy: XKCD
The feeling of relief would be out of bound when you finally find a forum which actually has a solution to your problem. I searched for the svn and got it running.
The satisfaction I got after making it work is the main reason I’m using Linux. For windows, I just need to download the exe or msi file and it would work. But here, I can know about the dependencies, and well.. can get to do lots of tiring and frustrating things. In other words, you do some stuff, you earn the package you need to work on.
Now that satisfaction is something different