Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ggshield fails to build on amd64 #38645

Open
murraybd opened this issue Jan 2, 2025 · 0 comments
Open

ggshield fails to build on amd64 #38645

murraybd opened this issue Jan 2, 2025 · 0 comments
Labels
bug Something isn't working service:ftbfs Failed to Build From Source

Comments

@murraybd
Copy link
Member

murraybd commented Jan 2, 2025

The package ggshield fails to build from source with the following error:

"/home/build/.local/share/pdm/venv/lib/python3.13/site-packages/pdm/installers/m
anager.py", line 33, in install
    prepared.build(),
    ~~~~~~~~~~~~~~^^
  File 
"/home/build/.local/share/pdm/venv/lib/python3.13/site-packages/pdm/models/candi
dates.py", line 397, in build
    self._obtain(allow_all=False)
    ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File 
"/home/build/.local/share/pdm/venv/lib/python3.13/site-packages/pdm/models/candi
dates.py", line 438, in _obtain
    raise CandidateNotFound(
        f"No candidate is found for `{self.req.project_name}` that matches the 
environment or hashes"
    )
pdm.exceptions.CandidateNotFound: No candidate is found for `pyinstaller` that 
matches the environment or hashes
add grimp failed:
Traceback (most recent call last):
  File "/usr/lib/python3.13/concurrent/futures/thread.py", line 59, in run
    result = self.fn(*self.args, **self.kwargs)
  File 
"/home/build/.local/share/pdm/venv/lib/python3.13/site-packages/pdm/installers/s
ynchronizers.py", line 29, in install_candidate
    self.manager.install(can)
    ~~~~~~~~~~~~~~~~~~~~^^^^^
  File 
"/home/build/.local/share/pdm/venv/lib/python3.13/site-packages/pdm/installers/m
anager.py", line 33, in install
    prepared.build(),
    ~~~~~~~~~~~~~~^^
  File 
"/home/build/.local/share/pdm/venv/lib/python3.13/site-packages/pdm/models/candi
dates.py", line 411, in build
    self._cached = Path(builder.build(build_dir, 
metadata_directory=self._metadata_dir))
                        ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
^^^^^^^
  File 
"/home/build/.local/share/pdm/venv/lib/python3.13/site-packages/pdm/builders/bas
e.py", line 84, in wrapper
    return func(*args, **kwargs)
  File 
"/home/build/.local/share/pdm/venv/lib/python3.13/site-packages/pdm/builders/whe
el.py", line 26, in build
    filename = self._hook.build_wheel(out_dir, self.config_settings, 
metadata_directory)
  File 
"/home/build/.local/share/pdm/venv/lib/python3.13/site-packages/pyproject_hooks/
_impl.py", line 256, in build_wheel
    return self._call_hook(
           ~~~~~~~~~~~~~~~^
        "build_wheel",
        ^^^^^^^^^^^^^^
    ...<4 lines>...
        },
        ^^
    )
    ^
  File 
"/home/build/.local/share/pdm/venv/lib/python3.13/site-packages/pyproject_hooks/
_impl.py", line 392, in _call_hook
    self._subprocess_runner(
    ~~~~~~~~~~~~~~~~~~~~~~~^
        ,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        cwd=self.source_dir,
        ^^^^^^^^^^^^^^^^^^^^
        extra_environ=extra_environ,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File 
"/home/build/.local/share/pdm/venv/lib/python3.13/site-packages/pdm/builders/bas
e.py", line 281, in subprocess_runner
    return log_subprocessor(cmd, cwd, extra_environ=env)
  File 
"/home/build/.local/share/pdm/venv/lib/python3.13/site-packages/pdm/builders/bas
e.py", line 128, in log_subprocessor
    raise build_error(e) from None
pdm.exceptions.BuildError: Build backend raised error: Showing the last 10 lines
of the build output:
Running `maturin pep517 build-wheel -i /home/build/.venv/bin/python 
--compatibility off`
💥 maturin failed
  Caused by: Cargo metadata failed. Do you have cargo in your PATH?
  Caused by: No such file or directory (os error 2)
Error: command ['maturin', 'pep517', 'build-wheel', '-i', 
'/home/build/.venv/bin/python', '--compatibility', 'off'] returned non-zero exit
status 1

  0:00:29 ✖ Some package operations failed. 2/2
See /home/build/.local/state/pdm/log/pdm-install-i07n98lm.log for detailed debug log.
[InstallationError]: Some package operations failed.
WARNING: Add '-v' to see the detailed traceback
deleting guest dir /tmp/melange-guest-702410268
deleting workspace dir /tmp/melange-workspace-746898679
removing image path /tmp/melange-guest-2324790799
failed to build package: unable to run package ggshield pipeline: unable to run pipeline: exit status 1
@murraybd murraybd added bug Something isn't working service:ftbfs Failed to Build From Source labels Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working service:ftbfs Failed to Build From Source
Projects
None yet
Development

No branches or pull requests

1 participant