You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I'm very new in python and trying to create a standalone py.exe for python 3.9, somehow, I'm unable to achieve this.
Could you please help me to achieve this?
getting below error
Traceback (most recent call last):
File "C:\Python39\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Python39\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Python39\lib\site-packages\PyInstaller\__main__.py", line 118, in <module>
run()
File "C:\Python39\lib\site-packages\PyInstaller\__main__.py", line 111, in run
run_build(pyi_config, spec_file, **vars(args))
File "C:\Python39\lib\site-packages\PyInstaller\__main__.py", line 63, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "C:\Python39\lib\site-packages\PyInstaller\building\build_main.py", line 838, in main
build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
File "C:\Python39\lib\site-packages\PyInstaller\building\build_main.py", line 784, in build
exec(text, spec_namespace)
File "<string>", line 18, in <module>
File "C:\Python39\lib\site-packages\PyInstaller\building\api.py", line 98, in __init__
self.__postinit__()
File "C:\Python39\lib\site-packages\PyInstaller\building\datastruct.py", line 158, in __postinit__
self.assemble()
File "C:\Python39\lib\site-packages\PyInstaller\building\api.py", line 128, in assemble
self.code_dict = {
File "C:\Python39\lib\site-packages\PyInstaller\building\api.py", line 129, in <dictcomp>
key: strip_paths_in_code(code)
File "C:\Python39\lib\site-packages\PyInstaller\building\utils.py", line 654, in strip_paths_in_code
consts = tuple(
File "C:\Python39\lib\site-packages\PyInstaller\building\utils.py", line 655, in <genexpr>
strip_paths_in_code(const_co, new_filename)
File "C:\Python39\lib\site-packages\PyInstaller\building\utils.py", line 654, in strip_paths_in_code
consts = tuple(
File "C:\Python39\lib\site-packages\PyInstaller\building\utils.py", line 655, in <genexpr>
strip_paths_in_code(const_co, new_filename)
File "C:\Python39\lib\site-packages\PyInstaller\building\utils.py", line 662, 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)
Command exited with code 1
Thanks
The text was updated successfully, but these errors were encountered:
Hi,
I'm very new in python and trying to create a standalone py.exe for python 3.9, somehow, I'm unable to achieve this.
Could you please help me to achieve this?
getting below error
Thanks
The text was updated successfully, but these errors were encountered: