# GMT error message: Failure to open virtual file

**URL:** <https://discourse.julialang.org/t/gmt-error-message-failure-to-open-virtual-file/116843>\
**Category:** New to Julia\
**Tags:** windows, gmt\
**Created:** [July 9, 2024, 9:29pm UTC](https://discourse.julialang.org/t/gmt-error-message-failure-to-open-virtual-file/116843 "2024-07-09T21:29:47Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![joa-quim](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/joa-quim/32/227_2.png) [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Post date:** [July 12, 2024, 2:30pm UTC](https://discourse.julialang.org/t/gmt-error-message-failure-to-open-virtual-file/116843/4 "2024-07-12T14:30:22Z")

</div>

From you message I can see that you are not using the master version, so whatever caused the error is still there. To install the master version of a package we add the `#master to package name. Thst is, in this case

```julia
] add GMT#master

```

The GMT point-in-polygon routine is very fast but calling the GMT lib thousands of times is not. The code on master avoids that so for (multi)thousands of points it is 2 orders of magnitude faster. And hopefully avoids the error.

The failing tests on Windows are due to

> [@Yggdrasil build has a bug on Windows](https://discourse.julialang.org/t/yggdrasil-build-has-a-bug-on-windows/116907):
>
> Hi, Maybe not the best place to ask/report this but don’t know a better one. In Yggdrasil the compilation of GMT on Windows is bugged. The simple function returns false when it should true true, and this only happened with the Yggdrasil build on Windows. That function works well for all other OSs, it works well on my local MSVC build and even if build a similar one locally with MinGW. This returns true in all but the Yggdrasil build for Windows. In the mention function (gmt\_is\_float()) I e…

---

_[View the full topic](https://discourse.julialang.org/t/gmt-error-message-failure-to-open-virtual-file/116843)._
