You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Missing mpir.dll causes cloudComPy import failure on Windows #206
***Describe the bug
After following the official Windows installation instructions, the following error occurs when trying to import cloudComPy in a properly configured conda environment:
ImportError: DLL load failed while importing _cloudComPy: The specified module could not be found.
***Root Cause
Using Dependencies, I discovered that _cloudComPy.pyd depends on CCCoreLib.dll, which in turn depends on mpir.dll. However: mpir.dll is not included in the distributed binaries.
It seems that it is not mentioned in the installation documentation.
Therefore, the import fails unless the user manually installs it.
***Solution
Installing mpir via conda resolves the issue:
conda install -c conda-forge mpir
This places mpir.dll in the environment’s Library\bin directory, allowing the import to work correctly.
Recommendation
Please update the installation documentation to include this missing dependency step. It would also be helpful to bundle mpir.dll in future Windows binary releases.
System info
OS: Windows 10 64-bit
Python: 3.10
CloudComPy version: CloudComPy310_20240927 binary release
Installed via: Conda + downloaded ZIP (per official docs)
Hello,
You're right, the Windows installation instructions are out of date.
Conda's packaging is updated very frequently, and even if the instructions worked at the time of publication, they are no longer valid today. When you download the binary from my site, you get an updated set of instructions, more robust.
This is not satisfactory, and I'm considering defining a new packaging method, with more libraries in the bundle.
Activity
prascle commentedon Apr 10, 2025
Hello,
You're right, the Windows installation instructions are out of date.
Conda's packaging is updated very frequently, and even if the instructions worked at the time of publication, they are no longer valid today. When you download the binary from my site, you get an updated set of instructions, more robust.
This is not satisfactory, and I'm considering defining a new packaging method, with more libraries in the bundle.
Regards,
Paul