Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PyGMT can't load GMT library for Python 3.6 + Windows #693

Closed
seisman opened this issue Nov 16, 2020 · 3 comments
Closed

PyGMT can't load GMT library for Python 3.6 + Windows #693

seisman opened this issue Nov 16, 2020 · 3 comments
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@seisman
Copy link
Member

seisman commented Nov 16, 2020

Description of the problem

It seems PyGMT can't correctly find GMT for Python 3.6 + Windows. The error messages are:

pygmt.exceptions.GMTCLibNotFoundError: Error loading the GMT shared library 'gmt.dll, gmt_w64.dll, gmt_w32.dll, C:\Miniconda3\envs\test\Library\bin\gmt.dll':

It works before but failed in recent builds, for example, https://github.com/GenericMappingTools/pygmt/runs/1404103533.

@weiji14 weiji14 added the bug Something isn't working label Nov 16, 2020
@weiji14
Copy link
Member

weiji14 commented Nov 16, 2020

Is it:

  1. The library is not there, because we broke something in Rebuild for gdal31 conda-forge/gmt-feedstock#111?
  2. The library is there, but there is a problem linking to it, of which Find the GMT library by calling "gmt --show-library" #628 might help?

@seisman seisman mentioned this issue Nov 16, 2020
5 tasks
@seisman
Copy link
Member Author

seisman commented Nov 16, 2020

See some debugging in #694. The gmt.dll is found in the system, but PyGMT can't load it.

#628 won't help with the issue, because gmt --show-library just returns the full path to the GMT library.

@weiji14
Copy link
Member

weiji14 commented Nov 22, 2020

Closed with #699, see more discussion on why at #690.

@weiji14 weiji14 closed this as completed Nov 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants