From: Marcus Møller <mm@qi...> - 2013-09-30 06:20:28
When trying to freeze a Python 3 application which depends on
python-sfml (http://www.python-sfml.org/), the freeze seems to go just
fine, but the executable crashes.
Here's the log:
Any way to work around this?
(If I have done something remotely wrong while sending this e-mail, then
please excuse me. Haven't tried sending to any mailing list yet)
On 29 September 2013 23:28, Marcus Møller <mm@...> wrote:
> When trying to freeze a Python 3 application which depends on
> python-sfml (http://www.python-sfml.org/), the freeze seems to go just
> fine, but the executable crashes.
> Here's the log:
It seems to be copying the required library OK, but something is going
wrong when it tries to load it. I'd hazard a guess that Cython's module
initialisation is interacting with cx_Freeze's extension module loader
code. But I don't know what Cython could be doing.
Some background on what cx_Freeze is doing: packages are stored in a zip
file, from which only Python modules can be loaded, not extension modules.
So, when it freezes an extension module, it copies the library (.so/.pyd)
into the build directory, and creates a Python shim module at the correct
point in the package, which will load the extension module when it is
itself imported. The source for that shim is here:
I guess now you'll need to work out what Cython module initialisation does,
and how it might be interacting with that.
Get latest updates about Open Source Projects, Conferences and News.