Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: DLL load failed while importing _rust: No se encontró el proceso especificado. #10388

Closed
sochoac1 opened this issue Feb 13, 2024 · 4 comments
Labels
waiting-on-reporter Issue is waiting on a reply from the reporter. It will be automatically cloesd if there is no reply.

Comments

@sochoac1
Copy link

  • Version of Python: 3.9.1

  • cryptography: 42.0.2

  • cffi: 1.16.0

  • pip: 24.0

  • wheel: 0.42.0

  • setuptools: 69.1.0

  • Operative System: Windows 11

  • How you installed cryptography: I installed paramiko using the command pip install paramiko, and cryptography was automatically installed as a dependency.

  • Clear steps for reproducing your bug:

  1. Create a virtual enviroment using pipenv shell
  2. Install paramiko using pip install paramiko
  3. Run a Python file containing 1 line: import paramiko

Output - Error:
Traceback (most recent call last):
File "C:...\repo\error.py", line 1, in
import paramiko
File "C:....virtualenvs\repo\lib\site-packages\paramiko_init_.py", line 22, in
from paramiko.transport import (
File "C:....virtualenvs\repo\lib\site-packages\paramiko\transport.py", line 33, in
from cryptography.hazmat.primitives.ciphers import algorithms, Cipher, modes
File "C:....virtualenvs\repo\lib\site-packages\cryptography\hazmat\primitives\ciphers_init_.py", line 11, in
from cryptography.hazmat.primitives.ciphers.base import (
File "C:....virtualenvs\repo\lib\site-packages\cryptography\hazmat\primitives\ciphers\base.py", line 10, in
from cryptography.exceptions import (
File "C:....virtualenvs\repo\lib\site-packages\cryptography\exceptions.py", line 9,
in
from cryptography.hazmat.bindings._rust import exceptions as rust_exceptions
ImportError: DLL load failed while importing _rust: Specified process not found.

@reaperhulk
Copy link
Member

This appears to be a bug in Python 3.9.1. Please upgrade to a newer Python 3.9 and see if it still occurs.

Previous issue: #10300

@alex alex added the waiting-on-reporter Issue is waiting on a reply from the reporter. It will be automatically cloesd if there is no reply. label Feb 13, 2024
@sochoac1
Copy link
Author

Python upgraded to 3.12 and issue fixed. Thank you.

@terrok9
Copy link

terrok9 commented Feb 27, 2024

Issue reported also in python 3.9.0

If anyone knows how to handle the conflicts without changing python version, it would be great.

@alex
Copy link
Member

alex commented Feb 27, 2024

Upgrading to a newer version of Python 3.9 (e.g., 3.9.18) should be sufficient.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
waiting-on-reporter Issue is waiting on a reply from the reporter. It will be automatically cloesd if there is no reply.
Development

No branches or pull requests

4 participants