fedora-python / python-ethtool

Deprecated Python bindings for the ethtool kernel interface
GNU General Public License v2.0
15 stars 13 forks source link

pip install ethtool-0.15 failed #61

Open jinwanqiashaokao opened 1 week ago

jinwanqiashaokao commented 1 week ago

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 commented 1 week ago

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