Skip to content

Unable to find GMT Library (Windows) #23

@calum-chamberlain

Description

@calum-chamberlain

For one student (so far) pygmt failed to find the gmt library despite it being there.

The error reported was:

GMTCLibNotFoundError: Error loading GMT shared library at 'C:\Users\USER NAME\miniconda3\env\esci451\Library\bin\gmt.dll'.
[WinError 193] %1 is not a valid Win32 application
Error loading GMT shared library at 'gmt.dll'.
Could not find module 'gmt.dll' (or one of its dependencies). Try using the full path with constructor syntax.
Error loading GMT shared library at 'gmt_w64.dll'.
Could not find module 'gmt_w64.dll' (or one of its dependencies). Try using the full path with constructor syntax.
Error loading GMT shared library at 'gmt_w32.dll'.
Could not find module 'gmt_w32.dll' (or one of its dependencies). Try using the full path with constructor syntax.

The student's terminal also reported an error when activating the environment:

(base) C:\Users\Irshad Ul Ala>conda activate esci451
'Ul' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Irshad Ul Ala>set "GDAL_DRIVER_PATH="

C:\Users\Irshad Ul Ala>rem proj-data is installed because its license was copied over

this looks like it might be related to space in the user's username...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions