Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #91039

Re: Cx_freeze centOS module import error

From Laura Creighton <lac@openend.se>
Subject Re: Cx_freeze centOS module import error
References <BLU402-EAS2387E99A041434F7B59E5BEE3C00@phx.gbl>
Date 2015-05-22 15:35 +0200
Newsgroups comp.lang.python
Message-ID <mailman.218.1432301747.17265.python-list@python.org> (permalink)

Show all headers | View raw


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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Cx_freeze centOS module import error Laura Creighton <lac@openend.se> - 2015-05-22 15:35 +0200

csiph-web