Potential bugs may cause the recent Windows failures with GMT dev builds
See original GitHub issueDescription of the problem
See the results of the “GMT Latest Tests” action (https://github.com/GenericMappingTools/pygmt/actions?query=workflow%3A"GMT+Latest+Tests").
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.
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
Windows 11, version 21H2 known issues and notifications
View announcements and review known issues and fixes for Windows 11, version 21H2.
Read more >user.timezone is GMT when it should be Australia/Sydney
JDK-4762673 : user.timezone is GMT when it should be Australia/Sydney. Type: Bug; Component: core-libs; Sub-Component: java.util:i18n; Affected Version: ...
Read more >Bug listing with status RESOLVED with resolution TEST ...
Bug :233 - "Emacs segfaults when merged through the sandbox. ... Bug:19608 - "baselayout: modprobe errors occur for almost all /dev devices" status:RESOLVED ......
Read more >Top Jenkins Interview Questions and Answers in 2023 - Edureka
To notify developers about build report success or failure, ... There can be multiple answers to this question I will approach this task...
Read more >Demystifying DateTime Manipulation in JavaScript - Toptal
As a software developer, you can't run away from date manipulation. Almost every app a developer builds will have some component where date/time...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Done in https://github.com/conda-forge/gmt-feedstock/pull/134, and recent tests with GMT dev pass (https://github.com/GenericMappingTools/pygmt/actions/runs/553525167).
Ok, I’ll close this issue since it seems to have been fixed in https://github.com/GenericMappingTools/gmt/pull/4777