> Thanks for looking into this Mark! I'm not near a compiler for the next
> several days, but I looked over the patch as closely as I could. The
> only thing that jumped out at me is that the ints in the PyList_New and
> PyList_SetItem declarations in import-tab.h should be Py_ssize_t
Oops - good catch thanks!
> Also, if you happen to have a small sample that exposes the problem I'd
> love to get a copy.
In any py2exe generated program, print len(sys.path). It should be 1, but
in the most recent version is 2.
To demonstrate the libxml2 problem, you simply need 'import libxml2' in your
script. The final application will have a 'libxml2.dll' file (libxml
itself), and also a 'libxml2.pyc' file in the .zip. Due to the sys.path
issue, Python assumes that libxml2.dll file is a Python module, loads it,
but fails to find the 'initlibxml2' entry-point expected.
Part of the reason for my mail was to confirm that the sys.path change was
indeed accidental, which I think you've done. Shall I commit the patch
(with the Py_ssize_t fix)?