Skip to content

Import Error: DLL load failed while importing trace: module not found #2625

@GernotSchreider

Description

@GernotSchreider

Environment:

Windows 11 Pro, vers 25H2 (Build 26200.7623)
Python 3.12.10 and 3.13.10
Cartopy 0.24.1 and 0.25.0 (both fail)
Installed via pip (PyPI wheels) or conda
VSCode 1.108.1

I tried various install approaches via pip and miniconda but to no avail
Fresh reinstalls don't resolve the issue
My suspicion was that the dlls are not properly installed or are somehow incompatible, so I worked on installing the dlls.
I even tried the approach as per https://stackoverflow.com/questions/70177062/cartopy-not-able-to-identify-geos-for-proj-install-on-windows
But even the dlls from OSGeo4W did not help.

Key findings:
All required DLLs (geos.dll, geos_c.dll, proj_9.dll, vcruntime140.dll, etc.) are present in cartopy.libs
The DLLs can be loaded individually via ctypes.
Replacing with OSGeo4W DLLs doesn't help
The trace.cp312-win_amd64.pyd extension exists but fails to load

Bottom line : I have no idea how to resolve this

Please advise how to fix.

Thanks

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