[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] PGReloaded installation problems



On Wed, Apr 15, 2009 at 12:46:42PM -0400, Evan Kroske wrote:
> Huh, I've never seen that build-dep command before. So that's supposed 
> to fetch all the dependencies so that I can compile it from source? Is 
> that command necessary for programs to be able to run pygame?

No, for programs that use pygame you only need to do:

  apt-get install python-pygame

The build-dep thing is an easy way to get all the compile-time 
dependencies and headers that you need if you want to recompile your own 
copy of pygame with your own modifications to it-- that is what you are 
doing right? (I wasn't paying a lot of attention to this thread until 
you asked about apt-get)

> To answer your questions, I simply ran
> 
> sudo apt-get install python-pygame
> 
> then tried to run a game. No dice. So then, I tried to install pygame 
> from source using this:
> 
> sudo apt-get -b source python-pygame

That is the right way to recompile a deb package from the source, but 
it will not give you any different results than installing the package 
in the usual way.

> That was stopped by some errors thrown by apt-get, not pygame. I'll try 

Maybe you don't have any deb-src line sin you /etc/apt/sources.list 
file? I don't think they are enabled by default. On Ubuntu, go to 
System->Administration->Software Sources, and make sure the "Source 
Code" checkbox is checked.

> your command later today when I have some free time, then I'll try using 
> that for my pgreloaded problem. Thanks for the new approach.

Now if I understand correctly, you have installed pygame by using:

  apt-get install python-pygame

But when you run a python and try to import pygame you get an error that 
looks something like this, right:

Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52) 
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pygame
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named pygame
>>>

Is that the problem? Or do I misunderstand?
If so, then it might be your python install that is broken, not your 
pygame install.

---
James Paige

> Evan Kroske
> 
> James Paige wrote:
> >How are you using apt-get?
> >
> >Here is what I do:
> >
> >  sudo apt-get install python-pygame
> >  sudo apt-get build-dep python-pygame
> >
> >The first line installs pygame and everything needed to RUN it. The 
> >second line installs everything needed to recompile pygame from scratch.
> >
> >What are you doing differently?
> >
> >---
> >James Paige
> >
> >On Tue, Apr 14, 2009 at 07:36:14PM -0400, Evan Kroske wrote:
> >  
> >>   Yes, I have all the dev packages installed from apt-get. Unfortunately,
> >>   I'm starting to doubt whether I'm using apt-get right. I installed the
> >>   python-pygame package from apt-get to try it out; unfortunately, when I
> >>   try to run a game, the compiler says it can't find pygame. Am I 
> >>   missing a
> >>   step, like flushing the apt-get buffer or something? Maybe my 
> >>   installation
> >>   just hates pygame... :(
> >>
> >>   On Tue, Apr 14, 2009 at 6:05 PM, Nirav Patel <olpc@xxxxxxxxxxxxxx> 
> >>   wrote:
> >>
> >>     Make sure you also have the dev packages, that is, libsdl-ttf-dev,
> >>     libsdl-image-dev, and so on.
> >>     Nirav
> >>     On Tue, Apr 14, 2009 at 5:49 PM, Evan Kroske <e.kroske@xxxxxxxxx> 
> >>     wrote:
> >>     >
> >>     >
> >>     > On Tue, Apr 14, 2009 at 5:20 PM, Marcus von Appen 
> >>     <mva@xxxxxxxxxxxx>
> >>     wrote:
> >>     >>
> >>     >> On, Tue Apr 14, 2009, Evan Kroske wrote:
> >>     >>
> >>     >> > Okay, I just re-installed SDL_mixer, and now I'm getting a
> >>     different but
> >>     >> > equally intimidating list of warnings (which I've attached). Is 
> >>     it
> >>     >> > possibly
> >>     >> > that pgreloaded isn't possible with my 64-bit Ubuntu Intrepid 
> >>     Ibex
> >>     box?
> >>     >> > I
> >>     >> > know python's supposed to be platform independent, but maybe 
> >>     some
> >>     of the
> >>     >> > dependencies aren't.
> >>     >> >
> >>     >> > I couldn't get the whole error this time because of the limited
> >>     terminal
> >>     >> > size; do you know of a command I can use to capture the error
> >>     output
> >>     >> > instead
> >>     >> > of the standard output?
> >>     >>
> >>     >> src/sdlttf/pgttf.h:25:21: error: SDL_ttf.h: No such file or 
> >>     directory
> >>     >>
> >>     >> Seems that you do not have the SDL_ttf development headers. 
> >>     Install
> >>     all
> >>     >> required -dev packages of the dependencies.
> >>     >>
> >>     >> Regards
> >>     >> Marcus
> >>     >>
> >>     >
> >>     > I just updated my apt-get package list then tried to update my
> >>     libsdl-ttf
> >>     > development installation through apt-get, but it said it was
> >>     up-to-date. I'm
> >>     > getting a smaller error now, but it still says it's missing 
> >>     SDL_ttf.
> >>     I've
> >>     > attached the latest smaller error.
> >>     >
> >>     > Thanks,
> >>     > Evan Kroske
> >>     >
> >>    
> >
> >  
> 
>