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


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

About executable

Started byLuis José Novoa <luisjosenovoa@gmail.com>
First post2013-08-25 13:44 -0700
Last post2013-08-26 10:20 +0100
Articles 2 — 2 participants

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


Contents

  About executable Luis José Novoa <luisjosenovoa@gmail.com> - 2013-08-25 13:44 -0700
    Re: About executable Fábio Santos <fabiosantosart@gmail.com> - 2013-08-26 10:20 +0100

#52985 — About executable

FromLuis José Novoa <luisjosenovoa@gmail.com>
Date2013-08-25 13:44 -0700
SubjectAbout executable
Message-ID<63c24c62-014e-40db-bc05-4f202850636f@googlegroups.com>
Hi All. I am trying to create an executable file containing an optimization code using the pyomo package for optimization modeling along with ither packages like Numpy. When using py2exe to perform the task it generates the executable file, but when I try to run it it reports: Import Error: No module named pyomo.

Any guidance on how to solve this problem would be really appreciated.

[toc] | [next] | [standalone]


#52997

FromFábio Santos <fabiosantosart@gmail.com>
Date2013-08-26 10:20 +0100
Message-ID<mailman.232.1377508813.19984.python-list@python.org>
In reply to#52985

[Multipart message — attachments visible in raw view] — view raw

On 25 Aug 2013 21:47, "Luis José Novoa" <luisjosenovoa@gmail.com> wrote:
>
> Hi All. I am trying to create an executable file containing an
optimization code using the pyomo package for optimization modeling along
with ither packages like Numpy. When using py2exe to perform the task it
generates the executable file, but when I try to run it it reports: Import
Error: No module named pyomo.
>
> Any guidance on how to solve this problem would be really appreciated.

Have you checked py2exe's documentation? Bundling external modules with an
exe ought to be a very, very, common task. If all else fails, you can try
cx_freeze too. I think it generates windows executables too.

Good luck!

[toc] | [prev] | [standalone]


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


csiph-web