Python example "thread" error

  1. Where did you get the camera module(s)?
    Amazon

  2. Model number of the product(s)?
    OV5647 5MP

  3. What hardware/platform were you working on?
    Raspberry Pi 4B 4GB, latest Raspberry Pi OS (Bullseye)

  4. Instructions you have followed. (link/manual/etc.)
    Cloned the GitHub repository per instructions that came with the camera.
    Enabled i2c as suggested
    Ran the demo Motorized_Focus_Camera_Preview.py

  5. Problems you were having?
    Python error:
    ModuleNotFoundError: No module named ‘thread’

  6. The dmesg log from your hardware?
    Not applicable

  7. Troubleshooting attempts you’ve made?
    Fixed by changing line 5 in the example from “import thread” to “import _thread as thread”

  8. What help do you need?
    No help required, just wanted to point out this error.