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
810 stars 71 forks source link

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

Open lanch opened 1 year ago

lanch commented 1 year 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 1 year 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 1 year 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 1 year 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