SFML community forums

Bindings - other languages => Python => Topic started by: Lloyd on February 18, 2013, 11:57:45 pm

Title: I cannot get SFML working with Python
Post by: Lloyd on February 18, 2013, 11:57:45 pm
So, I followed the instructions from here: http://sfml-dev.org/tutorials/1.6/start-python.php (http://sfml-dev.org/tutorials/1.6/start-python.php)

I have copy and pasted the SDK to the /usr/lib/python2.7 directory but I am still getting:

>>> from PySFML import sf
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named PySFML


And I cannot build the SDK either:
lloyd@lloyd-d530-linux /usr/lib/python2.7/python $ python setup.py build
running build
running build_py
running build_ext
building 'PySFML.sf' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I../include -I/usr/include/python2.7 -c src/Clock.cpp -o build/temp.linux-x86_64-2.7/src/Clock.o
gcc: error trying to exec 'cc1plus': execvp: No such file or directory
error: command 'gcc' failed with exit status 1
 


What am I doing wrong?

Thanks
Title: Re: I cannot get SFML working with Python
Post by: Lloyd on February 19, 2013, 12:41:15 am
Turns out I only needed to install python-sfml from the package manager!