Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pyinstaller error #104

Closed
partrita opened this issue Sep 18, 2015 · 2 comments
Closed

pyinstaller error #104

partrita opened this issue Sep 18, 2015 · 2 comments

Comments

@partrita
Copy link
Contributor

D:\officeworks\python_GUI_programing>pyinstaller untitled.py
108 INFO: wrote D:\officeworks\python_GUI_programing\untitled.spec
126 INFO: Testing for ability to set icons, version resources...
171 INFO: ... resource update available
174 INFO: UPX is not available.
202 INFO: Processing hook hook-os
327 INFO: Processing hook hook-time
342 INFO: Processing hook hook-cPickle
414 INFO: Processing hook hook-_sre
546 INFO: Processing hook hook-cStringIO
648 INFO: Processing hook hook-encodings
664 INFO: Processing hook hook-codecs
1172 INFO: Extending PYTHONPATH with D:\officeworks\python_GUI_programing
1174 INFO: checking Analysis
1174 INFO: Building Analysis because out00-Analysis.toc non existent
1174 INFO: running Analysis out00-Analysis.toc
1174 INFO: Adding Microsoft.VC90.CRT to dependent assemblies of final executable
1234 INFO: Searching for assembly x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21
022.8_none ...
1235 INFO: Found manifest C:\Windows\WinSxS\Manifests\x86_microsoft.vc90.crt_1fc
8b3b9a1e18e3b_9.0.21022.8_none_bcb86ed6ac711f91.manifest
1237 INFO: Searching for file msvcr90.dll
1238 INFO: Found file C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_
9.0.21022.8_none_bcb86ed6ac711f91\msvcr90.dll
1238 INFO: Searching for file msvcp90.dll
1238 INFO: Found file C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_
9.0.21022.8_none_bcb86ed6ac711f91\msvcp90.dll
1240 INFO: Searching for file msvcm90.dll
1240 INFO: Found file C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_
9.0.21022.8_none_bcb86ed6ac711f91\msvcm90.dll
1335 INFO: Analyzing C:\WinPython-2.7\python-2.7.10\lib\site-packages\PyInstalle
r\loader\_pyi_bootstrap.py
1346 INFO: Processing hook hook-os
1365 INFO: Processing hook hook-site
1382 INFO: Processing hook hook-encodings
1500 INFO: Processing hook hook-time
1514 INFO: Processing hook hook-cPickle
1588 INFO: Processing hook hook-_sre
1725 INFO: Processing hook hook-cStringIO
1835 INFO: Processing hook hook-codecs
2361 INFO: Processing hook hook-pydoc
2517 INFO: Processing hook hook-email
2582 INFO: Processing hook hook-httplib
2626 INFO: Processing hook hook-email.message
2707 INFO: Analyzing C:\WinPython-2.7\python-2.7.10\lib\site-packages\PyInstalle
r\loader\pyi_importers.py
2776 INFO: Analyzing C:\WinPython-2.7\python-2.7.10\lib\site-packages\PyInstalle
r\loader\pyi_archive.py
2846 INFO: Analyzing C:\WinPython-2.7\python-2.7.10\lib\site-packages\PyInstalle
r\loader\pyi_carchive.py
2915 INFO: Analyzing C:\WinPython-2.7\python-2.7.10\lib\site-packages\PyInstalle
r\loader\pyi_os_path.py
2927 INFO: Analyzing untitled.py
3623 INFO: Processing hook hook-distutils
3776 INFO: Processing hook hook-xml
3914 INFO: Processing hook hook-xml.sax
3993 INFO: Processing hook hook-pyexpat
4092 INFO: Hidden import 'codecs' has been found otherwise
4092 INFO: Hidden import 'encodings' has been found otherwise
4092 INFO: Looking for run-time hooks
4121 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of f
inal executable
8802 INFO: Using Python library C:\WinPython-2.7\python-2.7.10\python27.dll
9011 INFO: Warnings written to D:\officeworks\python_GUI_programing\build\untitl
ed\warnuntitled.txt
9020 INFO: checking PYZ
9021 INFO: Rebuilding out00-PYZ.toc because out00-PYZ.pyz is missing
9021 INFO: Building PYZ (ZlibArchive) out00-PYZ.toc
13918 INFO: checking PKG
13919 INFO: Rebuilding out00-PKG.toc because out00-PKG.pkg is missing
13921 INFO: Building PKG (CArchive) out00-PKG.pkg
13950 INFO: checking EXE
13950 INFO: Rebuilding out00-EXE.toc because untitled.exe missing
13951 INFO: Building EXE from out00-EXE.toc
13965 INFO: Appending archive to EXE D:\officeworks\python_GUI_programing\build\
untitled\untitled.exe
13993 INFO: checking COLLECT
13994 INFO: Building COLLECT out00-COLLECT.toc
14067 INFO: Changing x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.21022.8_none_bc
b86ed6ac711f91.manifest into private assembly


D:\officeworks\python_GUI_programing>cd dist
D:\officeworks\python_GUI_programing\dist>cd untitled
D:\officeworks\python_GUI_programing\dist\untitled>python untitled.exe
  File "untitled.exe", line 1
SyntaxError: Non-ASCII character '\x90' in file untitled.exe on line 1, but no e
ncoding declared; see http://python.org/dev/peps/pep-0263/ for details

Here is my code

# -*- coding: utf-8 -*- 
from gooey import Gooey, GooeyParser

@Gooey(program_name="Transpimer")
def parse_args():
    parser = GooeyParser(description='Change file format')
    parser.add_argument('data_directory', action='store', widget='DirChooser', help="directory that contains files")
    args = parser.parse_args()
    return args

if __name__ == '__main__':
    print 'test'
    conf = parse_args()
    print conf

I can not find 'Non-ASCII character' in first line. Also there is no 'Non-ASCII character' in my code anyway.

@chriskiehl
Copy link
Owner

Unfortunately, I haven't been able to put in any work yet with regards to getting Gooey to play nice with PyInstaller. There's already an active PyInstaller Issue #58, so I'm going to close this one.

@partrita
Copy link
Contributor Author

Aww, my mistakes. I used 'python' command to 'exe' files. Still got another error anyways.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants