That would make me mad, too. But, fortunately, I think it should just
take your main application file and then finds all the necessary other
modules you import. That's how it works with py2exe and InnoSetup.
Have you tried it yet?
Che
···
On Wed, Jan 12, 2011 at 3:27 PM, Fabio Spadaro <fabiolinospad@gmail.com> wrote:
Hi all.
I have an application that I would put online. I wish to begin create an
executable with pyinstaller.
Considering that my application has many script, the idea of creating many
executable it makes me mad.
I work on Linux. The best solution is pyinstaller, cx_freeze or what?
Most Linux distributions include Python. Is there a reason you can't
just install the scripts? When you create an executable, each
executable contains a copy of the Python interpreter. That gets big
rather quickly.
You could consider doing things the way the source control scheme do
(cvs, hg, git, and so on), where you have one executable with a second
command to identify exactly what action to take.
···
--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.
I imagine that PyInstaller has the same troubles as all the other similar tools with accurately determining which modules to include in the bundle. There should be a way for you to request that a specific module be included even if PyInstaller doesn't think it needs to do it. Check the PyInstaller docs.
···
On 1/12/11 2:21 PM, Fabio Spadaro wrote:
As an experiment I just created the executable only on the main.py
script and let the other
with. py. I tried to run the main.exe but it gives me this error:
ImportError: No module named anydbm
Why does the module gives an error about importing anydbm while there is
no error for the import module os, wx
Looks like you need to add the path in the pathex parameter of the
Analysis class.
···
On Jan 13, 12:05 pm, Robin Dunn <ro...@alldunn.com> wrote:
On 1/12/11 2:21 PM, Fabio Spadaro wrote:
> As an experiment I just created the executable only on the main.py
> script and let the other
> with. py. I tried to run the main.exe but it gives me this error:
> ImportError: No module named anydbm
> Why does the module gives an error about importing anydbm while there is
> no error for the import module os, wx
I imagine that PyInstaller has the same troubles as all the other
similar tools with accurately determining which modules to include in
the bundle. There should be a way for you to request that a specific
module be included even if PyInstaller doesn't think it needs to do it.
Check the PyInstaller docs.
--
Robin Dunn
Software Craftsmanhttp://wxPython.org
Mike, this looks like a great tutorial! It mentions "the same lame
wxPython script from the last article", but I found no link or an
obvious way to find that last article. Would you add one to that
page ?
Thanks,
Ray
···
On Jan 13, 2:17 pm, Mike Driscoll <kyoso...@gmail.com> wrote:
I work on Linux. The best solution is pyinstaller, cx_freeze or what?
I think the best solution (not necessarily the easiest one) is to
create packages in the native format of your target Linux platform.
That means debian packages (.deb) for Debian and Ubuntu, RPM's for
Fedora, OpenSuse, etc. That's what we do for Task Coach
(http://taskcoach.org). Feel free to browse the sources at Task Coach download | SourceForge.net
(start at the Makefile and look at make.py, and the support files in
the build.in folder).