Skip to content
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

Closed
unnatis07 opened this issue Jul 26, 2022 · 6 comments

Comments

@unnatis07
Copy link

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)

@cfox570
Copy link
Contributor

cfox570 commented Jul 26, 2022

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.

@unnatis07
Copy link
Author

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)
export READTHEDOCS=True
pip install picamera

post this, I executed
conda activate donkey

and then
python manage.py drive : and This step is where I get the error posted above.

@cfox570
Copy link
Contributor

cfox570 commented Jul 27, 2022

Did you also follow these instructions: https://docs.donkeycar.com/guide/host_pc/setup_mac/ ?
Did you set DONKEY_GYM = True in myconfig.py? This replaces the Picamera setting. You do not need picamera installed for the Mac. If you are still having a problem, I suggest you attach the myconfig.py file with your settings.

I also suggest you join the Discord server for help instead of posting here. You will likely receive alot more responses.
https://www.donkeycar.com/community.html

@Ezward
Copy link
Contributor

Ezward commented Oct 29, 2022

@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).

@Ezward
Copy link
Contributor

Ezward commented Oct 29, 2022

@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.

@unnatis07
Copy link
Author

unnatis07 commented Oct 29, 2022 via email

@Ezward Ezward closed this as completed Mar 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants