py2exe and libxml

L

Laszlo Nagy

I wrote a little win32 console application that uses libxml2. It is
working fine. If I create an .exe version, I get this error when I try
to start the program:

Traceback (most recent call last):
File "MyProgram.py", line 3, in ?
File "mylib\item.pyc", line 5, in ?
ImportError: dynamic module does not define init function (initlibxml2)

What is wrong here?
Thanks

Laszlo
 
A

Amaury Forgeot d'Arc

Laszlo Nagy a écrit :
I wrote a little win32 console application that uses libxml2. It is
working fine. If I create an .exe version, I get this error when I try
to start the program:

Traceback (most recent call last):
File "MyProgram.py", line 3, in ?
File "mylib\item.pyc", line 5, in ?
ImportError: dynamic module does not define init function (initlibxml2)

What is wrong here?
Thanks

A quick Google search reveals a thread in the py2exe-users list:

http://aspn.activestate.com/ASPN/Mail/Message/py2exe-users/3180430

It seems a regression since py2exe 0.6.5, already corrected in CVS trunk.
And according to another post, version 0.6.3 works fine:
http://permalink.gmane.org/gmane.comp.python.py2exe/1502

Hope this helps,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,898
Latest member
BlairH7607

Latest Threads

Top