SFML community forums

Bindings - other languages => Python => Topic started by: reaverdeath101 on August 26, 2013, 06:53:09 am

Title: [Solved] installing python-sfml on osx 10.8
Post by: reaverdeath101 on August 26, 2013, 06:53:09 am
I have sfml2.1 and cython 0.19.1 and trying to install pysfml v.1.3, it seems to install but then I get this error when trying to import sfml:

>>> import sfml
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/site-packages/sfml/__init__.py", line 12, in <module>
    from sfml.window import *
ImportError: dlopen(/usr/local/lib/python2.7/site-packages/sfml/window.so, 2): Symbol not found: __ZN2sf6StringC1EPKcRKSt6locale
  Referenced from: /usr/local/lib/python2.7/site-packages/sfml/window.so
  Expected in: flat namespace
 in /usr/local/lib/python2.7/site-packages/sfml/window.so

no idea where to start troubleshooting this :(
Title: Re: installing python-sfml on osx 10.8
Post by: Sonkun on August 26, 2013, 09:59:03 am
pySFML v1.3 is based on SFML 2.0 :)
Title: Re: installing python-sfml on osx 10.8
Post by: reaverdeath101 on August 27, 2013, 09:37:52 am
Thanks. I've changed to sfml 2.0 but am still getting the error though :S
Title: Re: installing python-sfml on osx 10.8
Post by: Hiura on August 27, 2013, 10:24:31 am
There are two versions available for download http://www.sfml-dev.org/download/sfml/2.0/
You probably need to install the other one.
Title: Re: installing python-sfml on osx 10.8
Post by: reaverdeath101 on August 27, 2013, 05:03:00 pm
sorry, yeah, now it works :)