ZeevG/python-forecast.io

not downloading on raspberry pi (raspbian)

Closed this issue · 11 comments

entered the command sudo pip install python-forecastio in to terminal and it come out with this: (yes i do have PIP)


pi@raspberrypi ~ $ sudo pip install python-forecastio
Downloading/unpacking python-forecastio
Running setup.py egg_info for package python-forecastio

Downloading/unpacking requests>=1.6 (from python-forecastio)
Running setup.py egg_info for package requests

Downloading/unpacking responses (from python-forecastio)
Running setup.py egg_info for package responses
No handlers could be found for logger "main"

Downloading/unpacking cookies (from responses->python-forecastio)
Running setup.py egg_info for package cookies

Requirement already satisfied (use --upgrade to upgrade): six in /usr/local/lib/python2.7/dist-packages (from responses->python-forecastio)
Downloading/unpacking mock (from responses->python-forecastio)
Running setup.py egg_info for package mock
mock requires setuptools>=17.1. Aborting installation
Complete output from command python setup.py egg_info:
mock requires setuptools>=17.1. Aborting installation


Command python setup.py egg_info failed with error code 1 in /home/pi/build/mock
Storing complete log in /root/.pip/pip.log

ZeevG commented

Looks like you might need to update setuptools

mock requires setuptools>=17.1. Aborting installation

What version of setuptools do you have installed?
Also, what version of Python do you have installed?

I have the 3.0 and 2.5 version of python
I have setup tools version 0.6.24dev-ro

j1fig commented

@bman46 I had a similar issue (though not on rPi) and I do this before running the pip install

wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py -O - | python

This script will install the freshest setuptools version.

Best,
Joao

Ok thanks I'll try it

On Nov 6, 2015, at 3:12 PM, João Figueiredo notifications@github.com wrote:

@bman46 I had a similar issue (though not on rPI) and I do this before running the pip install

wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py -O - | python
This script will install the freshest setuptools version.

Best,
Joao


Reply to this email directly or view it on GitHub.

ZeevG commented

Thanks for the suggestion. How did it go? You may also have to update
Python itself. This package is tested against Python 2.7 and 3.3 it may
work with other versions although I doubt it will be compatible with less
than 2.7

On Sat, 7 Nov 2015 7:21 am bman46 notifications@github.com wrote:

Ok thanks I'll try it

On Nov 6, 2015, at 3:12 PM, João Figueiredo notifications@github.com
wrote:

@bman46 I had a similar issue (though not on rPI) and I do this before
running the pip install

wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py -O

  • | python
    This script will install the freshest setuptools version.

Best,
Joao


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub
#39 (comment)
.

j1fig commented

Hi @bman46 , glad it worked ;)

From the initial problem, you mentioned that this problem appeared while running sudo pip install (super user), so I guess it's installing these packages to the system, and using the system's setuptools version (so this is the one being used by your command).

However if you create a virtualenv and run the command I mentioned, followed by a pip install, it won't required super user (at least it doesn't for me)!

Best,
Joao

@j1fig for some reason it did for me and sudo was not enough it kept failing due to permissions until I used super user and then it worked its probably a permission error on my system

@j1fig also on Rpi I looked at the website and sudo does have some security blocks and super user does not

I had the same problem on Raspberry Pi. For me this helped:
sudo pip install -U setuptools

ZeevG commented

Thanks for all the help with this. Unless there is something I can do to improve compatibility with Paspberry Pi's, I'm going to close this issue.