[PyInstaller] "Cannot GetProcAddress for Py_IncRef" error when running EXE file

43 views
Skip to first unread message

bvdet

unread,
Apr 28, 2010, 12:13:04 AM4/28/10
to 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 (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:
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:
import Tkinter
from Tkconstants import *
from math import *
import textwrap
from itertools import cycle

Any suggestions?

--
You received this message because you are subscribed to the Google Groups "PyInstaller" group.
To post to this group, send email to pyins...@googlegroups.com.
To unsubscribe from this group, send email to pyinstaller...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pyinstaller?hl=en.

Giovanni Bajo

unread,
Apr 28, 2010, 5:37:42 AM4/28/10
to pyins...@googlegroups.com
On 4/28/2010 6:13 AM, bvdet wrote:
> 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 (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:
> 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:
> import Tkinter
> from Tkconstants import *
> from math import *
> import textwrap
> from itertools import cycle
>
> Any suggestions?

I have accidentally broken compatibility with Python 2.3 in PyInstaller
1.4, sorry about that.

I have just committed a fix in PyInstaller SVN trunk. Can you please try
it? It will be part of PyInstaller 1.4.1.
--
Giovanni Bajo
Develer S.r.l.
http://www.develer.com

bvdet

unread,
Apr 28, 2010, 9:45:56 AM4/28/10
to PyInstaller
Giovanni,

Thanks for the prompt response. I am on Windows and not setup for SVN.
Can you tell me which files were updated?

Bruce Vaughan
http://www.bvdetailing.com

Giovanni Bajo

unread,
Apr 28, 2010, 10:05:32 AM4/28/10
to pyins...@googlegroups.com
On 4/28/2010 3:45 PM, bvdet wrote:
> Giovanni,
>
> Thanks for the prompt response. I am on Windows and not setup for SVN.
> Can you tell me which files were updated?

Just get the snapshot in zip format here:
http://www.pyinstaller.org/changeset/830/trunk?old_path=%2F&format=zip
--
Giovanni Bajo
Develer S.r.l.
http://www.develer.com

bvdet

unread,
Apr 28, 2010, 10:17:05 AM4/28/10
to PyInstaller
Thank you Giovanni. Problem solved. I have now created my first
executable!

Bruce Vaughan
http://www.bvdetailing.com

On Apr 28, 9:05 am, Giovanni Bajo <ra...@develer.com> wrote:
> On 4/28/2010 3:45 PM, bvdet wrote:
>
> > Giovanni,
>
> > Thanks for the prompt response. I am on Windows and not setup for SVN.
> > Can you tell me which files were updated?
>
> Just get the snapshot in zip format here:http://www.pyinstaller.org/changeset/830/trunk?old_path=%2F&format=zip
> --
> Giovanni Bajo
> Develer S.r.l.http://www.develer.com
Reply all
Reply to author
Forward
0 new messages