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

Author Topic: python-sfml  (Read 19990 times)

0 Members and 1 Guest are viewing this topic.

Sonkun

  • Moderator
  • Full Member
  • *****
  • Posts: 241
    • View Profile
python-sfml
« on: June 01, 2012, 12:10:10 am »
Hello, I'm opening this topic to talk about the project. If you have any questions or want to report issues, you can do it here. :)
« Last Edit: February 20, 2013, 01:28:26 am by Sonkun »
Interested in using SFML with Python ? Try out its Python binding!

shackra

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
    • http://swt.encyclomundi.org
Re: python-sfml2
« Reply #1 on: December 16, 2012, 05:25:08 am »
I really love your bindings!

However, you still have to change the license to LGPL (I don't have any problem with this since I use GPL license for my [on development] commercial projects) and add doc strings!!

GNU User
Python programmer
Blog

Sonkun

  • Moderator
  • Full Member
  • *****
  • Posts: 241
    • View Profile
Re: python-sfml2
« Reply #2 on: January 07, 2013, 05:26:44 pm »
The license is updated now, thanks.

I'm glad to hear you love them :) and by the way check out the new release 1.2 which should be announced soon.
Interested in using SFML with Python ? Try out its Python binding!

shackra

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
    • http://swt.encyclomundi.org
Re: python-sfml2
« Reply #3 on: January 09, 2013, 01:21:58 am »
btw, Do you have any project that try to provides a sort of UI for SFML?
I was thinking to build one relaying on HTML [processed with BeautifulSoup] and CSS [serialized with cssutils], using SFML as a render (like librocket)

GNU User
Python programmer
Blog

Sonkun

  • Moderator
  • Full Member
  • *****
  • Posts: 241
    • View Profile
Re: python-sfml2
« Reply #4 on: January 11, 2013, 01:30:37 pm »
I do but I haven't published anything yet. If you want, we could discuss the theory in private as I've been working on them for more than two years now, you might be interested :)
Interested in using SFML with Python ? Try out its Python binding!

halflings

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: python-sfml2
« Reply #5 on: January 28, 2013, 02:50:39 pm »
I can't install python-sfml2 from the ubunto repository :-/. This could be an error on my side, but could someone check if it works ?

Here's the error message I get :
"E: Impossible de trouver le paquet python-sfml2"
(can't find the package python-sfml2)


Sonkun

  • Moderator
  • Full Member
  • *****
  • Posts: 241
    • View Profile
Re: python-sfml2
« Reply #6 on: January 28, 2013, 07:40:53 pm »
I recently renamed all sfml packages and dropped the "2" so just remove the "2" from all package name. :)

libsfml2-dev -> libsfml-dev
python-sfml2 -> python-sfml
sfml2-examples -> sfml-example

The package repository name have also been renamed: use "sonkun/sfml-stable" for stable SFML releases (sfml2-RC included) and "sonkun/sfml-development" for the latest versions (in development).

These repositories contain works based on SFML as well such the Python bindings, sfeMovie, its Python binding and TGUI (v4.2). Soon, they will contain Aurora, Thor and SFGUI libraries.

By the way, what Ubuntu version do you use?

I wanted my Fedora packages ready before announcing this recent change, so I'm sorry to be late on this. :s

Let me know how it goes :)
Interested in using SFML with Python ? Try out its Python binding!

halflings

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: python-sfml2
« Reply #7 on: January 29, 2013, 09:34:02 am »
Works great :) Noticed you did that when Ubuntu told me there was an update available for python-sfml

I'm using Ubuntu 12.10, and it seems to work great. (installed with no bugs, but I still got to check with a hello world :))

Sonkun

  • Moderator
  • Full Member
  • *****
  • Posts: 241
    • View Profile
Re: python-sfml2
« Reply #8 on: January 31, 2013, 08:44:48 pm »
The website is temporarily unavailable. The hard drive failed but hopefully I have backups. I hope it won't take too long...

I'm using Ubuntu 12.10, and it seems to work great. (installed with no bugs, but I still got to check with a hello world :))

Why not installing pysfml-examples package, then typing pysfml-pong ? :) Some codes are available on the website, section Examples: http://python-sfml.org/examples.html
Interested in using SFML with Python ? Try out its Python binding!

halflings

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: python-sfml2
« Reply #9 on: February 13, 2013, 09:27:35 pm »
When trying to launch pysfml-pong, I get this error message:

Traceback (most recent call last):
  File "pong.py", line 16, in <module>
    import sfml as sf
  File "/usr/lib/python3.2/dist-packages/sfml/__init__.py", line 13, in <module>
    from sfml.graphics import *
ImportError: /usr/lib/python3.2/dist-packages/sfml/graphics.cpython-32mu.so: undefined symbol: _ZN2sf4Font14getDefaultFontEv


I get the same kind of error when using pysfml with Python 2.7 :

ImportError: /usr/lib/python2.7/dist-packages/sfml/graphics.so: undefined symbol: _ZN2sf4Font14getDefaultFontEv

Sonkun

  • Moderator
  • Full Member
  • *****
  • Posts: 241
    • View Profile
Re: python-sfml2
« Reply #10 on: February 20, 2013, 01:27:20 am »
The version of pySFML contained in this repository (sfm-stable) is 1.2 and depends on the release candidate of SFML2. You simply installed the latest version of SFML2 on top and thus overwrote the right SFML version.

To fix that, reinstall the libsfml package:
sudo apt-get install --reinstall libsfml

Be careful, you're having the wrong headers too, so you may want to reinstall libsfml-dev as well ;)
Interested in using SFML with Python ? Try out its Python binding!

netrick

  • Full Member
  • ***
  • Posts: 174
    • View Profile
Re: python-sfml
« Reply #11 on: April 29, 2013, 08:19:08 pm »
Are you going to update the binding to SFML 2.0 stable soon? Because afaik it's based on RC which is quite outdated right now and the function names have changed in few places as well.

Sonkun

  • Moderator
  • Full Member
  • *****
  • Posts: 241
    • View Profile
Re: python-sfml
« Reply #12 on: April 29, 2013, 09:16:58 pm »
I was maintaining two branches, the first based on the RC while the second one followed the latest changes of SFML2.

I'll release the next version (1.3), entirely based on the final version of SFML2 during this night (as announced on the website now). So, wait until tomorrow for installers/packages :)
Interested in using SFML with Python ? Try out its Python binding!

Sonkun

  • Moderator
  • Full Member
  • *****
  • Posts: 241
    • View Profile
Re: python-sfml
« Reply #13 on: April 30, 2013, 11:24:59 am »
Sorry, for those who expects the 1.3 release I announced for today, I can't make it on time. I'm facing issues with some packages and installers, nothing important but I'm running out of time... I'll give it another try tomorrow morning.
Interested in using SFML with Python ? Try out its Python binding!

halflings

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: python-sfml
« Reply #14 on: April 30, 2013, 02:21:22 pm »
Yay ! Happy to know that the Python binding is finally approaching a stable version :-) !

Good luck with the final changes. Could you please publish python-sfml on PyPi ? (so we can install it with "pip" which would be *way* easier).

 

anything