You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi we want to add btrfsutil as a dependency in our project using poetry (pyproject.toml) add getting
poetry add btrfsutil
Using version ^6.13 for btrfsutil
Updating dependencies
Resolving dependencies... (0.1s)
Package operations: 1 install, 0 updates, 0 removals
• Installing btrfsutil (6.13): Failed
ChefBuildError
Backend subprocess exited when trying to invoke build_wheel
running bdist_wheel
running build
running build_ext
building 'btrfsutil' extension
creating build/temp.linux-x86_64-cpython-311
gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -I/nix/store/fpv25ch2rim4w3chz1iwmsrvsv08qzzy-libxcrypt-4.4.36/include -fPIC -I.. -I/tmp/nix-shell-18144-0/tmp07s27ndm/.venv/include -I/nix/store/mh6gqjf1w1i6ln1a61psnz0gzdmwrspl-python3-3.11.8/include/python3.11 -c constants.c -o build/temp.linux-x86_64-cpython-311/constants.o
constants.c:3:10: fatal error: btrfsutil.h: No such file or directory
3 | #include <btrfsutil.h>
| ^~~~~~~~~~~~~
compilation terminated.
error: command '/nix/store/zd2viirgdm4ffgipgpslmysmlzs6fscb-gcc-wrapper-12.3.0/bin/gcc' failed with exit code 1
at /nix/store/q98akaqr3mpr4l7gli1bi0phvx7r8h0y-python3.11-poetry-1.7.1/lib/python3.11/site-packages/poetry/installation/chef.py:164 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 btrfsutil (6.13) not supporting PEP 517 builds. You can verify this by running 'pip wheel --no-cache-dir --use-pep517 "btrfsutil (==6.13)"'.
The text was updated successfully, but these errors were encountered:
The file btrfsutil.h is part of libbtrfsutil, so it would be probably ok to install just the devel package of that. Should this dependency be mentioned somewhere in the python package metdata?
Some others are building/installing required things while installing the package, to fix the version problem for example, If distro version mismatch the version from pipy
Hi we want to add
btrfsutil
as a dependency in our project usingpoetry
(pyproject.toml) add gettingThe text was updated successfully, but these errors were encountered: