I get the error 'tuple index out of range' and am very confused what is causing this issue.
The Python code runs fine, and I am only getting an error compiling it in PyInstaller.
I get the error 'tuple index out of range' and am very confused what is causing this issue.
The Python code runs fine, and I am only getting an error compiling it in PyInstaller.
It was solved using these two other answers:
How can I create a single executable file in Windows 10 with Scrapy and PyInstaller?
Scrapy PyInstaller OSError: could not get source code / twisted.internet.defer._DefGen_Return
The issue seems to happen only for the Python 3.10 version.
I faced the same issue recently and solved it by upgrading Python to version 3.10.2.
This issue is fixed in Python version 3.10.1 and later.