calum-chamberlain / ESCI451-Python

Introduction to Python for VUW ESCI 451 course.
GNU General Public License v3.0
11 stars 5 forks source link

Unable to find GMT Library (Windows) #23

Open calum-chamberlain opened 2 years ago

calum-chamberlain commented 2 years ago

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...

calum-chamberlain commented 2 years ago

Strangely, running in iPython is fine. I think this might need to be an issue raised at pyGMT.