Skip to content

ninj1 -C build install fails to produce _libcamera.so module so import libcamera fails - python3.10, meson 1.9.2 #319

@johncblacker

Description

@johncblacker

My meson build: meson setup build --buildtype=release -Dgstreamer=enabled -Dpycamera=enabled -Dgstreamer=enabled
OS is ubuntu 22.04, python3.10.12, meson 1.9.2, pybind11 3.0.2

Installed using: sudo ninja -C build install

Seems like the module _libcamera.cpython-310-x86_64-linus-gnu.so was build and installed into /usr/local/lib/python3/dist-packages/libcamera but _libcamera was not built/installed (issued find command - not there. import libcamera in python3.10 session fails "ModuleNotFoundError: No module named 'libcamera'.
I had previously built v0.5.1 and v0.5.2 and they did product the _libcamera.so file however I was getting an error indicating there was no "PyInit__libcamera" however running nm -D _libcamera.so indicates that there is indeed a PyInit__libcamera function.
I'd appreciate some help getting libcamera to build/install and execute on python.

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