Skip to content

Missing mpir.dll causes cloudComPy import failure on Windows #206

@yshhdec

Description

@yshhdec

***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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions