Go Back   CodingForums.com > :: Computing & Sciences > Computer Programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-06-2007, 09:24 PM   PM User | #1
ghell
Senior Coder

 
Join Date: Apr 2003
Location: England
Posts: 1,192
Thanks: 5
Thanked 13 Times in 13 Posts
ghell is on a distinguished road
Python 2.5.1 library problems under Vista x64

I installed Python 2.5.1 and added C:\Python25 to my path environment variable. Running "python" from command line works as it should. However when I tried to install pygame or numeric (I wasn't sure if pygame 1.7.1 for python 2.5 required numpy) the installers gave me errors. These were sorted by running them "as administrator". However, when I try and import anything I get DLL errors such as this:
Code:
Python 2.5.1 (r251:54863, Apr 18 2007, 09:02:36) [MSC v.1400 64 bit (AMD64)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pygame
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python25\lib\site-packages\pygame\__init__.py", line 75, in <module>
    from pygame.base import *
ImportError: DLL load failed with error code 193
>>>
Does anyone else get any of these problems or have an idea on how to resolve them?

EDIT: running python as administrator and/or adding C:\Python25\lib\site-packages\pygame\ (where SDL.dll is located) to the PATH did not solve the problem. I also get the same problem in eclipse using pydev. The DLL error code is always 193.
__________________
My tech/code blog

Last edited by ghell; 06-06-2007 at 09:27 PM..
ghell is offline   Reply With Quote
Old 04-22-2008, 05:02 PM   PM User | #2
ostkaka
New to the CF scene

 
Join Date: Apr 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
ostkaka is an unknown quantity at this point
I have the same problem though I can't figure how to solve it, really anoying.
ostkaka is offline   Reply With Quote
Old 04-22-2008, 05:29 PM   PM User | #3
ghell
Senior Coder

 
Join Date: Apr 2003
Location: England
Posts: 1,192
Thanks: 5
Thanked 13 Times in 13 Posts
ghell is on a distinguished road
Pygame does not work at all under Windows x64. Maybe it will if you compile it yourself with an x64 compiler, I don't know. It's a problem with pygame rather than a problem with Windows or Python. They just don't care about 64 bit Windows users. A similar situation is 64 bit php for Windows.

Anyway, the easiest solution is to use the 32 bit version of Python and the 32 bit version of pygame (or some other python library) even if you use 64 bit windows.

That being said, if you don't have this problem, stick to the 64 bit version.
__________________
My tech/code blog
ghell is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:46 AM.


Advertisement
Log in to turn off these ads.