Can someone help me with issues using pyinstaller?
i get this error when try to compile a script
F:\Trabalho 2 - Projeções Cartograficas>pyinstaller -F Calculadora.py
95 INFO: PyInstaller: 3.5
95 INFO: Python: 3.8.0
95 INFO: Platform: Windows-10-10.0.17763-SP0
96 INFO: wrote F:\Trabalho 2 - Projeções Cartograficas\Calculadora.spec
97 INFO: UPX is not available.
99 INFO: Extending PYTHONPATH with paths
['F:\\Trabalho 2 - Projeções Cartograficas',
'F:\\Trabalho 2 - Projeções Cartograficas']
100 INFO: checking Analysis
160 INFO: checking PYZ
160 INFO: Building PYZ because PYZ-00.toc is non existent
160 INFO: Building PYZ (ZlibArchive) F:\Trabalho 2 - Projeções
Cartograficas\build\Calculadora\PYZ-00.pyz
Traceback (most recent call last):
File
"c:\users\jhona\appdata\local\programs\python\python38-32\lib\runpy.py",
line 192, in _run_module_as_main
return _run_code(code, main_globals, None,
File
"c:\users\jhona\appdata\local\programs\python\python38-32\lib\runpy.py",
line 85, in _run_code
exec(code, run_globals)
File
"C:\Users\jhona\AppData\Local\Programs\Python\Python38-32\Scripts\pyinstaller.exe\__main__.py",
line 7, in <module>
File
"c:\users\jhona\appdata\local\programs\python\python38-32\lib\site-packages\PyInstaller\__main__.py",
line 111, in run
run_build(pyi_config, spec_file, **vars(args))
File
"c:\users\jhona\appdata\local\programs\python\python38-32\lib\site-packages\PyInstaller\__main__.py",
line 63, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File
"c:\users\jhona\appdata\local\programs\python\python38-32\lib\site-packages\PyInstaller\building\build_main.py",
line 844, in main
build(specfile, kw.get('distpath'), kw.get('workpath'),
kw.get('clean_build'))
File
"c:\users\jhona\appdata\local\programs\python\python38-32\lib\site-packages\PyInstaller\building\build_main.py",
line 791, in build
exec(code, spec_namespace)
File "F:\Trabalho 2 - Projeções Cartograficas\Calculadora.spec", line 18,
in <module>
pyz = PYZ(a.pure, a.zipped_data,
File
"c:\users\jhona\appdata\local\programs\python\python38-32\lib\site-packages\PyInstaller\building\api.py",
line 98, in __init__
self.__postinit__()
File
"c:\users\jhona\appdata\local\programs\python\python38-32\lib\site-packages\PyInstaller\building\datastruct.py",
line 158, in __postinit__
self.assemble()
File
"c:\users\jhona\appdata\local\programs\python\python38-32\lib\site-packages\PyInstaller\building\api.py",
line 128, in assemble
self.code_dict = {
File
"c:\users\jhona\appdata\local\programs\python\python38-32\lib\site-packages\PyInstaller\building\api.py",
line 129, in <dictcomp>
key: strip_paths_in_code(code)
File
"c:\users\jhona\appdata\local\programs\python\python38-32\lib\site-packages\PyInstaller\building\utils.py",
line 652, in strip_paths_in_code
consts = tuple(
File
"c:\users\jhona\appdata\local\programs\python\python38-32\lib\site-packages\PyInstaller\building\utils.py",
line 653, in <genexpr>
strip_paths_in_code(const_co, new_filename)
File
"c:\users\jhona\appdata\local\programs\python\python38-32\lib\site-packages\PyInstaller\building\utils.py",
line 660, in strip_paths_in_code
return code_func(co.co_argcount, co.co_kwonlyargcount, co.co_nlocals,
co.co_stacksize,
TypeError: an integer is required (got type bytes)
I'm realy d'ont know what to do. Inexperienced developer problem, i guess.
--
You received this message because you are subscribed to the Google Groups
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/pyinstaller/62704bc5-4962-44f1-b449-a2d1945845cb%40googlegroups.com.