age
age copied to clipboard
Pypi instruction for installing apache-age-python is not correct
Dependency mismatch at Apache Age Repo and pypi package
This is happening because the project decription at pypi.org is not correct.
apache/age python driver repo dependency requirements.txt
pip install psycopg2 --no-binary :all: psycopg2
pip install antlr4-python3-runtime==4.11.1
pip install setuptools
pypi.org dependency requirements.txt
sudo apt-get install python3-dev libpq-dev
pip install --no-binary :all: psycopg2
pip install antlr4-python3-runtime
By followig pypi.org project description instruction user getting this error
File "/home/moontasir/Desktop/pyage/myenv/lib/python3.10/site-packages/antlr4/atn/ATNDeserializer.py", line 50, in checkVersion
raise Exception("Could not deserialize ATN with version " + str(version) + " (expected " + str(SERIALIZED_VERSION) + ").")
Exception: Could not deserialize ATN with version (expected 4).
@Munmud Apache AGE doesn't support external links that we have no control over. This specific link was brought to our attention a few days ago and we are removing references to PYPI until it is under our control.
To resolve the issue, I would recommend following the instructions from the Apache Age repository's requirements.txt file instead of the PyPI project description instructions. This should ensure that you are using the correct versions of the dependencies that are compatible with Apache Age.
You can install the recommended dependencies by running the following commands:
pip install psycopg2 --no-binary :all: psycopg2
pip install antlr4-python3-runtime==4.11.1
pip install setuptools
If you continue to experience issues, it may be helpful to check the versions of the installed dependencies using pip freeze, and compare them to the requirements specified in the requirements.txt file.
Based on your error message, it seems that you need to install ANTLR runtime version 4. To do so, you can try running
pip install antlr4-python3-runtime==4.11.1
. Additionally, you can try installing psycopg2
using
pip install --no-binary :all: psycopg2
and setuptools
using pip install setuptools
If these steps don’t resolve your issue, you can try installing python3-dev
and libpq-dev
using
sudo apt-get install python3-dev libpq-dev
and then running pip install --no-binary :all: psycopg2
and
pip install antlr4-python3-runtime
again
This issue is stale because it has been open 45 days with no activity. Remove "Abondoned" label or comment or this will be closed in 7 days.
This issue was closed because it has been stalled for further 7 days with no activity.