I installed apache 2.4 on ubuntu 14.04 with mod_wsgi 4.4 from source and pyenv to use python 2.7.9. I set up the apache configuration to work with pyenv. I'm getting the following error when I run my web2py app:
File "/home/ubuntu/.pyenv/versions/w-2.7.9/lib/python2.7/site-packages/boto/https_connection.py", line 131, in connect ca_certs=self.ca_certs) File "/usr/local/lib/python2.7/ssl.py", line 387, in wrap_socket ciphers=ciphers) File "/usr/local/lib/python2.7/ssl.py", line 138, in __init__ self._sslobj = _ssl.sslwrap(self._sock, server_side, AttributeError: 'module' object has no attribute 'sslwrap' I'm not sure why, but suddenly as you see it stops using pyenv python and jumps to /usr/local/lib/python2.7/ssl.py and uses it.
The problem is not with ssl sslwreap function, it's that mod_wsgi switch to system python (/usr/local/lib/python2.7/ssl.py), not pyenv
What's going wrong?