A problem running the pygame setup

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Hamy Li
    New Member
    • Mar 2008
    • 15

    A problem running the pygame setup

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


    Code:
    No Arguments Given, Perform Default Install? [Y/n]y
    WARNING, DLL for SDL library not found.
    running install
    running build
    running build_py
    running build_ext
    building 'pygame._numericsurfarray' extension
    
    Traceback (most recent call last):
      File "C:\Python25\Lib\site-packages\pygame-1.8.0release\setup.py", line 232, in <module>
        setup(**PACKAGEDATA)
      File "C:\Python25\lib\distutils\core.py", line 168, in setup
        raise SystemExit, "error: " + str(msg)
    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! :)
  • Hamy Li
    New Member
    • Mar 2008
    • 15

    #2
    bump, bump, bump :)
    bump, bump, bump :)

    Comment

    • jlm699
      Contributor
      • Jul 2007
      • 314

      #3
      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.

      Comment

      • Hamy Li
        New Member
        • Mar 2008
        • 15

        #4
        Originally posted by jlm699
        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!!

        Comment

        • Hamy Li
          New Member
          • Mar 2008
          • 15

          #5
          Code:
          from livewires import games
          
          Traceback (most recent call last):
            File "C:\Python25\Lib\site-packages\Pygame 1.8 Documents and Examples\examples\aliens.py", line 6, in <module>
              import pygame
          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

          Comment

          • jlm699
            Contributor
            • Jul 2007
            • 314

            #6
            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.

            Comment

            • Hamy Li
              New Member
              • Mar 2008
              • 15

              #7
              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

              Comment

              • jlm699
                Contributor
                • Jul 2007
                • 314

                #8
                It should search recursively but for sanity's sake open up a Python shell and type in:
                [code=python]
                >>> import sys
                >>> sys.path
                ['', 'C:\\WINDOWS\\s ystem32\\python 24.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\\pytho nutils', 'C:\\Python24\\ lib\\site-packages\\win32 ', 'C:\\Python24\\ lib\\site-packages\\win32 \\lib', 'C:\\Python24\\ lib\\site-packages\\Pytho nwin', 'C:\\Python24\\ lib\\site-packages\\wx-2.8-msw-unicode']
                >>> [/code]
                That'll tell you where Python is looking. You can manually add via
                sys.path.append ('C:\\Python25\ \Lib\\site-packages\\pygam e')
                HTH

                Comment

                Working...