473,405 Members | 2,154 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Create an EXE file with PyInstaller

bvdet
2,851 Expert Mod 2GB
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:
Expand|Select|Wrap|Line Numbers
  1. set PIP=C:\Python23\Lib\site-packages\pyinstaller-1.4\
  2.  
  3. c:\Python23\python %PIP%Makespec.py --onefile --noconsole --upx --ascii --tk hiproof.py
  4.  
  5. c:\Python23\python %PIP%Build.py hiproof.spec
Here are the imports:
Expand|Select|Wrap|Line Numbers
  1. import Tkinter
  2. from Tkconstants import *
  3. from math import *
  4. import textwrap
  5. from itertools import cycle
I would post the code if I thought it would help. Any suggestions?
Apr 28 '10 #1
1 3255
bvdet
2,851 Expert Mod 2GB
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.
Apr 29 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

13
by: Kevin Walzer | last post by:
Which of the Windows/Unix package builders for Python applications is capable of creating single-file executables? I'm thinking of: 1. py2exe 2. Mcmillan Installer/PyInstaller 3. cxfreeze ...
2
by: Podi | last post by:
I followed the instructions from http://starship.python.net/crew/theller/moin.cgi/SingleFileExecutable Copied the second setup.nsi, setup.py, single.py and everything works like a champ. I...
1
by: kbperry | last post by:
Hi all, I am pretty confused on this? While pyinstaller has a "MakeCOMServer.py" thing, it seems to blow up every time I run it. It keeps complaining that a dictionary that I have has...
1
by: DierkErdmann | last post by:
Hi ! I am trying to create an exe file using pyinstaller. Running the created exe-File gives the error message "" Traceback (most recent call last): File "<string>", line 8, in <module> File...
0
by: Greg Copeland | last post by:
Anyone had any luck on using PyInstaller to package up Pygame? I posted to the PyInstaller group some time ago and have yet to receive a reply. Anyone have any tips to offer here? A...
0
by: linea | last post by:
When I install PyInstaller, it has some error. cd source/linux python ./Make.py Warning: could not find python static library at :/usr/lib/python2.5/config/libpython2.5.a Now run "make" to...
0
by: Thin Myrna | last post by:
I gave PyInstaller a shot and was pleased by the results so far. The usual problems occurred with missing data and icon files (the latter for splash screens only). However, it's a bit hard for me...
1
by: Mark Delon | last post by:
Hi, I need to generate single EXEcutable via PyInstaller. It will be genereated -i get one single executable. AFTER CALL (exe) I get an error: "no module named _gt" Build command: 1....
2
by: Mark Delon | last post by:
Hi, My Python executable created with PyInstaller is too slow by starting... It takes about 15 secs.!!! I am using PyQt4 libraries for creating my very simple GUI-application. -How can I...
0
by: oyster | last post by:
you can try jungle ( http://www.suda-chen.biz/?page_id=21 ) also
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.