age icon indicating copy to clipboard operation
age copied to clipboard

Pypi instruction for installing apache-age-python is not correct

Open Munmud opened this issue 1 year ago • 3 comments

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 avatar Mar 31 '23 08:03 Munmud

@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.

jrgemignani avatar Mar 31 '23 15:03 jrgemignani

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.

hammadsaleemm avatar Apr 12 '23 12:04 hammadsaleemm

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

pawankukreja01 avatar Oct 30 '23 12:10 pawankukreja01

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.

github-actions[bot] avatar May 11 '24 00:05 github-actions[bot]

This issue was closed because it has been stalled for further 7 days with no activity.

github-actions[bot] avatar May 19 '24 00:05 github-actions[bot]