Skip to content

Instantly share code, notes, and snippets.

@bracki
Last active August 29, 2015 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bracki/dbd7e52d7281e0b4fbf8 to your computer and use it in GitHub Desktop.
Save bracki/dbd7e52d7281e0b4fbf8 to your computer and use it in GitHub Desktop.
pip install diesel
>>> urllib2.urlopen('http://jamwt.com/diesel/diesel-3.0.16.tar.gz')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 126, in urlopen
    return _opener.open(url, data, timeout)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 400, in open
    response = meth(req, response)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 513, in http_response
    'http', request, response, code, msg, hdrs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 438, in error
    return self._call_chain(*args)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 372, in _call_chain
    result = func(*args)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 521, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 403: Forbidden
(nagios-api)➜  ~  pip install diesel
Downloading/unpacking diesel
  HTTP error 403 while getting http://jamwt.com/diesel/diesel-3.0.16.tar.gz (from https://pypi.python.org/simple/diesel/)
  Could not install requirement diesel because of error HTTP Error 403: Forbidden
Could not install requirement diesel because of HTTP error HTTP Error 403: Forbidden for URL http://jamwt.com/diesel/diesel-3.0.16.tar.gz (from https://pypi.python.org/simple/diesel/)
Storing complete log in /Users/jan/.pip/pip.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment