-
Notifications
You must be signed in to change notification settings - Fork 284
"File is not a zip file" error when building per website instructions #22
Comments
It's not recognizing the file <html><head><title>301 Moved Permanently</title></head><body><center><h1>301 Moved Permanently</h1></center></body></html> |
After trying in a couple of environments (latest Raspbian image, and stock Debian Stretch), I'm unable to reproduce this behavior. I do however notice a couple of redirects here:
...so I can imagine something failing to follow those correctly. Lemme see if I can adjust to the correct |
Im also having this problem... |
This seems, from googling, like a pretty common class of bugs. I just pushed a branch updating git clone https://github.com/adafruit/Adafruit_Python_SSD1306.git
cd Adafruit_Python_SSD1306
git checkout update_ez_install
sudo python setup.py install |
At work and my pi is not Port forwarded right now, but ran it on my other Linux box, seems to install fine. Will run on pi when home later though, and update |
Thanks; much appreciated. There's probably more that needs done in terms of cleanup here, but fingers crossed this'll solve it for the moment. |
Home and Deleted former directory, re-cloned, but still errors...
|
Awright, thanks for the testing. I will dig in deeper. Looks like we're seeing similar breakage at adafruit/Adafruit_Python_DHT#91 |
I just pushed another change here. Per commentary on some other repos and the setuptools docs, let's try this without ez_setup.py involved at all:
|
Still curious if that works, but looking at it, I think we're gonna move our install instructions generally to just use |
Alright I burned a fresh copy of Jessie just in case, updated, updated,python, installed pip, installed github, cloned the repository, did the git checkout. Now errors are as follows:
and
maybe its directed to the wrong location for pip? |
@DuncDude maybe. Does |
I get the exact same error as described in the beginning of the issue. It worked on Raspbian Stretch Lite (2017-09-07). |
I was trying to install the Adafruit PCA9685 and ran across the same problem in this thread about the bad zip file. This was in Raspbian Stretch Lite (2017-11-29). |
@GIJ0E : This worked for me. recommend simplifying the install and move this to the top of the thread. |
@GIJ0E That was it, thanks man. Seems like the installer script does not know how to deal with redirects. |
@GIJ0E : Thanks for the fix. I also had to use your method |
hiya, this library is being deprecated - we have a similar library that works with Python3 and modern linux computers. please check out this guide for more info |
Using instructions from website here: https://learn.adafruit.com/adafruit-pioled-128x32-mini-oled-for-raspberry-pi/usage
On latest Raspbian Stretch:
The text was updated successfully, but these errors were encountered: