letmaik / pyvirtualcam

🎥 Send frames to a virtual camera from Python
GNU General Public License v2.0
452 stars 49 forks source link

failed to import on arm64 #107

Closed chopin1998 closed 1 year ago

chopin1998 commented 1 year ago

git clone the latest code,

python3 setup.py build/ install seems fine,

but when i import the module, it show:

ImportError: /usr/local/lib/python3.10/dist-packages/pyvirtualcam-0.10.2-py3.10-linux-aarch64.egg/pyvirtualcam/_native_linux_v4l2loopback.cpython-310-aarch64-linux-gnu.so: undefined symbol: CanonicalFourCC

letmaik commented 1 year ago

I have a feeling this is because you don't clone the submodules of the repo and it still was happily compiling with missing symbols. Can you try git submodule update --init and then build/install again? It that works I'll change the setup such that it complains early if the submodule is not cloned.

chopin1998 commented 1 year ago

I have a feeling this is because you don't clone the submodules of the repo and it still was happily compiling with missing symbols. Can you try git submodule update --init and then build/install again? It that works I'll change the setup such that it complains early if the submodule is not cloned.

ic.... i use apt version libuvc-dev before.

now it canbe imported as expected after git submodule update

Thank thee very much!