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

RuntimeError: Can't connect to HTTPS URL because the SSL module is not available. #30

Open
OdinsHat opened this issue Jul 28, 2015 · 1 comment

Comments

@OdinsHat
Copy link

This error occurs on OSX 10.10.4 (Yosemite) using Python 2.7.7

The full stack trace is:

Traceback (most recent call last):
  File "./digital_ocean.py", line 440, in <module>
    DigitalOceanInventory()
  File "./digital_ocean.py", line 225, in __init__
    self.load_from_digital_ocean('droplets')
  File "./digital_ocean.py", line 322, in load_from_digital_ocean
    self.data['droplets'] = self.manager.all_active_droplets()
  File "/Library/Python/2.7/site-packages/dopy/manager.py", line 30, in all_active_droplets
    json = self.request('/droplets/')
  File "/Library/Python/2.7/site-packages/dopy/manager.py", line 424, in request
    resp = self.request_v2(url, params=params, headers=headers, method=method)
  File "/Library/Python/2.7/site-packages/dopy/manager.py", line 475, in request_v2
    raise RuntimeError(e)
RuntimeError: Can't connect to HTTPS URL because the SSL module is not available.
@zbal
Copy link
Member

zbal commented Nov 11, 2015

Are you sure this is not an error of requests itself or your system not having the ssl library available? Can you run the following without exception being thrown?

python -c "import requests; a = requests.get('https://github.com'); print len(a.text);"

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

No branches or pull requests

2 participants