Create an EXE file with PyInstaller

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bvdet
    Recognized Expert Specialist
    • Oct 2006
    • 2851

    Create an EXE file with PyInstaller

    I wrote a GUI script using Tkinter in Python 2.3. The script works well when run from PythonWin, Idle and from the command prompt. I tested it in Python 2.3 and 2.6. I managed to create an EXE file using PyInstaller and the batch file below. Unfortunately, every time I run the EXE file, I receive this error message in what appears to be a Tk widget: "Cannot GetProcAddress for Py_IncRef". Then I get the ubiquitous Microsoft send/don't send error report widget.

    The batch file:
    Code:
    set PIP=C:\Python23\Lib\site-packages\pyinstaller-1.4\
    
    c:\Python23\python %PIP%Makespec.py --onefile --noconsole --upx --ascii --tk hiproof.py
    
    c:\Python23\python %PIP%Build.py hiproof.spec
    Here are the imports:
    Code:
    import Tkinter
    from Tkconstants import *
    from math import *
    import textwrap
    from itertools import cycle
    I would post the code if I thought it would help. Any suggestions?
  • bvdet
    Recognized Expert Specialist
    • Oct 2006
    • 2851

    #2
    It turns out there was a bug in PyInstaller 1.4 for Python 2.3 and 2.4. The maintainer submitted a fix this AM. It worked perfectly after I loaded the updated code.

    Comment

    Working...