# The raspberrypi3-debian-python image cannot detect the usb devices.

**URL:** <https://forums.balena.io/t/the-raspberrypi3-debian-python-image-cannot-detect-the-usb-devices/359552>\
**Category:** balenaOS\
**Tags:** raspberrypi3, docker\
**Created:** [July 9, 2022, 4:42pm UTC](https://forums.balena.io/t/the-raspberrypi3-debian-python-image-cannot-detect-the-usb-devices/359552 "2022-07-09T16:42:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![oyamingo](https://avatars.discourse-cdn.com/v4/letter/o/6de8d8/32.png) [@oyamingo](https://forums.balena.io/u/oyamingo)\
**Post date:** [July 9, 2022, 4:42pm UTC](https://forums.balena.io/t/the-raspberrypi3-debian-python-image-cannot-detect-the-usb-devices/359552/1 "2022-07-09T16:42:17Z")

</div>

I get an error when running the **raspberrypi3-debian-python** image with the following command:

> > docker run -it -v /dev:/dev balenalib/raspberrypi3-debian-python:latest /bin/bash  
> > lsusb

And the error is:  
**lsusb: …/…/libusb/libusbi.h:497: usbi\_get\_monotonic\_time: Assertion `clock\_gettime(1, tp) == 0’ failed.**  
**Aborted (core dumped)**

Is it the command I’m using that needs to be improved, or the image doesn’t support usb device recognition?

---

<div class="post-metadata">

**Author:** ![TJvV](https://avatars.discourse-cdn.com/v4/letter/t/858c86/32.png) [@TJvV](https://forums.balena.io/u/TJvV)\
**Post date:** [July 11, 2022, 7:40am UTC](https://forums.balena.io/t/the-raspberrypi3-debian-python-image-cannot-detect-the-usb-devices/359552/2 "2022-07-11T07:40:31Z")

</div>

Hi, this seems to work fine on mine, even without explicitly mounting the device dir (kinda surprised there).

```auto
thijs@tjvv-pi3:~/balena $ docker run --rm -it balenalib/raspberrypi3-debian-python:latest /bin/bash
root@5b6d6eaa5e8f:/# lsusb
Bus 001 Device 004: ID 059f:106f LaCie, Ltd P9233
Bus 001 Device 003: ID 0424:ec00 Microchip Technology, Inc. (formerly SMSC) SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Microchip Technology, Inc. (formerly SMSC) SMC9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

```

Can you see your devices normally when you run the command in your host OS?

Something you can try, is to run your container with the following flags: `--privileged -e UDEV=on`.

---

<div class="post-metadata">

**Author:** ![oyamingo](https://avatars.discourse-cdn.com/v4/letter/o/6de8d8/32.png) [@oyamingo](https://forums.balena.io/u/oyamingo)\
**Post date:** [July 11, 2022, 9:33am UTC](https://forums.balena.io/t/the-raspberrypi3-debian-python-image-cannot-detect-the-usb-devices/359552/3 "2022-07-11T09:33:09Z")

</div>

Very thanks for your reply. I will try it.

TJvV via balenaForums \<[notifications@balena.discoursemail.com](mailto:notifications@balena.discoursemail.com)\> 于2022年7月11日周一 15:50写道：

---

<div class="post-metadata">

**Author:** ![mcraa](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/mcraa/32/6648_2.png) [@mcraa](https://forums.balena.io/u/mcraa)\
**Post date:** [August 2, 2022, 12:37pm UTC](https://forums.balena.io/t/the-raspberrypi3-debian-python-image-cannot-detect-the-usb-devices/359552/4 "2022-08-02T12:37:07Z")

</div>

Hi @oyamingo did you manage to get it work?  
Thanks,
