clever-gigabyte-29368
06/07/2023, 12:13 AMERROR: Could not find a version that satisfies the requirement gitpython==3.1.29
ERROR: No matching distribution found for gitpython==3.1.29
However, there is clearly such version available and it has a very loose python version requirement Requires: Python >=3.7
. On my pants project, I have set the interpreter_constraints to "['CPython==3.10.11']"
broad-processor-92400
06/07/2023, 1:44 AMpip install gitpython==3.1.29
?clever-gigabyte-29368
06/07/2023, 2:50 AMbroad-processor-92400
06/07/2023, 10:32 AMhappy-kitchen-89482
06/07/2023, 12:57 PMclever-gigabyte-29368
06/07/2023, 5:27 PMincreasing the pex verbosity and using “keep sandboxes” to be able to play with the processesThanks @broad-processor-92400 , could you suggest how to “play with the process” that can help us narrow down the issue?
clever-gigabyte-29368
06/07/2023, 5:28 PMhappy-kitchen-89482
06/07/2023, 5:55 PMhappy-kitchen-89482
06/07/2023, 5:56 PMhappy-kitchen-89482
06/07/2023, 5:56 PMclever-gigabyte-29368
06/07/2023, 10:42 PMERROR: Could not find a version that satisfies the requirement gitpython==3.1.29
/Users/jayzhong/.pyenv/versions/3.10.11/bin/python ./pex --tmpdir .tmp --jobs 16 --python-path $'/Users/jayzhong/.pyenv/versions/3.10.11/bin:/Users/jayzhong/.pyenv/versions/3.7.10/bin:/Users/jayzhong/.pyenv/versions/3.7.8/bin:/Users/jayzhong/.pyenv/versions/af2/bin:/Users/jayzhong/src/pynest/.310venv/bin:/usr/local/Cellar/pyenv-virtualenv/1.2.1/shims:/Users/jayzhong/.pyenv/shims:/Users/jayzhong/go/bin:/usr/local/opt/libpq/bin:/usr/local/Caskroom/miniconda/base/bin:/usr/local/Caskroom/miniconda/base/condabin:/Users/jayzhong/.rbenv/shims:/Users/jayzhong/.pyenv/bin:/Applications/SnowSQL.app/Contents/MacOS:/Users/jayzhong/.pyenv/bin:/Users/jayzhong/.rbenv/shims:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/munki:/Library/Apple/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Users/jayzhong/.cargo/bin:/usr/local/opt/fzf/bin' --output-file airflow2.src.python.airflow_dags.data/cb-airflow.pex --no-emit-warnings --manylinux manylinux2014 --requirements-pex local_dists.pex --interpreter-constraint $'CPython<4,==3.10.11,>=3.7' --entry-point airflow_dags.data.cb-airflow $'--sources-directory=source_files' $'MarkupSafe==2.1.2' $'anaplan-api==0.1.28' $'apache-airflow-providers-amazon==3.1.1' $'apache-airflow-providers-ftp==2.1.2' $'apache-airflow-providers-http==2.0.0' $'apache-airflow-providers-imap==2.2.3' $'apache-airflow-providers-postgres==2.0.0' $'apache-airflow-providers-sqlite==2.1.3' $'apache-airflow==2.3.4' $'argcomplete==1.12.3' $'atlasapi==0.13.2' $'atomicwrites==1.4.1' $'authlib==0.15.2' $'beautifulsoup4==4.9.2' $'boto3==1.26.11' $'botocore==1.29.11' $'cachetools==4.1.1' $'cb-amundsen-databuilder>=6.8.42' $'cb_config>=0.0.86' $'celery~=5.2.7' $'click==8.0.4' $'confluent-kafka==2.0.2' $'contentful_management==2.11.0' $'croniter==1.0.15' $'dask-gateway==0.9.0' $'dask[dataframe]==2022.2.0' $'databricks-sql-connector==2.3.0' $'datadog-api-client==2.11.0' $'datadog>=0.38.0' $'db-dtypes==1.0.5' $'dbt-snowflake==1.4.2' $'delighted==1.1.2' $'distributed==2022.2.0' $'duckdb==0.6.1' $'duo_client==4.4.0' $'elasticsearch==7.13.4' $'eth-rlp==0.2.0' $'ethereum-etl==1.11.2' $'fastavro==1.7.1' $'flask-openid==1.3.0' $'flask==2.2.3' $'flower==1.0.0' $'fqs_configurator==0.0.10' $'future==0.18.2' $'getuseragent==0.0.7' $'gitpython==3.1.29' $'google-api-python-client==2.65.0' $'google-cloud-bigquery==2.34.0' $'googleapis-common-protos~=1.57.0' $'gremlinpython==3.6.1' $'grpcio-health-checking==1.39.0; python_version == "3.7"' $'grpcio-health-checking==1.42.0; python_version == "3.10"' $'grpcio-reflection==1.39.0; python_version == "3.7"' $'grpcio-reflection==1.42.0; python_version == "3.10"' $'grpcio-status==1.42.0; python_version == "3.10"' $'grpcio-tools==1.39.0; python_version == "3.7"' $'grpcio-tools==1.42.0; python_version == "3.10"' $'grpcio==1.42.0; python_version == "3.10"' $'gspread==4.0.0' $'hologram==0.0.15' $'html5lib==1.1' $'httplib2==0.18.1' $'httpretty==1.1.4' $'importlib-metadata==4.11.3; python_version == "3.7"' $'importlib-metadata==4.11.4; python_version == "3.10"' $'importlib-resources==5.7.0' $'jeepney==0.7.1' $'jinja2==3.1.2' $'jira==3.2.0' $'jms-client==0.2.1' $'looker-sdk==22.20.0' $'matplotlib==3.5.3' $'mysql-connector-python==8.0.32' $'networkx==2.6.3' $'nostradamus==0.3.2' $'numpy==1.21.1; python_version == "3.7"' $'numpy==1.23.4; python_version == "3.10"' $'oauth2client==4.1.3' $'okta==2.3.1' $'omniduct==1.1.17' $'openpyxl==3.0.10' $'orjson>=3.8.5' $'pandas==1.3.5' $'paramiko==2.7.2' $'pendulum==2.1.2' $'proto-plus<=1.22.1,>1.19' $'protobuf>=3.19.4' $'psycopg2-binary==2.9.5' $'psycopg[binary,pool]==3.1.8' $'pyarrow==10.0.1' $'pycryptodome==3.9.1' $'pydantic==1.9.0' $'pygithub==1.44.1' $'pyhocon==0.3.59' $'pymongo>=4.0.1' $'pymysql==1.0.2' $'pyodbc==4.0.35' $'python-dateutil==2.8.2' $'python-gnupg==0.4.5' $'python-json-logger==2.0.2' $'python-levenshtein==0.12.0' $'pytrends==4.9.2' $'pyyaml==6.0' $'redis==3.5.3' $'requests-oauthlib==1.3.1' $'requests<3,>=2.2' $'s3-encryption==0.1.3' $'salesforce-bulk==2.1.0' $'sanpy==0.8.7' $'schema==0.7.1' $'scikit-learn==0.24.0' $'scipy==1.7.1; python_version == "3.7"' $'scipy==1.8.0; python_version == "3.10"' $'secretstorage==3.3.1' $'setuptools<67.0,>=59.1.1' $'simple-salesforce==1.0.0' $'simplejson==3.18.3' $'sklearn==0.0' $'slackclient==1.1.2' $'snowflake-connector-python[secure-local-storage]==3.0.3' $'snowflake-sqlalchemy==1.4.7' $'sqlalchemy==1.4.9' $'sqlfluff==1.2.1' $'sqlglot>=10.5.0' $'syrupy==2.3.0' $'tabulate==0.9.0' $'tenacity==6.2.0' $'tornado==6.1' $'types-Flask==1.1.3' $'types-PyMySQL==1.0.19' $'types-PyYAML==5.4.6' $'types-cachetools==4.2.0' $'types-paramiko==0.1.9' $'types-pytz==2022.7.1' $'types-requests==2.25.6' $'types-setuptools<67,>=58' $'unidecode==1.3.3' $'werkzeug==2.2.3' $'xlrd==2.0.1' $'xlwt==1.3.0' --no-pypi $'--index=<https://pypi.org/simple/>' $'--index=<https://artifactory-pypi.cbhq.net/simple/>' --resolver-version pip-2020-resolver --constraints __constraints.txt --layout zipapp
clever-gigabyte-29368
06/07/2023, 10:43 PMpex now delegates resolution to pip
. So it must be pip cannot install gitpython==3.1.29
?broad-processor-92400
06/07/2023, 10:54 PMgitpython
one and see if it fails), and then look at ./pex --help
because I think there's some options to increase verbosity and even have it preserve the pip log for your debuggingclever-gigabyte-29368
06/07/2023, 11:06 PM/Users/jayzhong/.pyenv/versions/3.10.11/bin/python ./pex --tmpdir .tmp --jobs 16 --python-path $'/Users/jayzhong/.pyenv/versions/3.10.11/bin:/Users/jayzhong/.pyenv/versions/3.7.10/bin' --output-file airflow2.src.python.airflow_dags.data/cb-airflow.pex --no-emit-warnings --manylinux manylinux2014 --requirements-pex local_dists.pex --interpreter-constraint $'CPython<4,==3.10.11,>=3.7' --entry-point airflow_dags.data.cb-airflow $'--sources-directory=source_files' $'gitpython==3.1.29' --no-pypi $'--index=<https://pypi.org/simple/>' $'--index=<https://artifactory-pypi.cbhq.net/simple/>' --resolver-version pip-2020-resolver --constraints __constraints.txt --layout zipapp
pid 56773 -> /Users/jayzhong/.pex/venvs/c9e55cc98846b062ba9676b3c1a5214512602544/4cfd0bc71c00327bb73b53d6c2fa39962519f274/bin/python -sE /Users/jayzhong/.pex/venvs/c9e55cc98846b062ba9676b3c1a5214512602544/4cfd0bc71c00327bb73b53d6c2fa39962519f274/pex --disable-pip-version-check --no-python-version-warning --exists-action a --no-input --isolated -q --cache-dir /Users/jayzhong/.pex/pip_cache --log /private/var/folders/88/yqbj2brs0w7fzdqyr32n1q400000gp/T/pants-sandbox-hD7aCc/.tmp/pex-pip-log.sqcxwlm_/pip.log download --dest /Users/jayzhong/.pex/downloads/resolver_download.7o574oto/Users.jayzhong..pyenv.versions.3.10.11.bin.python3.10 --constraint __constraints.txt gitpython==3.1.29 --index-url <https://pypi.org/simple/> --extra-index-url <https://artifactory-pypi.cbhq.net/simple/> --retries 5 --timeout 15 exited with 1 and STDERR:
ERROR: Could not find a version that satisfies the requirement gitpython==3.1.29
ERROR: No matching distribution found for gitpython==3.1.29
clever-gigabyte-29368
06/07/2023, 11:10 PM2023-06-07T16:08:50,868 Given no hashes to check 0 links for project 'gitpython': discarding no candidates
2023-06-07T16:08:50,868 ERROR: Could not find a version that satisfies the requirement gitpython==3.1.29
2023-06-07T16:08:50,869 ERROR: No matching distribution found for gitpython==3.1.29
2023-06-07T16:08:50,869 Exception information:
2023-06-07T16:08:50,869 Traceback (most recent call last):
2023-06-07T16:08:50,869 File "/Users/jayzhong/.pex/venvs/c9e55cc98846b062ba9676b3c1a5214512602544/4cfd0bc71c00327bb73b53d6c2fa39962519f274/lib/python3.10/site-packages/pip/_vendor/resolvelib/resolvers.py", line 171, in _merge_into_criterion
2023-06-07T16:08:50,869 crit = self.state.criteria[name]
2023-06-07T16:08:50,869 KeyError: 'gitpython'
clever-gigabyte-29368
06/07/2023, 11:29 PM$'gitpython==3.1.29'
) is different from the one in the --constraints __constraints.txt
file (gitpython==3.1.31
). How come that can happen 🤔broad-processor-92400
06/07/2023, 11:31 PMgit grep gitpython
)?clever-gigabyte-29368
06/07/2023, 11:33 PMpip compile
to generate a constraints file (taking all the requirements.txt files as input).clever-gigabyte-29368
06/08/2023, 12:05 AMpip compile
? I solved the problem by pining gitpython version on requirements.txtclever-gigabyte-29368
06/08/2023, 12:06 AMhappy-kitchen-89482
06/08/2023, 3:05 AMhappy-kitchen-89482
06/08/2023, 3:05 AMclever-gigabyte-29368
06/09/2023, 5:37 PMpip compile
and take all requirements.txt files as inputclever-gigabyte-29368
06/09/2023, 5:38 PMimport oss_package
, but oss_package
is not in any of the requirements.txt files, would pants automatically infer oss_package as a dependency?clever-gigabyte-29368
06/09/2023, 5:38 PMhappy-kitchen-89482
06/09/2023, 8:15 PMimport oss_package
but nothing provides that package, Pants will errorhappy-kitchen-89482
06/09/2023, 8:15 PMhappy-kitchen-89482
06/09/2023, 8:15 PM