Skip to content

fatal error: libyang/libyang.h: No such file or directory #123

Open
@Narasim

Description

@Narasim

Building wheels for collected packages: libyang
Building wheel for libyang (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for libyang (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [29 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.10
creating build/lib.linux-x86_64-3.10/libyang
copying libyang/util.py -> build/lib.linux-x86_64-3.10/libyang
copying libyang/log.py -> build/lib.linux-x86_64-3.10/libyang
copying libyang/schema.py -> build/lib.linux-x86_64-3.10/libyang
copying libyang/xpath.py -> build/lib.linux-x86_64-3.10/libyang
copying libyang/init.py -> build/lib.linux-x86_64-3.10/libyang
copying libyang/context.py -> build/lib.linux-x86_64-3.10/libyang
copying libyang/diff.py -> build/lib.linux-x86_64-3.10/libyang
copying libyang/data.py -> build/lib.linux-x86_64-3.10/libyang
copying libyang/keyed_list.py -> build/lib.linux-x86_64-3.10/libyang
running egg_info
writing manifest file 'libyang.egg-info/SOURCES.txt'
copying libyang/VERSION -> build/lib.linux-x86_64-3.10/libyang
copying libyang/py.typed -> build/lib.linux-x86_64-3.10/libyang
running build_ext
creating build/temp.linux-x86_64-3.10
creating build/temp.linux-x86_64-3.10/build
creating build/temp.linux-x86_64-3.10/build/temp.linux-x86_64-3.10
x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/home/build/opt/ly/include -I/usr/include/python3.10 -c build/temp.linux-x86_64-3.10/_libyang.c -o build/temp.linux-x86_64-3.10/build/temp.linux-x86_64-3.10/_libyang.o -Werror -std=c99 -O3
build/temp.linux-x86_64-3.10/_libyang.c:574:10: fatal error: libyang/libyang.h: No such file or directory
574 | #include <libyang/libyang.h>
| ^~~~~~~~~~~~~~~~~~~
compilation terminated.
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for libyang
Failed to build libyang
ERROR: Could not build wheels for libyang, which is required to install pyproject.toml-based projects

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions