Cx_freeze centOS module import error

Laura Creighton lac at openend.se
Fri May 22 09:35:39 EDT 2015


In a message of Fri, 22 May 2015 11:31:12 +0530, Sreenath Nair writes:
>I'm trying to build a script into a binary using cx_freeze. Problem is that once the binary is built then it starts throwing ImportError....Invoking the source via shell works fine. Can someone clarify why this behavior when freezing the source?
>
>Thank you.
>
>Sent from my Windows Phone
>-- 
>https://mail.python.org/mailman/listinfo/python-list

If it cannot import any modules, then chances are you have not
asked it to.  Post your setup.py, because there is more than one way to
do this.

But sometimes, especially with conditional imports, it just
doesn't get it correctly.

cx_freeze --include-modules <the one it forgot>
will force it to include it.

Laura



More information about the Python-list mailing list