mwvgroup / pittgoogle-client

Client for the Pitt-Google alert broker
https://mwvgroup.github.io/pittgoogle-client/
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Bug: Docs are failing to build #27

Closed troyraen closed 7 months ago

troyraen commented 7 months ago

Docs builds started failing at the "Install dependencies" step sometime after 2023-10-2. It does not seem related to a specific PR. Logs are pasted below. It seems that numpy 1.24.3 is having trouble with python 3.12.

Run poetry install --with docs
  poetry install --with docs
  shell: /usr/bin/bash -e {0}
  env:
    pythonLocation: /opt/hostedtoolcache/Python/3.1[2](https://github.com/mwvgroup/pittgoogle-client/actions/runs/7860666458/job/21448102206?pr=26#step:5:2).1/x64
    PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/[3](https://github.com/mwvgroup/pittgoogle-client/actions/runs/7860666458/job/21448102206?pr=26#step:5:3).12.1/x6[4](https://github.com/mwvgroup/pittgoogle-client/actions/runs/7860666458/job/21448102206?pr=26#step:5:4)/lib/pkgconfig
    Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.1/x64
    Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.1/x64
    Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.1/x64
    LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.1/x64/lib
    VENV: .venv/bin/activate
Skipping virtualenv creation, as specified in config file.
Installing dependencies from lock file

Package operations: 94 installs, 0 updates, 0 removals

  • Installing numpy (1.24.3)
  • Installing pyasn1 (0.[5](https://github.com/mwvgroup/pittgoogle-client/actions/runs/7860666458/job/21448102206?pr=26#step:5:5).0)

  ChefBuildError

  Backend 'setuptools.build_meta:__legacy__' is not available.

  Traceback (most recent call last):
    File "/home/runner/.local/venv/lib/python3.12/site-packages/pyproject_hooks/_in_process/_in_process.py", line 77, in _build_backend
      obj = import_module(mod_path)
            ^^^^^^^^^^^^^^^^^^^^^^^
    File "/opt/hostedtoolcache/Python/3.12.1/x[6](https://github.com/mwvgroup/pittgoogle-client/actions/runs/7860666458/job/21448102206?pr=26#step:5:6)4/lib/python3.12/importlib/__init__.py", line 90, in import_module
      return _bootstrap._gcd_import(name[level:], package, level)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "<frozen importlib._bootstrap>", line 138[7](https://github.com/mwvgroup/pittgoogle-client/actions/runs/7860666458/job/21448102206?pr=26#step:5:7), in _gcd_import
    File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
    File "<frozen importlib._bootstrap>", line 1310, in _find_and_load_unlocked
    File "<frozen importlib._bootstrap>", line 4[8](https://github.com/mwvgroup/pittgoogle-client/actions/runs/7860666458/job/21448102206?pr=26#step:5:8)8, in _call_with_frames_removed
    File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
    File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
    File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
    File "<frozen importlib._bootstrap>", line [9](https://github.com/mwvgroup/pittgoogle-client/actions/runs/7860666458/job/21448102206?pr=26#step:5:9)35, in _load_unlocked
    File "<frozen importlib._bootstrap_external>", line 994, in exec_module
    File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
    File "/tmp/tmp1f9d91zr/.venv/lib/python3.12/site-packages/setuptools/__init__.py", line [10](https://github.com/mwvgroup/pittgoogle-client/actions/runs/7860666458/job/21448102206?pr=26#step:5:10), in <module>
      import distutils.core
  ModuleNotFoundError: No module named 'distutils'

  at ~/.local/venv/lib/python3.[12](https://github.com/mwvgroup/pittgoogle-client/actions/runs/7860666458/job/21448102206?pr=26#step:5:13)/site-packages/poetry/installation/chef.py:[16](https://github.com/mwvgroup/pittgoogle-client/actions/runs/7860666458/job/21448102206?pr=26#step:5:17)4 in _prepare
      160│ 
      161│                 error = ChefBuildError("\n\n".join(message_parts))
      162│ 
      163│             if error is not None:
    → 164│                 raise error from None
      165│ 
      166│             return path
      167│ 
      168│     def _prepare_sdist(self, archive: Path, destination: Path | None = None) -> Path:

Note: This error originates from the build backend, and is likely not a problem with poetry but with numpy (1.24.3) not supporting PEP 5[17](https://github.com/mwvgroup/pittgoogle-client/actions/runs/7860666458/job/21448102206?pr=26#step:5:18) builds. You can verify this by running 'pip wheel --no-cache-dir --use-pep517 "numpy (==1.[24](https://github.com/mwvgroup/pittgoogle-client/actions/runs/7860666458/job/21448102206?pr=26#step:5:25).3)"'.

Error: Process completed with exit code 1.