-
Notifications
You must be signed in to change notification settings - Fork 981
I can not install RaspBerry 3 and Raspbian Jessie Lite #91
Comments
Can you try to redownload the files and try again? Also have you made sure your python environment is up to date? And lastly can you describe to me how you downloaded the file? This error is possibly due to a corrupt file that was downloaded. Haven't had this issue myself working in Python 2.7 or 3 on a Pi3 which is why I ask. |
I'll show you all the steps I do:
Thanks |
This is what I see when I do the install. pi@raspberrypi:~ $ git clone https://github.com/adafruit/Adafruit_Python_DHT.gitCloning into 'Adafruit_Python_DHT'...
remote: Counting objects: 249, done.
remote: Total 249 (delta 0), reused 0 (delta 0), pack-reused 249
Receiving objects: 100% (249/249), 77.00 KiB | 0 bytes/s, done.
Resolving deltas: 100% (142/142), done. Followed by: pi@raspberrypi:~/Adafruit_Python_DHT $ sudo apt-get install build-essential python-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version (12.3).
python-dev is already the newest version (2.7.13-2).
python-dev set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 13 not upgraded. Is there a reason you did this step instead of simply just running python setup.py install? root@raspberrypi:/home/pi/Adafruit_Python_DHT# python setup.py build I ask because you get the same error when trying to do that and it again seems like there's a corrupted file somewhere. Maybe it's an issue with the Lite version of the OS install as you shouldn't need to download a copy of setuptools if everything is setup properly with your python installation. Maybe try python -m pip install --upgrade pip setuptools wheel Before running python setup.py install. |
I had the same problem today. As a workaround, I just download |
@sim51 Glad that worked for you. The thing that's odd to me though is you shouldn't need to install from that zip file if you already have setuptools in your Python environment which I personally didn't think was missing from my last Raspbian Lite install's Python env. but maybe I added it after the fact. |
Hello, |
Yep it's weird .... As the documentation mentioned it, I have installed python like this :
And if I do this on the pyhton console, I don't see any trace of setuptool :
My raspberry is a version 3 with the Hope it can helps. |
The file is now in the repo, setuptools-4.0.1.zip But it still does not work for me |
Comment from #92 @bargacha solved my problem...
|
I can confirm the install crashes on the python setu.py install. The Ansible playbook I wrote for the install last spring has worked good until about 6 weeks ago. Now I have the RPi's in, it is a bit annoying the time I invested in creating the playbook isn't payed back by a smooth install of all the RPi's at the same time. Oh, well, at least I learned the basics on Ansible :-) |
remove deprecated ez_setup.py; update install instructions (fixes #91)
Platform/operating system (i.e. Raspberry Pi with Raspbian operating system,
Windows 32-bit, Windows 64-bit, Mac OSX 64-bit, etc.): Raspberry Raspbian Jessie lite
Python version (run
python -version
orpython3 -version
): 2.7Error message you are receiving, including any Python exception traces: ```
File "/usr/lib/python2.7/zipfile.py", line 811, in _RealGetContents
raise BadZipfile, "File is not a zip file"
The text was updated successfully, but these errors were encountered: