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

pip install ethtool-0.15 failed #61

Open
jinwanqiashaokao opened this issue Sep 3, 2024 · 1 comment
Open

pip install ethtool-0.15 failed #61

jinwanqiashaokao opened this issue Sep 3, 2024 · 1 comment

Comments

@jinwanqiashaokao
Copy link

Processing ./ethtool-0.15.tar.gz
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: ethtool
Building wheel for ethtool (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for ethtool (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [5 lines of output]
running bdist_wheel
running build
running build_ext
building 'ethtool' extension
Failed to query pkg-config --cflags-only-I libnl-3.0
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for ethtool
Failed to build ethtool
ERROR: Could not build wheels for ethtool, which is required to install pyproject.toml-based projects
[root@0d3f20bef923 home]# pkg-config --cflags-only-I libnl-3.0
-I/usr/include/libnl3

@hroncok
Copy link
Member

hroncok commented Sep 3, 2024

Failed to query pkg-config --cflags-only-I libnl-3.0

What does this command output:

pkg-config --cflags-only-I libnl-3.0

On my system, it says:

$ pkg-config --cflags-only-I libnl-3.0
-I/usr/include/libnl3

Because I have the libnl3-devel package installed on my Fedora Linux, which is a dependency to build this as described in https://github.com/fedora-python/python-ethtool?tab=readme-ov-file#installation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants