Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip install fails on RPi #58

Closed
kgf opened this issue Mar 30, 2015 · 3 comments
Closed

pip install fails on RPi #58

kgf opened this issue Mar 30, 2015 · 3 comments

Comments

@kgf
Copy link

kgf commented Mar 30, 2015

Attempting to pip install on Raspbian for IoT.

python --version
Python 2.7.3

pip --version
pip 1.1 from /usr/lib/python2.7/dist-packages (python 2.7)

Here is the output
pip install keen
Downloading/unpacking keen
Downloading keen-0.3.12.tar.gz
Running setup.py egg_info for package keen
Traceback (most recent call last):
File "", line 14, in
File "/home/pi/build/keen/setup.py", line 15, in
install_reqs = parse_requirements('requirements.txt', session=pip.download.PipSession())
AttributeError: 'module' object has no attribute 'PipSession'
Complete output from command python setup.py egg_info:
Traceback (most recent call last):

File "", line 14, in

File "/home/pi/build/keen/setup.py", line 15, in

install_reqs = parse_requirements('requirements.txt', session=pip.download.PipSession())

AttributeError: 'module' object has no attribute 'PipSession'


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

@kgf
Copy link
Author

kgf commented Mar 31, 2015

Here is the data from ~/.pip/pip.log

pi@sbc-pi-01 ~ $ cat ~/.pip/pip.log
Downloading/unpacking keen

Getting page http://pypi.python.org/simple/keen
URLs to search for versions for keen:

AttributeError: 'module' object has no attribute 'PipSession'


Command python setup.py egg_info failed with error code 1 in /home/pi/build/keen

Exception information:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 104, in main
status = self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 245, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1009, in prepare_files
req_to_install.run_egg_info()
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 225, in run_egg_info
command_desc='python setup.py egg_info')
File "/usr/lib/python2.7/dist-packages/pip/init.py", line 256, in call_subprocess
% (command_desc, proc.returncode, cwd))
InstallationError: Command python setup.py egg_info failed with error code 1 in /home/pi/build/keen

@stroud109
Copy link
Contributor

Hey @kgf, sorry you're experiencing this issue. Any chance you could update your version of pip and check if you still experience problems installing Keen? (Looks like pip 1.1 is from 2012 and doesn't support the "session" kwarg for parse_requirements.) Also, what version of Raspbian are you running? Thanks so much!

@stroud109
Copy link
Contributor

Updated in #61

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants