0

Adafruit_Python_PCA9685.git problem
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.

Adafruit_Python_PCA9685.git problem

by RetGMElect on Sun Oct 07, 2018 3:48 pm

The following code is as per instructions from tutorial.

sudo apt-get install -y git build-essential python-dev
git clone https://github.com/adafruit/Adafruit_Python_PCA9685.git
cd Adafruit_Python_PCA9685
sudo python setup.py install

Everything goes well until last line. It generates a few errors. Such as module not found and a zip file is not a zip file. I even tried using the pip method and get the same errors. Is the github repository corrupt?

RetGMElect
 
Posts: 12
Joined: Wed Apr 12, 2017 12:25 pm

Re: Adafruit_Python_PCA9685.git problem

by adafruit_support_mike on Mon Oct 08, 2018 1:44 am

Try changing the 'https' in the URL to 'http'.

Sometimes Github will try to get login credentials when you use an SSL connection. A plain HTTP connection should just download the zipfile.

adafruit_support_mike
 
Posts: 53554
Joined: Thu Feb 11, 2010 2:51 pm

Re: Adafruit_Python_PCA9685.git problem

by RetGMElect on Mon Oct 08, 2018 1:00 pm

I solved my problem. I was trying to setup the Adafruit PCA9685 16ch PWM HAT/BONNET on a TinkerBoard S. I had no problem setting it up on a RaspberryPi. For some reason the TinkerBoard S corrupted the zip files in the git clone step. So I had to download the zip files by themselves using chrome browser and replace the corrupted zips. Installing the Adafruit_GPIO before running the setup for the Adafruit_Python_PCA9685. There is no corruption in the github repository.

RetGMElect
 
Posts: 12
Joined: Wed Apr 12, 2017 12:25 pm

Re: Adafruit_Python_PCA9685.git problem

by adafruit_support_mike on Wed Oct 10, 2018 3:50 am

Glad to hear you got it working. Happy hacking!

adafruit_support_mike
 
Posts: 53554
Joined: Thu Feb 11, 2010 2:51 pm

Please be positive and constructive with your questions and comments.