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

后端 未结 20 1650
無奈伤痛
無奈伤痛 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条回答
  •  心在旅途
    2020-11-29 03:00

    I was seeing similar python stack dump on the console of my Ubuntu 16.04 VM when I tried ssh into the VM.

    SSL_ST_INIT = _lib.SSL_ST_INIT
    AttributeError: 'module' object has no attribute 'SSL_ST_INIT'
    

    pip reported that pyopenssl was not installed.

    I had to do this instead:

    sudo apt install --reinstall python-openssl
    

提交回复
热议问题