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

PyPi package installs antlr version for python 2 and 3 #150

Open
cirrostratus1 opened this issue Mar 17, 2022 · 0 comments
Open

PyPi package installs antlr version for python 2 and 3 #150

cirrostratus1 opened this issue Mar 17, 2022 · 0 comments
Assignees

Comments

@cirrostratus1
Copy link
Contributor

When installing the wheel on pypi (version 0.2.5) it installs both antlr versions antlr4-python2-runtime and antlr4-python3-runtime. This results in the following error when using rtamt:

ModuleNotFoundError: No module named '__builtin__'

Can be confirmed by inspecting the METADATA file in the current wheel:

Requires-Dist: antlr4-python2-runtime (<4.6,>=4.5)
Requires-Dist: antlr4-python3-runtime (<4.6,>=4.5)
Requires-Dist: enum34

Compared to a fresh build in version 0.2.8

Requires-Dist: antlr4-python2-runtime (<4.6,>=4.5) ; python_version < "3"
Requires-Dist: enum34 ; python_version < "3.4"
Requires-Dist: antlr4-python3-runtime (<4.6,>=4.5) ; python_version >= "3"

Tested on pip==22.0.4 and python=3.7 (anaconda).

Building the universal wheel manually from the current source fixes the issue.

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