Skip to content

Potential bugs may cause the recent Windows failures with GMT dev builds #801

@seisman

Description

@seisman

Description of the problem

See the results of the "GMT Latest Tests" action (https://github.com/GenericMappingTools/pygmt/actions?query=workflow%3A%22GMT+Latest+Tests%22).

There are 10 failures on Windows. The error messages are:

_____________ ERROR at setup of test_grdview_grid_dataarray[png] ______________

region = (-116, -109, -47, -44)

    @pytest.fixture(scope="module", name="xrgrid")
    def fixture_xrgrid(region):
        """
        Load the xarray.DataArray grid from the sample earth_relief file.
        """
>       return grdcut(grid="@earth_relief_01d_g", region=region)

C:\Miniconda3\envs\test\lib\site-packages\pygmt\tests\test_grdview.py:34: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
C:\Miniconda3\envs\test\lib\site-packages\pygmt\helpers\decorators.py:267: in new_module
    return module_func(*args, **kwargs)
C:\Miniconda3\envs\test\lib\site-packages\pygmt\helpers\decorators.py:411: in new_module
    return module_func(*args, **kwargs)
C:\Miniconda3\envs\test\lib\site-packages\pygmt\gridops.py:116: in grdcut
    return result
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <pygmt.helpers.tempfile.GMTTempFile object at 0x0000019EBCD6D190>
args = (None, None, None)

    def __exit__(self, *args):
        if os.path.exists(self.name):
>           os.remove(self.name)
E           PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\pygmt-xqghaxyy.nc'

C:\Miniconda3\envs\test\lib\site-packages\pygmt\helpers\tempfile.py:70: PermissionError

It's unclear if it's a bug in GMT dev version or a PyGMT bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingupstreamBug or missing feature of upstream core GMT

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions