SFML community forums
Bindings - other languages => Python => Topic started 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:
from PySFML import sf
I get the following:
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:
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.
-
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.
-
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.