Hello,
I am running 64 bit windows 7 .
I have both 32 bit python and 64 bit python resident on my system. I
am trying to build a standalone exe file for my python application to
run on 32 bit Windows.
The application is a wxpython application that creates a python script to a
temp file that is called by subprocess.call from within the wxpython
application.
The eventual output is a pdf file written using the reportlab library.
After cloning pyinstaller from github, I ran the
c:\Python_32\python.exe pyinstaller.py C:\myproject\mymain.py
I could get an executable that launched right. I have wxpython,
reportlab , pyyaml and other c-code containing python package dependencies.
However at runtime
I am getting a "ImportError: DLL load failed: %1 is
not a valid Win32 application."
I am wondering how to build a 32 bit standalone application on my
machine and troubleshoot why the binary I have built with 32 bit
python is failing.
Thanks
Hari
P.S: The older google groups frontend to this newgroup only gives an option
to Mail the moderators. I sent two emails using that interface , but didnt
see the message on the newsgroup .
The detailed error I see for the 32 bit app is :
Traceback (most recent call last):
File "H:\test_scr.py", line 2, in <module>
from gridder import masterplate,plate,component,buffercomponent
File "C:\Python27\lib\site-packages\gridder\masterplate.py", line 12, in
<modu
le>
import pdfwriterlandscape, buffercomponent, awarepdfwriter, well
File "C:\Python27\lib\site-packages\gridder\pdfwriterlandscape.py", line
6, in
<module>
from reportlab.pdfgen import canvas
File "C:\Python27\lib\site-packages\reportlab\pdfgen\canvas.py", line 23,
in <
module>
from reportlab import rl_config
File "C:\Python27\lib\site-packages\reportlab\rl_config.py", line 235, in
<mod
ule>
_startUp()
File "C:\Python27\lib\site-packages\reportlab\rl_config.py", line 185, in
_sta
rtUp
from reportlab.lib.utils import rl_isdir
File "C:\Python27\lib\site-packages\reportlab\lib\utils.py", line 437, in
<mod
ule>
import urllib2
File "C:\Python27\lib\urllib2.py", line 94, in <module>
import httplib
File "C:\Python27\lib\httplib.py", line 71, in <module>
import socket
File "C:\Python27\lib\socket.py", line 47, in <module>
import _socket
ImportError: DLL load failed: %1 is not a valid Win32 application.
--
You received this message because you are subscribed to the Google Groups
"PyInstaller" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/pyinstaller/-/B_kcsSDXz88J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pyinstaller?hl=en.