Hi Everyone, We are trying to upgrade the Packages...
# troubleshoot
h
Hi Everyone, We are trying to upgrade the Packages in Airflow , but it is upgrading the version of Airflow. Any suggestions how to resolve Commands used- python3 -m pip install 'acryl-datahub==0.8.32' python3 -m pip install 'acryl-datahub[airflow,kafka,mysql,athena,glue,hive,kafka-connect,ldap,looker,lookml,okta,postgres,druid,redshift,sagemaker,snowflake,sql-profiles,sqlalchemy,datahub-rest,datahub-kafka,datahub-business-glossary,great-expectations,s3]==0.8.32' Attaching the logs for reference
@square-activity-64562 @dazzling-judge-80093 - Any suggestions ?
d
Can you specify a constraints file with that you can make sure it does not try to touch any existing package.
h
@dazzling-judge-80093 - It is trying to upgrade Airflow itself
Are we able to give a constraint for airflow ?
d
In our setup.py we only say this:
Copy code
"apache-airflow >= 1.10.2",
You can specify constraints file to your pip command ->
Copy code
pip install -c <https://raw.githubusercontent.com/apache/airflow/constraints-${airflow_version}/constraints-3.7.txt> 'acryl-datahub==0.8.32'
h
Thank you @dazzling-judge-80093.Will try it out and update here.
@dazzling-judge-80093 - Getting this - The conflict is caused by: acryl-datahub[airflow,athena,datahub-business-glossary,datahub-kafka,datahub-rest,druid,glue,great-expectations,hive,kafka,kafka-connect,ldap,looker,lookml,mysql,okta,postgres,redshift,s3,sagemaker,snowflake,sql-profiles,sqlalchemy] 0.8.32 depends on typing-extensions>=3.10.0.2 The user requested (constraint) typing-extensions==3.7.4.3
d
Which version of python and airflow do you have?
h
@dazzling-judge-80093 Python 3.7.9 airflow version 2.0.2
d
Please, can you try with acryl datahub
0.8.34.2
there I fixed this issue with the constraints file of Airflow 2.0.2
h
I see , let me try it out
@dazzling-judge-80093 - Getting this when we try to install the 0.8.34.2 version
Copy code
ERROR: Cannot install acryl-datahub[airflow,athena,datahub-business-glossary,datahub-kafka,datahub-rest,druid,glue,great-expectations,hive,kafka,kafka-connect,ldap,looker,lookml,mysql,okta,postgres,redshift,s3,sagemaker,snowflake,sql-profiles,sqlalchemy]==0.8.34.2 because these package versions have conflicting dependencies.



The conflict is caused by:
acryl-datahub[airflow,athena,datahub-business-glossary,datahub-kafka,datahub-rest,druid,glue,great-expectations,hive,kafka,kafka-connect,ldap,looker,lookml,mysql,okta,postgres,redshift,s3,sagemaker,snowflake,sql-profiles,sqlalchemy] 0.8.34.2 depends on grpcio==1.44.0; extra == "kafka"
The user requested (constraint) grpcio==1.37.0
@dazzling-judge-80093 - Still facing issues when installing packages ( trying with the latest 0.8.28 version of datahub )