Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: I cannot get SFML working with Python  (Read 5661 times)

0 Members and 1 Guest are viewing this topic.

Lloyd

  • Newbie
  • *
  • Posts: 6
    • View Profile
I cannot get SFML working with Python
« 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

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
« Last Edit: February 19, 2013, 12:00:04 am by Lloyd »

Lloyd

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: I cannot get SFML working with Python
« Reply #1 on: February 19, 2013, 12:41:15 am »
Turns out I only needed to install python-sfml from the package manager!