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

IndexError: tuple index out of range -- python 3.10 #213

Closed
mkasaii16 opened this issue Nov 15, 2021 · 3 comments
Closed

IndexError: tuple index out of range -- python 3.10 #213

mkasaii16 opened this issue Nov 15, 2021 · 3 comments

Comments

@mkasaii16
Copy link

G:\Programing\python project*>auto-py-to-exe
1353918 ERROR: An error occurred while packaging
Traceback (most recent call last):
File "C:\Users*
\AppData\Local\Programs\Python\Python310\lib\site-packages\auto_py_to_exe\packaging.py", line 131, in package
run_pyinstaller()
File "C:\Users*\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller_main_.py", line 124, in run
run_build(pyi_config, spec_file, vars(args))
File "C:\Users*
\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller_main_.py", line 58, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, kwargs)
File "C:\Users*
\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\building\build_main.py", line 818, in main
build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
File "C:\Users*
\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\building\build_main.py", line 750, in build
exec(code, spec_namespace)
File "C:\Users*
\AppData\Local\Temp\tmpflcbxrwa\owel3.spec", line 7, in
a = Analysis(
File "C:\Users*
\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\building\build_main.py", line 302, in init
self.postinit()
File "C:\Users*
\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\building\datastruct.py", line 155, in postinit
self.assemble()
File "C:\Users*
\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\building\build_main.py", line 464, in assemble
priority_scripts.append(self.graph.add_script(script))
File "C:\Users*
\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\depend\analysis.py", line 265, in add_script
self._top_script_node = super().add_script(pathname)
File "C:\Users*
\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1433, in add_script
self._process_imports(n)
File "C:\Users*
\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2850, in _process_imports
target_module = self._safe_import_hook(*import_info, kwargs)[0]
File "C:\Users*
\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2301, in _safe_import_hook
target_modules = self.import_hook(
File "C:\Users*
\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1505, in import_hook
target_package, target_module_partname = self._find_head_package(
File "C:\Users*
\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1684, in _find_head_package
target_package = self._safe_import_module(
File "C:\Users*
\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\depend\analysis.py", line 387, in _safe_import_module
return super()._safe_import_module(module_basename, module_name, parent_package)
File "C:\Users*
\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2062, in _safe_import_module
self._process_imports(n)
File "C:\Users*
\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2850, in _process_imports
target_module = self._safe_import_hook(*import_info, kwargs)[0]
File "C:\Users*
\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2301, in _safe_import_hook
target_modules = self.import_hook(
File "C:\Users*\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1505, in import_hook
target_package, target_module_partname = self._find_head_package(
File "C:\Users*
\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1684, in _find_head_package
target_package = self._safe_import_module(
File "C:\Users*\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\depend\analysis.py", line 387, in _safe_import_module
return super()._safe_import_module(module_basename, module_name, parent_package)
File "C:\Users*
\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2061, in _safe_import_module
n = self._scan_code(module, co, co_ast)
File "C:\Users*\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2645, in _scan_code
self._scan_bytecode(
File "C:\Users*
\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2749, in _scan_bytecode
for inst in util.iterate_instructions(module_code_object):
File "C:\Users*\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\util.py", line 147, in iterate_instructions
yield from iterate_instructions(constant)
File "C:\Users*
\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\util.py", line 139, in iterate_instructions
yield from get_instructions(code_object)
File "C:\Users*\AppData\Local\Programs\Python\Python310\lib\dis.py", line 338, in _get_instructions_bytes
argval, argrepr = _get_const_info(arg, constants)
File "C:\Users*
\AppData\Local\Programs\Python\Python310\lib\dis.py", line 292, in _get_const_info
argval = const_list[const_index]
IndexError: tuple index out of range


python 3.10

@brentvollebregt
Copy link
Owner

brentvollebregt commented Nov 15, 2021

See this comment. This is a bug in Python.

@mkasaii16
Copy link
Author

See this comment. This is a bug in Python.

OK I understood.
I had to use python3.9

@brentvollebregt
Copy link
Owner

See #215

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