cool-easter-32542
02/09/2024, 4:45 PM2.19.0 from 2.16.0. During migration, I faced with issue with pants package :: command. The same configuration works on 2.16.0 (and 2.17.0). So on 2.19.0 (and on 2.18.0) I got the next error:
18:31:51.34 [INFO] Completed: Build python_google_cloud_function artifact for functions/python/source-python-http:python_http_gcf
18:31:51.34 [ERROR] 1 Exception encountered:
Engine traceback:
in `package` goal
ProcessExecutionFailure: Process 'Build python_google_cloud_function artifact for functions/python/source-python-http:python_http_gcf' failed with exit code 1.
stdout:
stderr:
Failed to resolve requirements from PEX environment @ /home/andrii/.cache/pants/named_caches/pex_root/unzipped_pexes/78b374064464e37b3fd5cad5252b40c1c7e13119.
Needed cp311-cp311-linux_x86_64 compatible dependencies for:
1: pyarrow>=3.0.0
Required by:
db-dtypes 1.2.0
pandas-gbq 0.19.0
But this pex had no ProjectName(raw='pyarrow', normalized='pyarrow') distributions.
2: pyarrow==14.0.1
But this pex had no ProjectName(raw='pyarrow', normalized='pyarrow') distributions.
Use `--keep-sandboxes=on_failure` to preserve the process chroot for inspection.
My python_google_cloud_function target:
python_google_cloud_function(
name="python_http_gcf",
runtime="python311",
handler="couplerio/importers/python_http/main.py:handler",
type="http",
)
My requirements.txt file
requests==2.31.0
pandas==2.0.0
pandas-gbq==0.19.0
numpy==1.24.1
pyarrow==14.0.1
google-cloud-bigquery==3.4.2
google-cloud-bigquery-storage==2.18.1
functions-framework==3.3.0
Pants version
2.19.0
OS
Ubuntu 22.04.3
pantsbuild/pants