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

Unable to create standalone py.exe for python 3.9 #50

Open
PriyanshuChandel opened this issue Oct 25, 2022 · 0 comments
Open

Unable to create standalone py.exe for python 3.9 #50

PriyanshuChandel opened this issue Oct 25, 2022 · 0 comments

Comments

@PriyanshuChandel
Copy link

PriyanshuChandel commented Oct 25, 2022

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

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

1 participant