question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

Description 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:closed
  • Created 3 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

0reactions
weiji14commented, Feb 10, 2021

Ok, I’ll close this issue since it seems to have been fixed in https://github.com/GenericMappingTools/gmt/pull/4777

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found