adafruit / adafruit/Adafruit_CircuitPython_HID
Strange error when importing "adafruit_hid.mouse_button"
- Dominant language
- Python
- Stars
- 464
- Forks
- 121
- PR merge metrics
- No merged PRs in 30d
Description
Strange error "File"code.py", string 8, in " when importing "adafruit_hid.mouse_button"
```py
import board
import wifi
import socketpool
import usb_hid
from adafruit_httpserver import Server, Request, Response
from adafruit_hid.mouse import Mouse
from adafruit_hid.mouse_button import MouseButton
from adafruit_hid.keyboard import Keyboard
from adafruit_hid.keycode import Keycode
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the import in code.py at the reported line 8, using the same sequence of CircuitPython imports, and capture the complete traceback rather than only the shortened error. Compare the failing adafruit_hid.mouse_button import with the installed library and board environment; done means the cause is identified and the import works or the required incompatibility is clearly documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- embedded-iot
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100