0

ServoHat Driver
Moderators: adafruit_support_bill, adafruit

Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Please be positive and constructive with your questions and comments.

ServoHat Driver

by ilanfelberg on Wed Oct 13, 2021 2:33 pm

Hi,

I am using the adafruit servokit library to drive servo motors from python3,

I am running into a problem where I am getting this error:
" ModuleNotFoundError: No module named 'board' "

I have installed the blinka library, but that has not seemed to help

if I install the board library (sudo pip3 install board), then the error I get is
" AttributeError: module 'board' has no attribute 'I2C' "

What other troubleshooting options could I try to fix this problem?

ilanfelberg
 
Posts: 2
Joined: Wed Oct 13, 2021 2:27 pm

Re: ServoHat Driver

by adafruit_support_carter on Wed Oct 13, 2021 5:35 pm

if I install the board library (sudo pip3 install board), then the error I get is

This is not the fix. That is a totally unrelated Python package. See here:
https://learn.adafruit.com/circuitpytho ... aq-3055911

Use the test here to make sure the Blinka install is OK:
https://learn.adafruit.com/circuitpytho ... 3030038-17

adafruit_support_carter
 
Posts: 21380
Joined: Tue Nov 29, 2016 2:45 pm

Re: ServoHat Driver

by ilanfelberg on Wed Oct 13, 2021 7:58 pm

Thank you!
I tried the force reinstall of Blinka as suggested, and I was able to work through the problem from there!

ilanfelberg
 
Posts: 2
Joined: Wed Oct 13, 2021 2:27 pm

Please be positive and constructive with your questions and comments.