Jump to content
  • Advertisement
Sign in to follow this  
llamaSong

Pygame Help!

This topic is 4797 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Okay, So I have the Mac version of python and pygame. So I open up Chimp.py which is an example that comes with pygame. I click Run All. I get: ImportError: No MOdule Named pygame Traceback (innermost last) File "chimp.py",line 11,in? import os,pygame. How do I fix this/

Share this post


Link to post
Share on other sites
Advertisement
Well, first of all, there shouldn't be a period at the end of that import statement. Second of all, it doesn't look like you properly installed pygame. What I'd do is read over the instructions again and make sure you didn't miss something.

Share this post


Link to post
Share on other sites
Sometimes there are multiple versions of python (particularly on OSX), which each use a different module directory. How did you install Pygame? From the source? If so, try running Chimp.py from the command line.

Share this post


Link to post
Share on other sites
Quote:
Original post by Roboguy
Sometimes there are multiple versions of python (particularly on OSX), which each use a different module directory. How did you install Pygame? From the source? If so, try running Chimp.py from the command line.


Theres a period at the end just cause I put one there.
I installed pygame by taking the pkg and doubleclicking it then clicking next until it finished instaling.

Share this post


Link to post
Share on other sites
Okay, so Instalations tells me to instal the binaray packages first from this link. Aparantly both the instructions and all the packages are at this link and will instal all dependecies.
http://undefined.org/python/pimp/
The problem is that there are 6billion downloads and no instructions at that sight.

Share this post


Link to post
Share on other sites
Quote:
Original post by llamaSong
So which one do I download?
They're all unrelated python packages, the one you want is the pygame one.

Share this post


Link to post
Share on other sites
Quote:
Original post by Roboguy
Quote:
Original post by llamaSong
So which one do I download?
They're all unrelated python packages, the one you want is the pygame one.


Okay, but I installed py game by double clicking the package. After instaling it, I went to examples and ran "Chimp.py" it sayed Pygame module could not be found error.

Share this post


Link to post
Share on other sites
Quote:
Original post by llamaSong
Quote:
Original post by Roboguy
Quote:
Original post by llamaSong
So which one do I download?
They're all unrelated python packages, the one you want is the pygame one.


Okay, but I installed py game by double clicking the package. After instaling it, I went to examples and ran "Chimp.py" it sayed Pygame module could not be found error.
Are you running Chimp.py from the terminal or by double clicking it? Try double-clicking it, if you tried to run it from the terminal.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!