File "/home/U/anaconda3/lib/python3.8/site-packages/OpenSSL/crypto.py", line 1537, in X509StoreFlags CB_ISSUER_CHECK = _lib.X509_V_FLAG_CB_ISSUER_CHECKAttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK'
์์ธ
1) ํ์ฌ ์ฌ์ฉ ์ค์ธ ํ๊ฒฝ์ python library๊ฐ ๋ฎ์ ๋ฒ์ ์ ์ฌ์ฉ
ubuntu ๊ธฐํ os์์ default๋ก python์ 2.x python3๋ 3.x ๋ฒ์ ์ ์ฌ์ฉํ๋๋ฐ ์ด๋ ๊ฐ์ํ๊ฒฝ์ ์ฌ์ฉํ๋ฉด์ PATH๊ฐ ์ ์กํ์ ธ ์์ง ์์ผ๋ฉด ํ๊ฒฝ์ ๋ฎ์ ๋ฒ์ ์ฌ์ฉํ๋ ์คํฌ๋ฆฝํธ๋ ๋์ ๋ฒ์ ์ ์ฌ์ฉํด ํจํค์ง path๊ฐ ๊ผฌ์ธ๋ค.
python3 -m pip install pip --upgrade
pip install pyopenssl --upgrade
2) ํจํค์ง path๊ฐ ๊ผฌ์ธ ๊ฒฝ์ฐ
์ญ์ ํ ๋ค์ ์ค์น
rm -rf <path_to_lib_python3.7>/site-packages/OpenSSL
# rm -rf /home/U/anaconda3/lib/python3.8/site-packages/OpenSSL/
pip install -U pyopenssl
AttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK'
Recently I had to reinstall Python due to a corrupt executable. This made one of our Python scripts bomb with the following error: AttributeError: module 'lib' has no attribute '
stackoverflow.com
ssl ์ ์ฉ์ ์ํด ์ค์นํ certbot์ ํจํค์ง ์ข ์์ฑ์ผ๋ก ์๊ธด ๋ฌธ์ .
'๐ Python' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[...] ํ์ด์ฌ ์ด๋๊น์ง ์๋? (0) | 2024.06.12 |
---|---|
string method. 1~20 (0) | 2024.04.28 |
[Python] f-string trick (2) (0) | 2024.03.17 |
[Python] ์ด๊ฑฐ ๋ชจ๋ฅด๋ฉด ๋๋ ์ด๋ณด (0) | 2024.03.05 |
[Python] f-string trick (1) (0) | 2024.03.02 |
File "/home/U/anaconda3/lib/python3.8/site-packages/OpenSSL/crypto.py", line 1537, in X509StoreFlags CB_ISSUER_CHECK = _lib.X509_V_FLAG_CB_ISSUER_CHECKAttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK'
์์ธ
1) ํ์ฌ ์ฌ์ฉ ์ค์ธ ํ๊ฒฝ์ python library๊ฐ ๋ฎ์ ๋ฒ์ ์ ์ฌ์ฉ
ubuntu ๊ธฐํ os์์ default๋ก python์ 2.x python3๋ 3.x ๋ฒ์ ์ ์ฌ์ฉํ๋๋ฐ ์ด๋ ๊ฐ์ํ๊ฒฝ์ ์ฌ์ฉํ๋ฉด์ PATH๊ฐ ์ ์กํ์ ธ ์์ง ์์ผ๋ฉด ํ๊ฒฝ์ ๋ฎ์ ๋ฒ์ ์ฌ์ฉํ๋ ์คํฌ๋ฆฝํธ๋ ๋์ ๋ฒ์ ์ ์ฌ์ฉํด ํจํค์ง path๊ฐ ๊ผฌ์ธ๋ค.
python3 -m pip install pip --upgrade
pip install pyopenssl --upgrade
2) ํจํค์ง path๊ฐ ๊ผฌ์ธ ๊ฒฝ์ฐ
์ญ์ ํ ๋ค์ ์ค์น
rm -rf <path_to_lib_python3.7>/site-packages/OpenSSL
# rm -rf /home/U/anaconda3/lib/python3.8/site-packages/OpenSSL/
pip install -U pyopenssl
AttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK'
Recently I had to reinstall Python due to a corrupt executable. This made one of our Python scripts bomb with the following error: AttributeError: module 'lib' has no attribute '
stackoverflow.com
ssl ์ ์ฉ์ ์ํด ์ค์นํ certbot์ ํจํค์ง ์ข ์์ฑ์ผ๋ก ์๊ธด ๋ฌธ์ .
'๐ Python' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[...] ํ์ด์ฌ ์ด๋๊น์ง ์๋? (0) | 2024.06.12 |
---|---|
string method. 1~20 (0) | 2024.04.28 |
[Python] f-string trick (2) (0) | 2024.03.17 |
[Python] ์ด๊ฑฐ ๋ชจ๋ฅด๋ฉด ๋๋ ์ด๋ณด (0) | 2024.03.05 |
[Python] f-string trick (1) (0) | 2024.03.02 |