kennethreitz/requests — Issue #326: `ImportError: No module named certifi` when using SSL
Author: mvanveen
Created: 2011-12-30 04:01:57+00:00
State: open

I did a fresh clone of the requests repo and get the following traceback when I try to POST to the following endpoint:

```python
>>> requests.post('https://api.dropbox.com/1/oauth/request_token')
Traceback (most recent call last):
File "", line 1, in
File "requests/api.py", line 83, in post
return request('post', url, data=data, **kwargs)
File "requests/api.py", line 38, in request
return s.request(method=method, url=url, **kwargs)
File "requests/sessions.py", line 200, in request
r.send(prefetch=prefetch)
File "requests/models.py", line 454, in send
cert_loc = __import__('certifi').where()
ImportError: No module named certifi
```

I realize that Requests leverages the full breadth of existing http packages out there, but do I really need to download an external dependency just to get out to https? Is there some way a fallback stub could be put in the place of this package?