Я начал изучать Scrapy и получил это сообщение об ошибке.Я гуглил его и установил / обновил service_identity и связанные с ним пакеты python, но все равно получил ту же ошибку при импорте service_identity.
- ОС: Windows 7 64-битная
- Python: 2.7.15Anaconda
- service_identity: 18.1.0
- pyopenssl: 17.5.0
- pyasn1: 0.4.5
- pyasn1-модулей: 0.2.3
Сообщение об ошибке:
import service_identity
Traceback (most recent call last):
File "ipython-input-2-709fa376dd62", line 1, in <module>
import service_identity
File "C:\anaconda2\lib\site-packages\service_identity\__init__.py", line 7, in <module>
from . import cryptography, pyopenssl
File "C:\anaconda2\lib\site-packages\service_identity\cryptography.py", line 9, in <module>
from cryptography.x509 import (
ImportError: cannot import name DNSName