Reputation: 43
I'm currently facing an issue with importing the _bcrypt module in Python, and I would greatly appreciate any help or insights you can provide.
I am using Python 3.9 on a Windows 10 Pro machine. the code calls paramiko which calls bcrypt When I try to import paramiko, I encounter the following error:
Traceback (most recent call last): File "d:\remote_conn\client-copy.py", line 44, in import sys, os, paramiko, time File "C:\Python39\lib\site-packages\paramiko\__init__.py", line 22, in from paramiko.transport import ( File "C:\Python39\lib\site-packages\paramiko\transport.py", line 93, in from paramiko.dsskey import DSSKey File "C:\Python39\lib\site-packages\paramiko\dsskey.py", line 37, in from paramiko.pkey import PKey File "C:\Python39\lib\site-packages\paramiko\pkey.py", line 32, in import bcrypt File "C:\Python39\lib\site-packages\bcrypt\__init__.py", line 13, in from ._bcrypt import ( ImportError: DLL load failed while importing `_bcrypt`: The specified procedure could not be found.
I have already attempted the following troubleshooting steps:
Thank you in advance for your help!
Best regards
Upvotes: 4
Views: 6763
Reputation: 976
I was facing the same error message! I downgraded from 4.1.3 to 4.1.2 ... and that solved the issue. bcrypt version History
I made a bug report on their repo: https://github.com/pyca/bcrypt/issues/835
Upvotes: 0
Reputation: 514
I faced this issue with Python 3.9.1, paramiko 3.4.4, and bcrypt 4.1.3. The solution was to downgrade bcrypt to 4.1.1.
pip install --upgrade bcrypt==4.1.1
Upvotes: 2
Reputation: 23
Thank you very much, nrn15! I tried to install bcrypt(3.2.0) + paramiko(3.4.0) and I solved this issue!
Upvotes: 0
Reputation: 56
I ran into the same issue for latest versions of paramiko(3.4.0) and bcrypt(4.1.2). I tried installing a lower version of bcrypt but should be >=3.2 as latest paramiko version(3.4.0) requires bcrypt>=3.2. This worked for me.
Upvotes: 4