Hi again,

I'm still struggling with PyInstaller and PyTables. I decided to start
from scratch so I updated PyInstaller from svn and repeat. The result
is now quite different,
but it still doesn't work.

The script I want to compress is:

#!/usr/bin/env python
# -*- coding: utf-8 -*-

import tables

print 'hola'

The spec file is:

# -*- mode: python -*-
a = Analysis([os.path.join(HOMEPATH,'support\\_mountzlib.py'),
os.path.join(HOMEPATH,'support\\useUnicode.py'), 'prova.py'],
             pathex=['C:\\Documents and Settings\\vmas\\Mis
documentos'])
pyz = PYZ(a.pure)
exe = EXE(pyz,
          a.scripts,
          exclude_binaries=1,
          name=os.path.join('build\pyi.win32\prova', 'prova.exe'),
          debug=True,
          strip=True,
          upx=True,
          console=True)
coll = COLLECT( exe,
               a.binaries,
               a.zipfiles,
               strip=False,
               upx=True,
               name=os.path.join('dist', 'prova'))

The output of Build.py is:

C:\Documents and Settings\vmas\Mis documentos>python %PIP%\Build.py
prova.spec
checking Analysis
building Analysis because outAnalysis0.toc non existent
running Analysis outAnalysis0.toc
Analyzing: C:\Documents and Settings\vmas\Mis documentos\PyInstaller
\support\_mo
untzlib.py
Analyzing: C:\Documents and Settings\vmas\Mis documentos\PyInstaller
\support\use
Unicode.py
Analyzing: prova.py
Warnings written to C:\Documents and Settings\vmas\Mis documentos
\warnprova.txt
checking PYZ
rebuilding outPYZ1.toc because outPYZ1.pyz is missing
building PYZ outPYZ1.toc
checking PKG
rebuilding outPKG3.toc because outPKG3.pkg is missing
building PKG outPKG3.pkg
checking EXE
rebuilding outEXE2.toc because prova.exe missing
building EXE from outEXE2.toc
                       Ultimate Packer for eXecutables
                          Copyright (C) 1996 - 2008
UPX 3.03w       Markus Oberhumer, Laszlo Molnar & John Reiser   Apr
27th 2008

        File size         Ratio      Format      Name
   --------------------   ------   -----------   -----------
Compressing C:\Documents and Settings\vmas\Mis documentos\PyInstaller
\bincache11
    125440 ->     49664   39.59%    win32/pe     run_7dc.exe

Packed 1 file.
Appending archive to EXE C:\Documents and Settings\vmas\Mis documentos
\build\pyi
.win32\prova\prova.exe
checking COLLECT
building because outCOLLECT4.toc missing or bad
building COLLECT outCOLLECT4.toc

And the error I get when I execute the script is:

C:\Documents and Settings\vmas\Mis documentos\dist\prova>python
prova.exe
  File "prova.exe", line 1
SyntaxError: Non-ASCII character '\x90' in file prova.exe on line 1,
but no enco
ding declared; see http://www.python.org/peps/pep-0263.html for
details


Suggestions are welcome.

Vicent
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to