Raspberry DC and Stepper Motor Hat

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/
Locked
User avatar
laurenzBMR5
 
Posts: 2
Joined: Mon Jan 16, 2023 9:40 am

Raspberry DC and Stepper Motor Hat

Post by laurenzBMR5 »

Hello, I installed the Adafruit-Motor-HAT-Python-Library and i started the DCTest.py with

Code: Select all

python DCTest.py
and everything worked fine. However for another project i have to get it working on python3 and when i try

Code: Select all

python3 DCTest.py
i get this error

Code: Select all

ImportError: No module named 'Adafruit_PureIO
I try installing Adafruit Pure IO with

Code: Select all

sudo pip3 install Adafruit-PureIO
and i get this error:

Code: Select all

distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('setuptools_scm')

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-3viech6e/Adafruit-PureIO/
I'd be very thankful for any help :)

User avatar
bidrohini
 
Posts: 202
Joined: Thu Oct 20, 2022 10:03 am

Re: Raspberry DC and Stepper Motor Hat

Post by bidrohini »

I recommend to update the setup tools.

Code: Select all

pip install --upgrade setuptools 

User avatar
laurenzBMR5
 
Posts: 2
Joined: Mon Jan 16, 2023 9:40 am

Re: Raspberry DC and Stepper Motor Hat

Post by laurenzBMR5 »

It seems to be up to date:

Code: Select all

Requirement already up-to-date: setuptools in /usr/local/lib/python2.7/dist-packages (44.1.1)

User avatar
adafruit_support_carter
 
Posts: 29056
Joined: Tue Nov 29, 2016 2:45 pm

Re: Raspberry DC and Stepper Motor Hat

Post by adafruit_support_carter »

That library is deprecated:
https://github.com/adafruit/Adafruit-Mo ... on-Library

Please see guide for current setup and Python usage:
https://learn.adafruit.com/adafruit-dc- ... spberry-pi

Locked
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/

Return to “Adafruit Raspberry Pi® accessories”