Happens to me as well when using Python 3.8.1. I created a new virtual
environment with Python 3.7.4 and the packaging succeeds. Will later try to
install/run the packaged app...
On Thursday, December 26, 2019 at 5:48:04 PM UTC+2, Brandon Calitz wrote:
>
> (venv) C:\Users\User\Desktop\Python\LoginandReg>pyinstaller --onefile -w
> app.py
> 94 INFO: PyInstaller: 3.5
> 94 INFO: Python: 3.8.1
> 95 INFO: Platform: Windows-10-10.0.18362-SP0
> 96 INFO: wrote C:\Users\User\Desktop\Python\LoginandReg\app.spec
> 100 INFO: UPX is not available.
> 101 INFO: Extending PYTHONPATH with paths
> ['C:\\Users\\User\\Desktop\\Python\\LoginandReg',
> 'C:\\Users\\User\\Desktop\\Python\\LoginandReg']
> 102 INFO: checking Analysis
> 248 INFO: checking PYZ
> 248 INFO: Building because toc changed
> 249 INFO: Building PYZ (ZlibArchive)
> C:\Users\User\Desktop\Python\LoginandReg\build\app\PYZ-00.pyz
> Traceback (most recent call last):
> File
> "C:\Users\User\AppData\Local\Programs\Python\Python38\lib\runpy.py", line
> 193, in _run_module_as_main
> return _run_code(code, main_globals, None,
> File
> "C:\Users\User\AppData\Local\Programs\Python\Python38\lib\runpy.py", line
> 86, in _run_code
> exec(code, run_globals)
> File
> "C:\Users\User\Desktop\Python\LoginandReg\venv\Scripts\pyinstaller.exe\__main__.py",
>
> line 9, in <module>
> File
> "c:\users\user\desktop\python\loginandreg\venv\lib\site-packages\PyInstaller\__main__.py",
>
> line 111, in run
> run_build(pyi_config, spec_file, **vars(args))
> File
> "c:\users\user\desktop\python\loginandreg\venv\lib\site-packages\PyInstaller\__main__.py",
>
> line 63, in run_build
> PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
> File
> "c:\users\user\desktop\python\loginandreg\venv\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\user\desktop\python\loginandreg\venv\lib\site-packages\PyInstaller\building\build_main.py",
>
> line 791, in build
> exec(code, spec_namespace)
> File "C:\Users\User\Desktop\Python\LoginandReg\app.spec", line 18, in
> <module>
> pyz = PYZ(a.pure, a.zipped_data,
> File
> "c:\users\user\desktop\python\loginandreg\venv\lib\site-packages\PyInstaller\building\api.py",
>
> line 98, in __init__
> self.__postinit__()
> File
> "c:\users\user\desktop\python\loginandreg\venv\lib\site-packages\PyInstaller\building\datastruct.py",
>
> line 158, in __postinit__
> self.assemble()
> File
> "c:\users\user\desktop\python\loginandreg\venv\lib\site-packages\PyInstaller\building\api.py",
>
> line 128, in assemble
> self.code_dict = {
> File
> "c:\users\user\desktop\python\loginandreg\venv\lib\site-packages\PyInstaller\building\api.py",
>
> line 129, in <dictcomp>
> key: strip_paths_in_code(code)
> File
> "c:\users\user\desktop\python\loginandreg\venv\lib\site-packages\PyInstaller\building\utils.py",
>
> line 652, in strip_paths_in_code
> consts = tuple(
> File
> "c:\users\user\desktop\python\loginandreg\venv\lib\site-packages\PyInstaller\building\utils.py",
>
> line 653, in <genexpr>
> strip_paths_in_code(const_co, new_filename)
> File
> "c:\users\user\desktop\python\loginandreg\venv\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)
>
>
>
>
--
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/3c908c1a-2af1-4e6a-ab7a-f3bd7fafc1fb%40googlegroups.com.