473,383 Members | 1,922 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

A problem running the pygame setup

15
after i download everything i need. i run the pygame setup from python. But when i run it an error shows up


Expand|Select|Wrap|Line Numbers
  1. No Arguments Given, Perform Default Install? [Y/n]y
  2. WARNING, DLL for SDL library not found.
  3. running install
  4. running build
  5. running build_py
  6. running build_ext
  7. building 'pygame._numericsurfarray' extension
  8.  
  9. Traceback (most recent call last):
  10.   File "C:\Python25\Lib\site-packages\pygame-1.8.0release\setup.py", line 232, in <module>
  11.     setup(**PACKAGEDATA)
  12.   File "C:\Python25\lib\distutils\core.py", line 168, in setup
  13.     raise SystemExit, "error: " + str(msg)
  14. SystemExit: error: Python was built with Visual Studio version 7.1, and extensions need to be built with the same version of the compiler, but it isn't installed.

can anyone explain the error. is there anything i might need to download?

thanks! :)
Jul 9 '08 #1
7 6599
Hamy Li
15
bump, bump, bump :)
bump, bump, bump :)
Jul 10 '08 #2
jlm699
314 100+
The only requirement for Pygame that I know of is numpy (or Numeric if you're old school).

I would try uninstalling and reinstalling the latest version of Python and then retry. Make sure that you're downloading the correct binary installer for your system and version of Python.
Jul 10 '08 #3
Hamy Li
15
The only requirement for Pygame that I know of is numpy (or Numeric if you're old school).

I would try uninstalling and reinstalling the latest version of Python and then retry. Make sure that you're downloading the correct binary installer for your system and version of Python.

ahh...okay. I'll try re-installing. Thanks!!
Jul 10 '08 #4
Hamy Li
15
Expand|Select|Wrap|Line Numbers
  1. from livewires import games
  2.  
  3. Traceback (most recent call last):
  4.   File "C:\Python25\Lib\site-packages\Pygame 1.8 Documents and Examples\examples\aliens.py", line 6, in <module>
  5.     import pygame
  6. ImportError: No module named pygame
i download all the required binaries mentioned in the installation doc. But when i try to run it, it still doesn't work. I check the path browser, the pygame folder does not show up. What might be the problem here?


*edit* I'm using python 2.5.2
Jul 10 '08 #5
jlm699
314 100+
Is the pygame folder located within your Lib\site-packages foler? If not, you probably did not install it in the right location and you could simply search for the folder and place it under that directory.. if it is there, you'll need to reinstall Python possibly because you installation might be hosed.
Jul 10 '08 #6
Hamy Li
15
it is already in the site-package folder. and I've also tried re-installing python. it still doesn't work.

by the way, do you know how to insert a path? i think the problem might be there's not a path directed to the pygame folder within the site-package
Jul 10 '08 #7
jlm699
314 100+
It should search recursively but for sanity's sake open up a Python shell and type in:
Expand|Select|Wrap|Line Numbers
  1. >>> import sys
  2. >>> sys.path
  3. ['', 'C:\\WINDOWS\\system32\\python24.zip', 'C:\\Python24\\Lib\\site-packages\\wx-2.8-msw-unicode\\wx\\py', 'C:\\Python24\\DLLs', 'C:\\Python24\\lib', 'C:\\Python24\\lib\\plat-win', 'C:\\Python24\\lib\\lib-tk', 'C:\\Python24', 'C:\\Python24\\lib\\site-packages', 'C:\\Python24\\lib\\site-packages\\pythonutils', 'C:\\Python24\\lib\\site-packages\\win32', 'C:\\Python24\\lib\\site-packages\\win32\\lib', 'C:\\Python24\\lib\\site-packages\\Pythonwin', 'C:\\Python24\\lib\\site-packages\\wx-2.8-msw-unicode']
  4. >>> 
That'll tell you where Python is looking. You can manually add via
sys.path.append('C:\\Python25\\Lib\\site-packages\\pygame')
HTH
Jul 10 '08 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

12
by: Marian Aldenhövel | last post by:
Hi, I am trying to make pygame play music on windows. This simple program: import pygame,time pygame.init() print "Mixer settings", pygame.mixer.get_init() print "Mixer channels",...
3
by: Tim Knauf | last post by:
Hi everyone, I'm glad to have found this list. I've written a small script for my own use which, amongst other things, captures mouse click information from a window containing an image. I used...
2
by: Brent W. Hughes | last post by:
I'm just starting to learn pygame. I write what I think is just about the simplest program that should display a window and then quit. #----------------------------------------------- import sys...
0
by: Lunpa | last post by:
My project: I'm working on a game, where in the ui, it takes the pygame window, and shoves it into a gtk2 socket widget. (gtk2 widgets are generated with glade, with the exception of the socket...
1
by: liuliuliu | last post by:
hi -- sorry if this is trivial -- but how do you make a screenshot of a pygame display? i have a surface which is basically the entire visible screen -- how do you write this surface as an image...
11
by: dynamo | last post by:
Hi guys i have come again with more problems.This time it has to do with pygame.The following code does not give any error messages but it does not do what it is supposed to do either.the code is a...
3
by: zaperaj | last post by:
Im working in red hat linux 9.0. I've downloaded the pygame package but i dont know how to install it. If anybody has the time to detail the steps sequentially... thanx! P.S. I've downloaded...
3
by: globalrev | last post by:
im doing this : http://www.learningpython.com/2006/03/12/creating-a-game-in-python-using-pygame-part-one/ and when closing the program the window stays up and doesnt respond. i tried adding...
11
by: globalrev | last post by:
http://www.pygame.org/docs/ref/mixer.html import pygame #pygame.mixer.init(frequency=22050, size=-16, channels=2, buffer=3072) //it complained abiout words= so i guess its only the nbrs...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.