I'm using gdal in a python script that runs flask (on apache + mod_wsgi). When starting the server i get this error:
ImportError: /usr/bin/anaconda/lib/python2.7/site-packages/osgeo/../../.././libcurl.so.4: undefined symbol: SSLv2_client_method
the error generates when importing gdal on:
from osgeo import gdal
the thing is that, when running that command (importing gdal) from the console of the same python interpreter, it works ok... but it won't work when running the same script as a WSGI daemon.
my wsgi file is as follows:
<VirtualHost *:80>
ServerName ____________
WSGIDaemonProcess aurapi user=avt group=avt threads=5 python-path=/usr/bin/anaconda/lib/python2.7/site-packages python-home=/usr/bin/anaconda/bin
WSGIScriptAlias / /var/api/aurapi/aurapi.wsgi
<Directory /var/api/aurapi>
WSGIProcessGroup aurapi
WSGIApplicationGroup %{GLOBAL}
WSGIScriptReloading On
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
this happens only with gdal, all other libraries work great.
thanks in advance!