채니의 개발일기

error: attributeerror: module 'lib' has no attribute 'x509_v_flag_cb_issuer_check 본문

프로그래밍언어/파이썬

error: attributeerror: module 'lib' has no attribute 'x509_v_flag_cb_issuer_check

윤채니챈 2023. 6. 18. 15:04
728x90
반응형
! sudo rm -rf /usr/bin/openssl #OpenSSL의 파일경로
! sudo pip install pyopenssl #pyopenssl다운로드
! sudo pip3 install pyopenssl --upgrade #pyopenssl업그레이드

attributeerror: module 'lib' has no attribute 'x509_v_flag_cb_issuer_check 의 오류의 경우

: 이 오류 메시지는 보통 cryptography 패키지와 OpenSSL 라이브러리의 버전이 맞지 않아서 발생하는 경우가 대부분

 

대부분 터미널에서 해결하지만, 

주피터에서 코드로 해결하는 방법!

 

https://stackoverflow.com/questions/73830524/attributeerror-module-lib-has-no-attribute-x509-v-flag-cb-issuer-check-> 도움받은 링크!

 

AttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK'

So recently I had to reinstall python due to corrupt executable. This made one of our python scripts bomb with the following error: AttributeError: module 'lib' has no attribute '

stackoverflow.com

 

- OpenSSL과 관련된 오류가 발생하여 이를 해결하기 위해 OpenSSL을 제거하는 명령이용

 

#openssl 파일경로찾기
import subprocess

output = subprocess.check_output(['which', 'openssl'])
print(output.decode('utf-8'))

 

 

728x90
반응형

'프로그래밍언어 > 파이썬' 카테고리의 다른 글

For문 제너레이터식 형식  (0) 2023.09.17
timeit모듈, datetime-timedelta모듈  (0) 2023.06.18
주피터 pip설치가 안되어있을때  (0) 2023.06.18
unique() 메소드  (0) 2023.06.12
값이 없을때 np.nan 사용  (0) 2023.06.12