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


Groups > comp.lang.python > #91039 > unrolled thread

Re: Cx_freeze centOS module import error

Started byLaura Creighton <lac@openend.se>
First post2015-05-22 15:35 +0200
Last post2015-05-22 15:35 +0200
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#91039 — Re: Cx_freeze centOS module import error

FromLaura Creighton <lac@openend.se>
Date2015-05-22 15:35 +0200
SubjectRe: Cx_freeze centOS module import error
Message-ID<mailman.218.1432301747.17265.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web