Skip to content

Not working with GMT 6.0.0rc1 #310

Closed

Description

@claudiodsf

Hi, I just installed GMT 6.0.0rc1 on macOS through homebrew and pygmt from source, but when try importing pygmt, I get the following error:

GMTVersionError: Using an incompatible GMT version 6.0.0rc1. Must be newer than 6.0.0.

Activity

  1. welcome commented on Jun 19, 2019

    @welcome

    👋 Thanks for opening your first issue here! Please make sure you filled out the template with as much detail as possible. You might also want to take a look at our contributing guidelines and code of conduct.

  2. claudiodsf commented on Jun 19, 2019

    @claudiodsf
    ContributorAuthor

    The problem can be reduced to this:

    >>> from packaging.version import Version
    >>> Version('6.0.0rc1') < Version('6.0.0')
    True
  3. claudiodsf commented on Jun 19, 2019

    @claudiodsf
    ContributorAuthor

    By the way, the error message should say:

    Must be equal or newer than 6.0.0.
    
  4. seisman commented on Jun 19, 2019

    @seisman
    Member

    Yes, 6.0.0rc1 is a pre-release version. I think the solution is to change the required_version to 6.0.0rc1.

    pygmt/pygmt/clib/session.py

    Lines 114 to 115 in 997b88c

    # The minimum version of GMT required
    required_version = "6.0.0"

  5. claudiodsf commented on Jun 19, 2019

    @claudiodsf
    ContributorAuthor

    Yep, I agree.

  6. seisman commented on Jun 19, 2019

    @seisman
    Member

    Could you submit a PR?

  7. claudiodsf commented on Jun 19, 2019

    @claudiodsf
    ContributorAuthor

    Ok

  8. added a commit that references this issue on Jun 20, 2019
    e24879f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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