Python AttributeError: 'module' object has no attribute 'SSL_ST_INIT'

后端 未结 20 1604
無奈伤痛
無奈伤痛 2020-11-29 02:06

A Python script of mine is failing with:

Traceback (most recent call last):
  File \"./inspect_sheet.py\", line 21, in 
    main()
  File \"./i         


        
20条回答
  •  萌比男神i
    2020-11-29 02:40

    Turned out the problem was with my installation of pyOpenSSL, pyOpenSSL-0.15.1 .

    I did:

    pip uninstall pyopenssl
    

    and then

    pip install pyopenssl
    

    ...and my Python script worked again!

提交回复
热议问题