Page 1 of 4

pyirrlicht - python ctypes binding

Posted: Thu Mar 11, 2010 9:09 am
by maxim
Hi all.

pyirrlicht is download here http://vosolok2008.narod.ru/pyirrlicht.zip (120 KB).

Please report any bugs that you find, and suggest features!

Posted: Thu Mar 11, 2010 1:15 pm
by Sir_Hans
I get this error when I try to run HelloWorld:


Traceback (most recent call last):
File "(text deleted ;))\pyirrlicht\pyirrlicht\HelloWorld.py", line 13, in <module>
guienv.addStaticText('Hello World! This is the Irrlicht Software renderer!', pyirrlicht.recti(10,10,260,22).c_pointer, True)
File "(text deleted ;))\pyirrlicht\pyirrlicht\pyirrlicht.py", line 1962, in addStaticText
return gui_addStaticText(self.c_pointer, text, rectangle, border, wordWrap, parent, id, fillBackground)
WindowsError: exception: access violation reading 0x00000001

Posted: Thu Mar 11, 2010 6:31 pm
by maxim
Thanks Sir_Hans.
What is your Python version?

Posted: Thu Mar 11, 2010 8:56 pm
by maxim
Please test new version dll http://vosolok2008.narod.ru/irrlicht_c.zip

Posted: Fri Mar 12, 2010 1:23 pm
by Sir_Hans
I got 2.6
It still doesn't work with the new dll.

Posted: Tue Mar 16, 2010 7:08 am
by maxim
Thanks Sir_Hans again.
New alpha version is as old link.
Tested with Python 2.5, 2.6 and Irrlicht Win32-VisualStudio dll.

Posted: Tue Mar 16, 2010 1:52 pm
by Sir_Hans
Still the same error. Do I have to config my python or anything like that?

Posted: Thu Mar 18, 2010 4:02 pm
by maxim
Perhaps you are using a different platform.
My tests with win2000 prof, XP home and server 2003.

Also new version available as old link.

Posted: Thu Mar 18, 2010 6:21 pm
by Sir_Hans
I use win7.

Posted: Thu Jun 03, 2010 7:15 am
by _maxim_
New version include SWIG wrapper and FASM example

Compiled as static library, vector fonts supported.

SVN is:
http://svn.emforge.net/svnroot/pyirrlicht/

version is update

Posted: Wed Jan 12, 2011 5:58 pm
by _maxim_
new version is accessible from home page http://pypi.python.org/pypi/pyirrlicht or alternative link http://pir.sourceforge.net

Posted: Wed Jan 12, 2011 6:01 pm
by devsh
can we use this in the Blooddrunk Engine?

Posted: Wed Jan 12, 2011 7:14 pm
by Sir_Hans
Nice, the new version works for me ;) at least the 2d game but I guess everything will work^^

Posted: Wed Jan 12, 2011 10:52 pm
by _maxim_
Thanks Sir_Hans. Quake3Explorer yet not work.

For devsh - yes. Your project is very interesting. I glad if my work was help for this.

Posted: Mon Jan 24, 2011 9:57 pm
by spock
interesting! :)

so does this use ctypes or swig now?

i thought ctypes only works for c? how did you do a c++ wrapper using ctypes then?

is python 3.1/3.2 supported?