Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 |
Tags
- EUREKA
- Shell
- Vue3
- NextJS13
- Spring
- Vue
- Python
- sveltekit
- loguru
- style
- vitejs
- springboot
- InteliJ
- post
- nodejs
- Test
- ubuntu
- Java
- Logging
- gradle
- svelte
- react
- NextJS
- vuex
- 오라클
- d3js
- JUnit
- fastapi
- fetch
- npm
Archives
- Today
- Total
양군의 행복한 이야기
error reading bcrypt version 본문

bcrypt를 사용해서 해쉬를 하려고 할때
예시코드
from passlib.context import CryptContext
pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto")
pwd_context.hash('test')
아래와 같이 오류가 발생한다.
(trapped) error reading bcrypt version
Traceback (most recent call last):
File "~~~~~~~\.venv\Lib\site-packages\passlib\handlers\bcrypt.py", line 620, in _load_backend_mixin
version = _bcrypt.__about__.__version__
^^^^^^^^^^^^^^^^^
AttributeError: module 'bcrypt' has no attribute '__about__'
원인은 최신버전(4.1.3)의 bcrypt가 버그가 있는듯 하여 4.0.1버전으로 다운그레이드 하면 해결이 된다.
4.1버전의 전반적인 오류인듯 보인다.
poetry add bcrypt@4.0.1
혹은
pip install bcrypt==4.0.1