Fixing Phoenix and SQLAlchemy Compatibility Issues in Airflow DAG
I am using phoenix in my airflow dag to automate spans evaluations. I'm getting below error in airflow -
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/phoenix/db/__init__.py", line 1, in <module>
from .engines import get_printable_db_url
File "/usr/local/lib/python3.10/dist-packages/phoenix/db/engines.py", line 16, in <module>
from sqlalchemy import URL, StaticPool, event, make_url
ImportError: cannot import name 'URL' from 'sqlalchemy' (/usr/local/lib/python3.10/dist-packages/sqlalchemy/__init__.py)These are the versions that are installed in my python env -
arize-phoenix == 9.0.1
airflow == 2.10.0
sqlalchemy == 2.0.40
Can someone help how to fix this? OR Help me identify which sqlalchemy version does phoenix package requires, so that I can try installing the same? Thanks in advance.
