관리 메뉴

블로그

[error] cryptography 오류 해결 본문

공부/error

[error] cryptography 오류 해결

beenu 2024. 6. 26. 09:44
반응형

daphne -p 8000 callcenter.asgi:application 이 코드로 서버를 실행했더니 아래와 같은 오류가 발생했다

 

 

(test) C:\Users\User\KtAivle\test\callcenter>daphne -p 8000 callcenter.asgi:application Traceback (most recent call last): File "C:\Users\User\anaconda3\envs\test\lib\runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\User\anaconda3\envs\test\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Users\User\anaconda3\envs\test\Scripts\daphne.exe\__main__.py", line 4, in <module> File "C:\Users\User\anaconda3\envs\test\lib\site-packages\daphne\cli.py", line 10, in <module> from .server import Server File "C:\Users\User\anaconda3\envs\test\lib\site-packages\daphne\server.py", line 42, in <module> from .ws_protocol import WebSocketFactory File "C:\Users\User\anaconda3\envs\test\lib\site-packages\daphne\ws_protocol.py", line 6, in <module> from autobahn.twisted.websocket import ( File "C:\Users\User\anaconda3\envs\test\lib\site-packages\autobahn\twisted\__init__.py", line 54, in <module> from autobahn.twisted.wamp import ApplicationSession File "C:\Users\User\anaconda3\envs\test\lib\site-packages\autobahn\twisted\wamp.py", line 58, in <module> from autobahn.wamp import protocol, auth File "C:\Users\User\anaconda3\envs\test\lib\site-packages\autobahn\wamp\auth.py", line 41, in <module> from cryptography.hazmat.primitives.kdf.pbkdf2 import PBKDF2HMAC File "C:\Users\User\anaconda3\envs\test\lib\site-packages\cryptography\hazmat\primitives\kdf\pbkdf2.py", line 10, in <module> from cryptography.exceptions import ( File "C:\Users\User\anaconda3\envs\test\lib\site-packages\cryptography\exceptions.py", line 9, in <module> from cryptography.hazmat.bindings._rust import exceptions as rust_exceptions ImportError: DLL load failed while importing _rust: 지정된 프로시저를 찾을 수 없습니다.

 

 

cryptography 라이브러리와 관련된 문제입니다. cryptography 라이브러리가 사용하는 일부 DLL 파일이 제대로 로드되지 않아서 발생하는 문제입니다.

 

conda 가상환경에서  conda install -c anaconda cryptography 이 코드를 실행해주었더니 해결됐다.

728x90
반응형