mirror of
https://github.com/brentvollebregt/auto-py-to-exe.git
synced 2026-04-25 19:55:49 +03:00
[GH-ISSUE #215] IndexError: tuple index out of range (Python 3.10) #196
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @brentvollebregt on GitHub (Nov 16, 2021).
Original GitHub issue: https://github.com/brentvollebregt/auto-py-to-exe/issues/215
Recently PyInstaller 4.6 was released which added support for Python 3.10. As of auto-py-to-exe v2.11.0, PyInstaller 4.6 is a requirement.
It has been noted that PyInstaller 4.6 does not fully support Python 3.10 due to a bug in CPython. The PyInstaller discussion related to this issue can be found here and the associated CPython bug can be found here.
This bug cannot be fixed in auto-py-to-exe or PyInstaller so we must wait for a new Python 3.10.x release with a fix.
@Barak911 commented on GitHub (Nov 24, 2021):
I found a solution to this problem.
This is a python 3.10 bug, and after applying the fix everything related to pyinstaller started working properly.
"
so basically you have to go to the folder "Python310\Lib" and edit the file 'dis.py'.
In the 'dis.py' file you have to find this "def _unpack_opargs" and inside the else statement write a new line with this: "extended_arg = 0".
I did something like that:
and everything is working fine now.
"
https://github.com/pyinstaller/pyinstaller/issues/6301#issuecomment-974927257
@ghost commented on GitHub (Dec 22, 2021):
TSYM Worked perfectly!!
@brentvollebregt commented on GitHub (Jan 8, 2022):
Python 3.10.1 fixes this now and I have added a warning to auto-py-to-exe in 2.14.0. Closing as this is no longer an issue regarding Python 3.10.1 is not used.
@4ggm commented on GitHub (Jan 22, 2022):
pls help
@bobbob8113 commented on GitHub (Mar 21, 2022):
yo
@bobbob8113 commented on GitHub (Mar 21, 2022):
i can't find so basically you have to go to the folder "Python310\Lib" and edit the file 'dis.py'.
In the 'dis.py' file you have to find this "def _unpack_opargs" and inside the else statement write a new line with this: "extended_arg = 0".
@brentvollebregt commented on GitHub (Mar 21, 2022):
@bobbob8113 I recommend upgrading to Python 3.10.1 or above if you have the option to
@bobbob8113 commented on GitHub (Mar 21, 2022):
I have python 3.10.4 and it still give the same errors
@brentvollebregt commented on GitHub (Mar 22, 2022):
@bobbob8113 you may have Python 3.10.4, but are you 100% sure it's being used? Did you previously (or still do) have Python 3.10.0 installed?
@bobbob8113 commented on GitHub (Mar 25, 2022):
Ye previsously but i update alrdy and using anaconda
@brentvollebregt commented on GitHub (Mar 25, 2022):
@bobbob8113 are there any warnings at the top of auto-py-to-exe? Maybe something that says "You are using Python 3.10.0. This version of Python has a bug that causes PyInstaller to fail."?
@lloydyu24 commented on GitHub (Jun 2, 2022):
Why am I still getting the "You are using Python 3.10.0. This version of Python has a bug that causes PyInstaller to fail.
Please upgrade to Python 3.10.1 or above." message after updating my Python to the latest Python 3.10.4?
@brentvollebregt commented on GitHub (Jun 2, 2022):
@lloydyu24 the line that controls that message is here - the only way you can get the message is if you are running Python 3.10.0.
Maybe you have installed another installation of Python (3.10.4) but are still running auto-py-to-exe with the previous installation (3.10.0).
@shinyong1 commented on GitHub (Jun 21, 2025):
바라크911
감사합니다. 덕붙에 문제를 해결했습니다.
ChatGpt에도 해결방안이 없었는데 ... 감사합니다.
바라크911 감사합니다. 에러를 잘 해결 했습니다. 너무 너무 감사합니다.