ImportError: dynamic module does not define module export function (PyInit_libcamera) #5927
Unanswered
johncblacker
asked this question in
Q&A
Replies: 1 comment
-
|
Additional info: in the py_main.cpp code module I have: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Trying to build libcamera v0.6.0 to build on ubuntu with python3.10 support but when I import libcamera it gives the ImportError hinting (PyInit_libcamera) isn't defined in the .so module; however if I run nm -g _libcamera.so or nm -g _libcamera.cpython-310-x86_64-linux-gnu.so it shows that PyInit__libcamera is defined as an external variable so I don't see why the problem occurs. I've tried building with v0.5.1 and v0.5.2 of libcamera with the same results. I'd appreciate someone steering me in the right direction towards solving this problem. I have basically the same setup on my raspberry pi 5 with debian bookworm os and have no problem at all. I'm using pybind11 3.0.2, gcc 11.4.0 and python3.10.12. Build is performed via meson 1.9.2, cmake 4.2.0.
Beta Was this translation helpful? Give feedback.
All reactions