Open
Description
Description
We have our own pipy repository and when we download from it these packages are all linked against the stable python3 interface (python3.dll) which is not available in the conan package.
An example is provided in the logs section.
Here the dll load failed only because of the missing python3.dll
to solve this issue, I created this pull request #27329
Package and Environment Details
- Package Name/Version: cpython/3.10.16
- Operating System+version: Window 11 23h2 22631.5189
- Compiler+version: MSVC 193-6-10.0.20348.0
- Conan version: conan 2.15.0
- Python version: Python 3.10.16
Conan profile
[settings]
arch=x86_64
build_type=Release
compiler=msvc
compiler.cppstd=17
compiler.runtime=dynamic
compiler.runtime_type=Release
compiler.update=6
compiler.version=193
os=Windows
clfft/*: compiler.cppstd=14
[options]
openssl/*:no_module=True
openssl/*:no_zlib=True
[conf]
tools.microsoft:winsdk_version=10.0.20348.0
tools.cmake.cmakedeps:new=will_break_next
Steps to reproduce
- conan install a package that use cpython
- load the environment
- use python to run pip install paramiko
- run python -c "import paramiko"
the last step should crash
Logs
Click to expand log
>>> import paramiko
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\ANSYSDev\SpeosOneConan\build\Release\venv\3.10.16\lib\site-packages\paramiko\__init__.py", line 22, in <module>
from paramiko.transport import (
File "C:\ANSYSDev\SpeosOneConan\build\Release\venv\3.10.16\lib\site-packages\paramiko\transport.py", line 33, in <module>
from cryptography.hazmat.primitives.ciphers import algorithms, Cipher, modes
File "C:\ANSYSDev\SpeosOneConan\build\Release\venv\3.10.16\lib\site-packages\cryptography\hazmat\primitives\ciphers\__init__.py", line 11, in <module>
from cryptography.hazmat.primitives.ciphers.base import (
File "C:\ANSYSDev\SpeosOneConan\build\Release\venv\3.10.16\lib\site-packages\cryptography\hazmat\primitives\ciphers\base.py", line 10, in <module>
from cryptography.hazmat.bindings._rust import openssl as rust_openssl
ImportError: DLL load failed while importing _rust: The specified module could not be found.