Skip to content

CI: upload cache not working missing gitpython module #827

Description

@NeroBurner

CI job on master branch still fails after installing requests in #819

Link to one failing job: https://github.com/cpp-pm/hunter/actions/runs/17770534000/job/50505168085

-- [hunter] Cache saved: /home/runner/work/hunter/hunter/_Base/Cache/raw/a9752a4bbed14048780f84d7d6a8b4c0ea877dc8.tar.bz2
Import failed with error: No module named 'git'
Possible fixes:
 * Install gitpython module: 'pip install gitpython'
 * Set environment variable HUNTER_GIT_EXECUTABLE

[hunter ** INTERNAL **] Upload script failed
[hunter ** INTERNAL **] [Directory:/home/runner/work/hunter/hunter/cmake/projects/Jpeg]

------------------------------ ERROR -----------------------------
    https://hunter.readthedocs.io/en/latest/reference/errors/error.internal.html
------------------------------------------------------------------

CMake Error at /home/runner/work/hunter/hunter/cmake/modules/hunter_error_page.cmake:12 (message):
Call Stack (most recent call first):
  /home/runner/work/hunter/hunter/cmake/modules/hunter_internal_error.cmake:13 (hunter_error_page)
  /home/runner/work/hunter/hunter/cmake/modules/hunter_upload_cache.cmake:117 (hunter_internal_error)
  /home/runner/work/hunter/hunter/cmake/modules/hunter_download.cmake:666 (hunter_upload_cache)
  /home/runner/work/hunter/hunter/cmake/projects/Jpeg/hunter.cmake:102 (hunter_download)
  /home/runner/work/hunter/hunter/cmake/modules/hunter_add_package.cmake:62 (include)
  CMakeLists.txt:13 (hunter_add_package)


-- Configuring incomplete, errors occurred!
branch name is 'master' and GITHUB_USER_PASSWORD is set, uploading
Testing in: /home/runner/work/hunter/hunter/_testing
Execute command: [
  cmake
  -S
  /home/runner/work/hunter/hunter/examples/Jpeg
  -B
  /home/runner/work/hunter/hunter/_testing/build
  -DHUNTER_SUPPRESS_LIST_OF_FILES=ON
Traceback (most recent call last):
  File "/home/runner/work/hunter/hunter/.github/workflows/ci/build.py", line 304, in <module>
    run()
  File "/home/runner/work/hunter/hunter/.github/workflows/ci/build.py", line 231, in run
    subprocess.check_call(args)
  File "/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/subprocess.py", line 413, in check_call
  -DHUNTER_CONFIGURATION_TYPES=Release
  -DCMAKE_BUILD_TYPE=Release
  -DCMAKE_TOOLCHAIN_FILE=/home/runner/work/hunter/hunter/toolchains/gcc-14-cxx17-fpic.cmake
  -DHUNTER_RUN_UPLOAD=ON
  -DHUNTER_PASSWORDS_PATH=/home/runner/work/hunter/hunter/maintenance/upload-password-template.cmake
]
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '-S', '/home/runner/work/hunter/hunter/examples/Jpeg', '-B', '/home/runner/work/hunter/hunter/_testing/build', '-DHUNTER_SUPPRESS_LIST_OF_FILES=ON', '-DHUNTER_CONFIGURATION_TYPES=Release', '-DCMAKE_BUILD_TYPE=Release', '-DCMAKE_TOOLCHAIN_FILE=/home/runner/work/hunter/hunter/toolchains/gcc-14-cxx17-fpic.cmake', '-DHUNTER_RUN_UPLOAD=ON', '-DHUNTER_PASSWORDS_PATH=/home/runner/work/hunter/hunter/maintenance/upload-password-template.cmake']' returned non-zero exit status 1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinginfrastructureProblems with the CI infrastructure or CI jobs

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions