Debian Stretch中的Scrapy - ImportError:libssl.so.1.0.0

时间:2017-08-01 21:18:07

标签: python scrapy pip virtualenv pyopenssl

我想让我的Scrapy抓取工具再次运行。我刚刚安装了Debian Stretch,64位。我当然安装了pythonpython-scrapy。我到了virtualenv(要求已经满意)但我得到以下ImportError: libssl.so.1.0.0: cannot open shared object file: No such file or directory错误:

.../env/local/lib/python2.7/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 13, in <module>
from cryptography.hazmat.bindings._openssl import ffi, lib
ImportError: libssl.so.1.0.0: cannot open shared object file: No such file or directory

任何想法我能做什么?

$ python -V
Python 2.7.13

$ scrapy -v
Scrapy 1.4.0

python-cryptography installed version: 1.7.1-3

$openssl version
OpenSSL 1.1.0f  25 May 2017

$which openssl
/usr/bin/openssl

$pip freeze
acme==0.10.2
asn1crypto==0.22.0
attrs==16.3.0
backports.shutil-get-terminal-size==1.0.0
beautifulsoup4==4.5.3
boto==2.44.0
certbot==0.10.2
cffi==1.10.0
chardet==2.3.0
chrome-gnome-shell==0.0.0
click==6.6
colorama==0.3.7
ConfigArgParse==0.11.0
configobj==5.0.6
constantly==15.1.0
cryptography==2.0
cssselect==1.0.1
decorator==4.0.11
Django==1.10.7
dnspython==1.15.0
enum34==1.1.6
funcsigs==1.0.2
html5lib==0.999999999
idna==2.5
incremental==16.10.1
ipaddress==1.0.18
ipython==5.1.0
ipython-genutils==0.1.0
keyring==10.1
keyrings.alt==1.3
lxml==3.7.1
mock==2.0.0
musicbrainzngs==0.6
mutagen==1.36
mysqlclient==1.3.7
numpy==1.12.1
PAM==0.4.2
parsedatetime==2.1
parsel==1.2.0
pathlib2==2.1.0
pbr==1.10.0
pdfshuffler==0.6.0
pexpect==4.2.1
pickleshare==0.7.4
Pillow==4.0.0
prompt-toolkit==1.0.9
psutil==5.0.1
ptyprocess==0.5.1
pyasn1==0.1.9
pyasn1-modules==0.0.7
pycparser==2.18
pycrypto==2.6.1
PyDispatcher==2.0.5
Pygments==2.2.0
pygobject==3.22.0
PyICU==1.9.5
pyOpenSSL==17.1.0
PyPDF2==1.26.0
pyRFC3339==1.0
pyserial==3.2.1
pytz==2016.7
pyxdg==0.25
queuelib==1.4.2
quodlibet==3.7.1
requests==2.12.4
scour==0.32
Scrapy==1.4.0
SecretStorage==2.3.1
service-identity==16.0.0
simplegeneric==0.8.1
six==1.10.0
sqlparse==0.2.2
traitlets==4.3.1
Twisted==16.6.0
urllib3==1.19.1
virtualenv==15.1.0
w3lib==1.17.0
wcwidth==0.1.7
webencodings==0.5
zope.component==4.3.0
zope.event==4.2.0
zope.hookable==4.0.4
zope.interface==4.3.2

requirements.txt的内容(在Debian Wheezy中正常工作):

Scrapy==1.0.3
ipdb==0.8.1
service_identity==14.0.0
pytest==2.7.2

1 个答案:

答案 0 :(得分:0)

在Stretch中,libopenssl在1.1版本之后可用。

我建议您找到最新版本的Scrappy(AFAIK,当前稳定版为1.4.0。但我还没有在拉伸下测试它。)