RafayAK commented on issue #18075: URL: https://github.com/apache/airflow/issues/18075#issuecomment-915151609
@potiuk just tried building my dockerfile again with the following: ```bash # install Airflow with constraints file for compatibility ARG AIRFLOW_VERSION=2.0.1 ARG PYTHON_VER=3.7 ARG CONSTRAINT_URL="https://raw.githubusercontent.com/apache/airflow/constraints-${AIRFLOW_VERSION}/constraints-${PYTHON_VER}.txt" RUN pip3 install --upgrade pip && \ pip install -U pip setuptools wheel \ && pip install "apache-airflow[statsd]==${AIRFLOW_VERSION}" --constraint "${CONSTRAINT_URL}" \ && pip install pyOpenSSL \ && pip install ffmpeg-python ``` It results in the following error: ``` Downloading Flask_SQLAlchemy-2.4.4-py2.py3-none-any.whl (17 kB) Collecting Flask-OpenID<2,>=1.2.5 Downloading Flask-OpenID-1.2.5.tar.gz (43 kB) ERROR: Command errored out with exit status 1: command: /usr/local/bin/python3.7 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-m76ljhex/flask-openid_ea4f1905c75b4a29824cae4d51521afd/setup.py'"'"'; __file__='"'"'/tmp/pip-install-m76ljhex/flask-openid_ea4f1905c75b4a29824cae4d51521afd/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-ccsz9_u0 cwd: /tmp/pip-install-m76ljhex/flask-openid_ea4f1905c75b4a29824cae4d51521afd/ Complete output (1 lines): error in Flask-OpenID setup command: use_2to3 is invalid. ---------------------------------------- WARNING: Discarding https://files.pythonhosted.org/packages/d1/a2/9d1fba3287a65f81b9d1c09c4f7cb16f8ea4988b1bc97ffea0d60983338f/Flask-OpenID-1.2.5.tar.gz#sha256=5a8ffe1c8c0ad1cc1f5030e1223ea27f8861ee0215a2a58a528cc61379e5ccab (from https://pypi.org/simple/flask-openid/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. INFO: pip is looking at multiple versions of flask to determine which version is compatible with other requirements. This could take a while. INFO: pip is looking at multiple versions of dill to determine which version is compatible with other requirements. This could take a while. INFO: pip is looking at multiple versions of cffi to determine which version is compatible with other requirements. This could take a while. INFO: pip is looking at multiple versions of cryptography to determine which version is compatible with other requirements. This could take a while. INFO: pip is looking at multiple versions of croniter to determine which version is compatible with other requirements. This could take a while. INFO: pip is looking at multiple versions of click to determine which version is compatible with other requirements. This could take a while. INFO: pip is looking at multiple versions of clickclick to determine which version is compatible with other requirements. This could take a while. INFO: pip is looking at multiple versions of connexion[flask,swagger-ui] to determine which version is compatible with other requirements. This could take a while. INFO: pip is looking at multiple versions of commonmark to determine which version is compatible with other requirements. This could take a while. INFO: pip is looking at multiple versions of colorlog to determine which version is compatible with other requirements. This could take a while. INFO: pip is looking at multiple versions of colorama to determine which version is compatible with other requirements. This could take a while. INFO: pip is looking at multiple versions of cattrs to determine which version is compatible with other requirements. This could take a while. INFO: pip is looking at multiple versions of cached-property to determine which version is compatible with other requirements. This could take a while. INFO: pip is looking at multiple versions of attrs to determine which version is compatible with other requirements. This could take a while. INFO: pip is looking at multiple versions of argcomplete to determine which version is compatible with other requirements. This could take a while. INFO: pip is looking at multiple versions of alembic to determine which version is compatible with other requirements. This could take a while. INFO: pip is looking at multiple versions of <Python from Requires-Python> to determine which version is compatible with other requirements. This could take a while. INFO: pip is looking at multiple versions of rich to determine which version is compatible with other requirements. This could take a while. INFO: pip is looking at multiple versions of apache-airflow[statsd] to determine which version is compatible with other requirements. This could take a while. ERROR: Cannot install apache-airflow because these package versions have conflicting dependencies. The conflict is caused by: flask-appbuilder 3.1.1 depends on Flask-OpenID<2 and >=1.2.5 The user requested (constraint) flask-openid==1.2.5 To fix this you could try to: 1. loosen the range of package versions you've specified 2. remove package versions to allow pip attempt to solve the dependency conflict ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies The command '/bin/sh -c pip3 install --upgrade pip && pip install -U pip setuptools wheel && pip install "apache-airflow[statsd]==${AIRFLOW_VERSION}" --constraint "${CONSTRAINT_URL}" && pip install pyOpenSSL && pip install ffmpeg-python' returned a non-zero code: 1 ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
