Запускаю из виртуальной среды Python 2.7.5 (centos 6.5 (Final) x86_64). pycurl и lxml установлены. При запуске скрипта получаю ошибку:
$python ggg.py
Traceback (most recent call last):
File "ggg.py", line 5, in <module>
m = Grab(log_file='out.html')
File "/home/src/virtualenvs/py2.7/lib/python2.7/site-packages/grab/base.py", line 240, in __init__
self.setup_transport(transport)
File "/home/src/virtualenvs/py2.7/lib/python2.7/site-packages/grab/base.py", line 254, in setup_transport
mod = __import__(mod_path, globals(), locals(), ['foo'])
File "/home/src/virtualenvs/py2.7/lib/python2.7/site-packages/grab/transport/curl.py", line 18, in <module>
import pycurl
File "build/bdist.linux-x86_64/egg/pycurl.py", line 7, in <module>
File "build/bdist.linux-x86_64/egg/pycurl.py", line 6, in __bootstrap__
ImportError: pycurl: libcurl link-time ssl backend (nss) is different from compile-time ssl backend (openssl)
Содерживое файла:
from grab import Grab
m = Grab(log_file='out.html')
m.go('http://ya.ru')
Переустановка pycurl с export PYCURL_SSL_LIBRARY=openssl не помогла.