You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Most of the Yacc parser (and maybe other portions) were written in Python 2. Since Python 2 was deprecated in 2020, we should update the codebase to use Python 3.
The text was updated successfully, but these errors were encountered:
To add, Python 2.7 was discontinued before the osx-arm64 platform was released, so no such build exists. Therefore python 2 scripts are very unfriendly to users of MacOS built on Apple chips
@Xiaoven As a workaround for the time being, it looks like you can compile by using Docker and building for amd64 from the python:2 image and running in in x86 mode w/ amd64 emulation mode enabled.
@Xiaoven As a workaround for the time being, it looks like you can compile by using Docker and building for amd64 from the python:2 image and running in in x86 mode w/ amd64 emulation mode enabled.
I addressed the issue using the 2to3 tool and manually corrected a few errors stemming from type removal in Python 3, such as the usage of isinstance(var, file). Throughout the process, ChatGPT provided invaluable assistance by offering solutions and guidance.
Most of the Yacc parser (and maybe other portions) were written in Python 2. Since Python 2 was deprecated in 2020, we should update the codebase to use Python 3.
The text was updated successfully, but these errors were encountered: