Hi All,
On Fri, Sep 26, 2008 at 11:54 PM, Infinity77 wrote:
>
> Hi All,
>
> it has been reported by some users of GUI2Exe on Windows, and it
> happens to me also on Ubuntu Hardy, that a very simple Setup script
> fails with a struct error with PyInstaller. The full build output for
> the builtest/test1.py for me is below:
I think I have fixed this issue, although it should really be a
PyInstaller job to check if a property is a string or a unicode
object, and do the proper conversion to string. Anyway, after building
my executable, I always get the message:
ImportError: no module named encodings
and whatever I do (extending the path, the import hook, includes,
anything), I always get this message. I attach my setup script. I am
using the test1.py file in buildtests.
Thank you for your suggestions.
# ======================================================#
# File automagically generated by GUI2Exe version 0.2alpha
# Andrea Gavana, 01 April 2007
# ======================================================#
# Process the includes and excludes first
data_files = []
includes = []
excludes = ['Tkconstants', 'Tkinter', '_gtkagg', '_tkagg', 'bsddb',
'curses', 'email', 'pywin.debugger', 'pywin.debugger.dbgcon',
'pywin.dialogs', 'tcl']
packages = []
dll_excludes = []
dll_includes = []
# Set up the more obscure PyInstaller runtime options
options = [('v', '', 'OPTION'), ('W ignore', '', 'OPTION')]
# This is a place where the user custom code may go. You can do almost
# whatever you want, even modify the data_files, includes and friends
# here as long as they have the same variable name that the setup call
# below is expecting.
# No custom code added
# The setup for PyInstaller is different from py2exe. Here I am going to
# use some common spec file declarations
analysis =
Analysis(['C:\\Python25\\Lib\\site-packages\\PyInstaller\\support\\useUnicode.py',
'C:\\Python25\\Lib\\site-packages\\PyInstaller\\support\\_mountzlib.py',
'C:\\Python25\\Lib\\site-packages\\PyInstaller\\buildtests\\test1.py'],
pathex=['C:\\Python25\\Lib\\encodings',
u'C:\\Python25\\Lib\\site-packages\\PyInstaller\\buildtests'],
hookspath=['C:\\Python25\\Lib\\encodings'],
excludes=excludes)
pyz = PYZ(analysis.pure, level=9)
executable = EXE( pyz,
analysis.scripts + includes + packages + options,
analysis.binaries - dll_excludes + dll_includes + data_files,
name=r"pyinstaller/test_wx.exe",
debug=True,
console=True,
strip=False,
upx=False,
icon=None,
version=None)
# This is a place where any post-compile code may go.
# You can add as much code as you want, which can be used, for example,
# to clean up your folders or to do some particular post-compilation
# actions.
# No post-compilation code added
# And we are done. That's a setup script :-D
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"PyInstaller" group.
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
-~----------~----~----~----~------~----~------~--~---