AlertaDengue / AlertaDengue/CrawlClima
Poetry install fails during docker build with conda environment
- 主要言語
- Python
- スター
- 0
- フォーク
- 1
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
```
44.93 ChefBuildError
44.93
44.93 Backend subprocess exited when trying to invoke build_wheel
44.93
44.93 Running `maturin pep517 build-wheel -i /tmp/tmplxcl_l9a/.venv/bin/python --compatibility off`
44.93 💥 maturin failed
44.93 Caused by: Cargo metadata failed. Do you have cargo in your PATH?
44.93 Caused by: No such file or directory (os error 2)
44.93 Error: command ['maturin', 'pep517', 'build-wheel', '-i', '/tmp/tmplxcl_l9a/.venv/bin/python', '--compatibility', 'off'] returned non-zero exit status 1
44.93
44.93
44.93 at /opt/conda/envs/crawlclima/lib/python3.12/site-packages/poetry/installation/chef.py:164 in _prepare
44.94 160│
44.94 161│ error = ChefBuildError("\n\n".join(message_parts))
44.94 162│
44.94 163│ if error is not None:
44.94 → 164│ raise error from None
44.94 165│
44.94 166│ return path
44.94 167│
44.94 168│ def _prepare_sdist(self, archive: Path, destination: Path | None = None) -> Path:
44.94
44.94 Note: This error originates from the build backend, and is likely not a problem with poetry but with y-py (0.6.0) not supporting PEP 517 builds. You can verify this by running 'pip wheel --no-cache-dir --use-pep517 "y-py (==0.6.0)"'.
44.94
45.41
45.41 ChefBuildError
45.41
45.41 Backend 'setuptools.build_meta:__legacy__' is not available.
45.41
45.41 Traceback (most recent call last):
45.41 File "/opt/conda/envs/crawlclima/lib/python3.12/site-packages/pyproject_hooks/_in_process/_in_process.py", line 77, in _build_backend
45.41 obj = import_module(mod_path)
45.41 ^^^^^^^^^^^^^^^^^^^^^^^
45.41 File "/opt/conda/envs/crawlclima/lib/python3.12/importlib/__init__.py", line 90, in import_module
45.41 return _bootstrap._gcd_import(name[level:], package, level)
45.41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
45.41 File "", line 1381, in _gcd_import
45.41 File "", line 1354, in _find_and_load
45.41 File "", line 1304, in _find_and_load_unlocked
45.41 File "", line 488, in _call_with_frames_removed
45.41 File "", line 1381, in _gcd_import
45.41 File "", line 1354, in _find_and_load
45.41 File "", line 1325, in _find_and_load_unlocked
45.41 File "", line 929, in _load_unlocked
45.41 File "", line 994, in exec_module
45.41 File "", line 488, in _call_with_frames_removed
45.41 File "/tmp/tmp618qw3ip/.venv/lib/python3.12/site-packages/setuptools/__init__.py", line 10, in
45.41 import distutils.core
45.41 ModuleNotFoundError: No module named 'distutils'
45.41
45.41
45.41 at /opt/conda/envs/crawlclima/lib/python3.12/site-packages/poetry/installation/chef.py:164 in _prepare
45.41 160│
45.41 161│ error = ChefBuildError("\n\n".join(message_parts))
45.41 162│
45.41 163│ if error is not None:
45.41 → 164│ raise error from None
45.41 165│
45.41 166│ return path
45.41 167│
45.41 168│ def _prepare_sdist(self, archive: Path, destination: Path | None = None) -> Path:
45.41
45.41 Note: This error originates from the build backend, and is likely not a problem with poetry but with numpy (1.25.2) not supporting PEP 517 builds. You can verify this by running 'pip wheel --no-cache-dir --use-pep517 "numpy (==1.25.2)"'.
45.41
------
failed to solve: process "/bin/bash -c mamba env create -n crawlclima --file /tmp/environment.yaml --force && cd /opt/services/ && . /tmp/poetry-install.sh && conda clean --all && find /opt/conda/ -type f,l -name '*.a' -delete && find /opt/conda/ -type f,l -name '*.pyc' -delete && find /opt/conda/ -type f,l -name '*.js.map' -delete && rm -rf /opt/conda/pkgs" did not complete successfully: exit code: 1
```
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
評価
この issue はまだ評価されていません。