Skip to content

Motor Hat Import Board permission issue #80

@arhyneRWU

Description

@arhyneRWU

Describe the bug

The Stepper motor fails to work because of a permission issue, it can not import the module 'board'

Log cleared!
2021-05-04 16:20:04.367 | INFO | __main__:<module>:39 - Starting the PlanktoScope python script!
2021-05-04 16:20:04.451 | INFO | planktoscope.mqtt:<module>:60 - planktoscope.mqtt is loaded
Traceback (most recent call last):
File "/home/pi/PlanktonScope/scripts/main.py", line 45, in <module>
import planktoscope.stepper
File "/home/pi/.node-red/projects/PlanktonScope/scripts/planktoscope/stepper.py", line 3, in <module>
import adafruit_motorkit
File "/usr/local/lib/python3.7/dist-packages/adafruit_motorkit.py", line 55, in <module>
import board
**File "/home/pi/.local/lib/python3.7/site-packages/board.py", line 166, in <module>
raise NotImplementedError("Board not supported {}".format(board_id))
NotImplementedError: Board not supported None**
<13>May 4 16:28:00 update.sh: Updating the main repository
<13>May 4 16:28:00 update.sh: nothing to do!

To Reproduce
Steps to reproduce the behavior:

  1. ssh into the pi

  2. cd test

  3. python3 stepper.py
    File "/home/pi/.local/lib/python3.7/site-packages/board.py", line 166, in <module> raise NotImplementedError("Board not supported {}".format(board_id)) NotImplementedError: Board not supported None

  4. sudo python3 stepper.py <---- this works without the error

Planktoscope version (please complete the following information):
Pi4, Verison 2.2, Adafruit Hat

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions