-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On Mac donkey car error with "donkey/lib/libbcm_host.so' (no such file)" when I run python manage.py drive #1032
Comments
Are you running on a Raspberry Pi, Windows, Linux, Mac? Miniconda install is recommended for Windows, Linux, Mac. And you have specified the picamera to run. |
I am running it on Mac. I am following steps listed here : https://docs.donkeycar.com/guide/simulator/ Earlier, since I noticed that it was looking for picamera, I did this step (although its not listed in the steps) post this, I executed and then |
Did you also follow these instructions: https://docs.donkeycar.com/guide/host_pc/setup_mac/ ? I also suggest you join the Discord server for help instead of posting here. You will likely receive alot more responses. |
@unnatis07 It seems you have the RaspberryPi camera selected in your myconfig.py file; that will not work on a Mac. You want to choose either 'MOCK' for no camera or 'CVCAM' to use opencv to access a webcam or laptop camera (you must have installed the optional opencv dependencies to do this). |
@unnatis07 Is this still a problem for you? It sounds like a configuration issue. I would like to close this issue; please give us an update. |
Thanks Ed. Its not an issue anymore. I solved it but dont recall specifics. Thanks again. On Oct 28, 2022, at 9:02 PM, Ed Murphy ***@***.***> wrote:
@unnatis07 Is this still a problem for you? It sounds like a configuration issue. I would like to close this issue; please give us an update.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Logs
python manage.py drive
___ __ _______________ /___________ __ __ /_ ________
__ / / / __ _ __ _ /// _ _ / / / _ / _ __ `/ /
_ // // // / / / / ,< / __/ // / / /___ / // / /
// _/// ////|| _/_, / _/ _,/ //
/____/
using donkey v4.3.6.3 ...
WARNING:donkeycar.parts.pins:RPi.GPIO was not imported.
WARNING:donkeycar.parts.pins:pigpio was not imported.
INFO:numexpr.utils:NumExpr defaulting to 8 threads.
loading config file: /Users/vense03/mysim/config.py
loading personal config over-rides from myconfig.py
INFO:main:PID: 36298
cfg.CAMERA_TYPE PICAM
INFO:main:cfg.CAMERA_TYPE PICAM
Traceback (most recent call last):
File "manage.py", line 853, in
meta=args['--meta'])
File "manage.py", line 142, in drive
cam = PiCamera(image_w=cfg.IMAGE_W, image_h=cfg.IMAGE_H, image_d=cfg.IMAGE_DEPTH, framerate=cfg.CAMERA_FRAMERATE, vflip=cfg.CAMERA_VFLIP, hflip=cfg.CAMERA_HFLIP)
File "/Users/vense03/Unnati/donkeycar/donkeycar/parts/camera.py", line 22, in init
from picamera.array import PiRGBArray
File "/Users/vense03/opt/miniconda3/envs/donkey/lib/python3.7/site-packages/picamera/init.py", line 72, in
from picamera.exc import (
File "/Users/vense03/opt/miniconda3/envs/donkey/lib/python3.7/site-packages/picamera/exc.py", line 41, in
import picamera.mmal as mmal
File "/Users/vense03/opt/miniconda3/envs/donkey/lib/python3.7/site-packages/picamera/mmal.py", line 47, in
from .bcm_host import VCOS_UNSIGNED
File "/Users/vense03/opt/miniconda3/envs/donkey/lib/python3.7/site-packages/picamera/bcm_host.py", line 47, in
_lib = ct.CDLL('libbcm_host.so')
File "/Users/vense03/opt/miniconda3/envs/donkey/lib/python3.7/ctypes/init.py", line 364, in init
self._handle = _dlopen(self._name, mode)
OSError: dlopen(libbcm_host.so, 0x0006): tried: '/Users/vense03/opt/miniconda3/envs/donkey/lib/libbcm_host.so' (no such file), '/Users/vense03/opt/miniconda3/envs/donkey/lib/libbcm_host.so' (no such file), '/Users/vense03/opt/miniconda3/envs/donkey/lib/python3.7/lib-dynload/../../libbcm_host.so' (no such file), '/Users/vense03/opt/miniconda3/envs/donkey/lib/libbcm_host.so' (no such file), '/Users/vense03/opt/miniconda3/envs/donkey/bin/../lib/libbcm_host.so' (no such file), 'libbcm_host.so' (no such file), '/usr/local/lib/libbcm_host.so' (no such file), '/usr/lib/libbcm_host.so' (no such file), '/Users/vense03/mysim/libbcm_host.so' (no such file)
The text was updated successfully, but these errors were encountered: