SFML community forums

Bindings - other languages => Python => Topic started by: noodlesgc on September 03, 2009, 11:47:06 pm

Title: Running on windows.
Post by: noodlesgc on September 03, 2009, 11:47:06 pm
I'm trying to get PySFML to run on windows.
I have python 2.6, so I downloaded SFML-1.5-python2.6-windows.
When I import PySFML, it works, by when I try:
Code: [Select]
from PySFML import sf
I get the following:

Quote
Traceback (most recent call last):
  File "<pyshell#1>", line 1, in <module>
    from PySFML import sf
ImportError: DLL load failed: The specified module could not be found.


What DLL's am I missing?

From the Python Install - Tutorial Page, it says:

Quote
In order to use PySFML, you need to download and install the archive containing the development files for your OS (SFML-x.x-python-dev-xxx). It can be found on the download page. This archive contains the binaries of PySFML which can be used directly. You won't need anything else to use PySFML.


I couldn't seem to find a python-dev package.
I downloaded the python-sdk package, but it seemed that it required to be compile, and I do not have any compiler on my windows machine.
Are there no precompiled python binaries?
Any help would be greatly appreciated.
Title: Running on windows.
Post by: remi.k2620 on September 04, 2009, 02:27:01 pm
You need sfml mingw libraries (http://downloads.sourceforge.net/sfml/SFML-1.5-dev-windows-mingw.zip) : sfml-graphics.dll, sfml-system.dll, sfml-window.dll, sfml-audio.dll, and from the extlibs folder : libsndfile-1.dll and openal32.dll
See http://sfml-dev.org/forum/viewtopic.php?p=8022#8022 if you don't know where to put them.
Title: Running on windows.
Post by: diki on December 09, 2009, 10:54:39 pm
Quote from: "remi.k2620"
sfml-graphics.dll, sfml-system.dll, sfml-window.dll, sfml-audio.dll, and from the extlibs folder : libsndfile-1.dll and openal32.dll


you should definitely mention this on the corresponding tutorial page (http://www.sfml-dev.org/tutorials/1.5/start-python.php), which does not even remotely hint at it. that can be a real newbie-killer.