Skip to content

Instantly share code, notes, and snippets.

Created April 1, 2011 13:39
Show Gist options
  • Select an option

  • Save anonymous/898158 to your computer and use it in GitHub Desktop.

Select an option

Save anonymous/898158 to your computer and use it in GitHub Desktop.
pip install of graphite-web and friends
$ cat bootstrap.sh
#!/bin/sh
cat <<EOF > requirements.txt
whisper==0.9.7
carbon==0.9.7
graphite-web==0.9.7c
gunicorn
EOF
pip install -E ./env --install-option="--root=/tmp/test" -r requirements.txt
$ pip --version
pip 0.8.2 from /usr/lib/python2.7/site-packages (python 2.7)
$ ./bootstrap.sh
Creating new virtualenv environment in ./env
New python executable in ./env/bin/python2
Also creating executable in ./env/bin/python
Installing setuptools...done.....................
Downloading/unpacking whisper==0.9.7 (from -r requirements.txt (line 1))
Downloading whisper-0.9.7.tar.gz
Running setup.py egg_info for package whisper
Downloading/unpacking gunicorn (from -r requirements.txt (line 4))
Downloading gunicorn-0.12.1.tar.gz (185Kb): 185Kb downloaded
Running setup.py egg_info for package gunicorn
Downloading/unpacking graphite-web==0.9.7c (from -r requirements.txt (line 3))
Downloading graphite-web-0.9.7c.tar.gz (2.1Mb): 2.1Mb downloaded
Running setup.py egg_info for package graphite-web
Downloading/unpacking carbon==0.9.7 (from -r requirements.txt (line 2))
Downloading carbon-0.9.7.tar.gz
Running setup.py egg_info for package carbon
Downloading/unpacking twisted (from carbon==0.9.7->-r requirements.txt (line 2))
Downloading Twisted-10.2.0.tar.bz2 (2.7Mb): 2.7Mb downloaded
Running setup.py egg_info for package twisted
Downloading/unpacking txamqp (from carbon==0.9.7->-r requirements.txt (line 2))
Downloading txAMQP-0.4.tar.gz
Running setup.py egg_info for package txamqp
Downloading/unpacking zope.interface (from twisted->carbon==0.9.7->-r requirements.txt (line 2))
Downloading zope.interface-3.6.1.tar.gz (125Kb): 125Kb downloaded
Running setup.py egg_info for package zope.interface
Requirement already satisfied (use --upgrade to upgrade): distribute in /usr/lib/python2.7/site-packages (from zope.interface->twisted->carbon==0.9.7->-r requirements.txt (line 2))
Installing collected packages: carbon, graphite-web, gunicorn, twisted, txamqp, whisper, zope.interface
Running setup.py install for carbon
changing mode of build/scripts-2.7/carbon-relay.py from 644 to 755
changing mode of build/scripts-2.7/carbon-cache.py.~1~ from 644 to 755
changing mode of build/scripts-2.7/carbon-cache.py from 644 to 755
changing mode of /tmp/test/opt/graphite/bin/carbon-relay.py to 755
changing mode of /tmp/test/opt/graphite/bin/carbon-cache.py.~1~ to 755
changing mode of /tmp/test/opt/graphite/bin/carbon-cache.py to 755
Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/pip/basecommand.py", line 130, in main
self.run(options, args)
File "/usr/lib/python2.7/site-packages/pip/commands/install.py", line 228, in run
requirement_set.install(install_options, global_options)
File "/usr/lib/python2.7/site-packages/pip/req.py", line 1044, in install
requirement.install(install_options, global_options)
File "/usr/lib/python2.7/site-packages/pip/req.py", line 586, in install
f = open(os.path.join(egg_info_dir, 'installed-files.txt'), 'w')
IOError: [Errno 2] No such file or directory: '/opt/graphite/lib/carbon-0.9.7-py2.7.egg-info/installed-files.txt'
Storing complete log in /home/brad/.pip/pip.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment