BabitMF / bmf

Cross-platform, customizable multimedia/video processing framework. With strong GPU acceleration, heterogeneous design, multi-language support, easy to use, multi-framework compatible and high performance, the framework is ideal for transcoding, AI inference, algorithm integration, live video streaming, and more.
https://babitmf.github.io/
Apache License 2.0
733 stars 60 forks source link

Run demo with a error in mac os 13.4.1 (22F82) #56

Open lanch opened 10 months ago

lanch commented 10 months ago

hi, I run the demo in my mac, but got the error, how to fix the error?

demo % python broadcaster/broadcaster.py Traceback (most recent call last): File "/Users/weiliang/Develop/bmf/bmf/demo/broadcaster/broadcaster.py", line 7, in import bmf File "/Users/weiliang/.pyenv/versions/3.9.18/lib/python3.9/site-packages/bmf/init.py", line 3, in from bmf.python_sdk.module_functor import make_sync_func File "/Users/weiliang/.pyenv/versions/3.9.18/lib/python3.9/site-packages/bmf/python_sdk/init.py", line 1, in from .module_functor import make_sync_func, ProcessDone File "/Users/weiliang/.pyenv/versions/3.9.18/lib/python3.9/site-packages/bmf/python_sdk/module_functor.py", line 1, in import bmf.lib._hmp ImportError: dlopen(/Users/weiliang/.pyenv/versions/3.9.18/lib/python3.9/site-packages/bmf/lib/_hmp.cpython-39-darwin.so, 0x0002): Library not loaded: @executable_path/../../../../Python Referenced from: /Users/weiliang/.pyenv/versions/3.9.18/lib/python3.9/site-packages/bmf/lib/_hmp.cpython-39-darwin.so Reason: tried: '/Users/weiliang/Python' (no such file), '/usr/local/lib/Python' (no such file), '/usr/lib/Python' (no such file, not in dyld cache)

taoboyang commented 10 months ago

Hello, there, sry for the problem. In fact, the BMF framework is currently ready for Mac infrastructure. There may be problems with some environment monitoring configurations. We are rectifying them and accelerating support. Thank you for your patience.

taoboyang commented 10 months ago

Hello, I want to know how do you install BMF, through pip install BabitMF? I did a local test here. I installed python3.9 using homebrew, and the problems you exposed did not occur. Would you please provide more detailed environment information?

lanch commented 9 months ago

Hello, I want to know how do you install BMF, through pip install BabitMF? I did a local test here. I installed python3.9 using homebrew, and the problems you exposed did not occur. Would you please provide more detailed environment information?

I use pyenv to install the python 3.9, and pip install BabitMF