Dirk's Tech Findings

py2exe: "IndexError: tuple index out of range"

Publication date: 2019-10-16

Issue: py2exe yields "IndexError: tuple index out of range"

py2exe converts Python scripts into executable Windows applications. I wanted to use is for my project ft-Explore.

Solution: Use older Python version or alternative tool

Python redesigned the bytecode for CPython so that (currently) py2exe is only compatible with Python 3.4. To avoid the error, thus these older Python version needs to be used.

Since I did not like this workaround, I used another tool instead of py2exe: cx_Freeze

Back to topic list...