Mcmillan Installer without python.dll ?

Michael Peuser mpeuser at web.de
Sat Aug 23 16:56:16 EDT 2003


Hi,
I am still trying to deploy a python program as a single exe file. There are
some possibilities if you want to include tkxx.dll, tclxx.dll and
pythonxx.dll. If not it tirens out to be more difficult. I was without luck
using py2exe (I posted here some days ago).

Using Mcmillan's Installer is a step forward. The tool is straightforward to
use and has sufficient documentation (and a lot of options).
I manipulated
     a.binaries
as well as used
    exclude_binaries
to get rid of pythonxx.dll and Tcl/Tk in the exe file. This reduced size
from 1,4 MB to 900 k when removing tcl/tk and the exe worked still fine.

Removing pythonxx.dll reduced it to 300k which was what I intended. However
now funny errors occur when starting the exe:

Traceback (most recent call last):
  File "<string>", line 5, in ?
  File "C:\Python\Downloads\Installer\iu.py", line 277, in importHook
    mod = _self_doimport(nm, ctx, fqname)
  File "C:\Python\Downloads\Installer\iu.py", line 347, in doimport
    mod = director.getmod(nm)
  File "C:\Python\Downloads\Installer\iu.py", line 184, in getmod
    mod = owner.getmod(nm)
  File "C:\Python\Downloads\Installer\archive.py", line 358, in getmod
    raise ImportError, "PYZ entry '%s' (%s) is not a valid code object" %
(nm, r
epr(co))
ImportError: PYZ entry 'psyco' (0j) is not a valid code object


(psyco was by chance the first imported modul.)

Any suggestions?

Kindly
Michael P






More information about the Python-list mailing list