# Harp installation problem on windows 10 | dll not found

**URL:** https://forum.atmospherictoolbox.org/t/harp-installation-problem-on-windows-10-dll-not-found/578
**Category:** HARP
**Tags:** python
**Created:** [November 24, 2022, 6:44pm UTC](https://forum.atmospherictoolbox.org/t/harp-installation-problem-on-windows-10-dll-not-found/578 "2022-11-24T18:44:04Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![mariliza](https://forum.atmospherictoolbox.org/letter_avatar_proxy/v4/letter/m/c77e96/32.png) [@mariliza](https://forum.atmospherictoolbox.org/u/mariliza)
#### Post date: [November 24, 2022, 6:44pm UTC](https://forum.atmospherictoolbox.org/t/harp-installation-problem-on-windows-10-dll-not-found/578/1 "2022-11-24T18:44:04Z")

</div>

Hey Sander,

We are trying to install harp on a windows 10 machine, without using conda. The machine has the following installed:

Python 3.10.8  
numpy 1.23.4  
cffi 1.15.1

The binary from here:  
[https://stcorp.github.io/harp/doc/html/install.html#installing-the-binary-package-windows](https://stcorp.github.io/harp/doc/html/install.html#installing-the-binary-package-windows)  
was installed.

The directory was copied, as per the instructions, however during import the follow error appears:  
OSError: cannot load library ‘harp.dll’: error 0x7e

My colleague, who is working on this, told me that she thinks that cffi is trying to open the .dll and can’t:  
lib = ffi.dlopen(clib)

I saw a different thread on this issue, but the discussion stopped in its infancy.

Many thanks for the help,  
MariLiza

---

<div class="post-metadata">

### Author: ![sander.niemeijer](https://forum.atmospherictoolbox.org/user_avatar/forum.atmospherictoolbox.org/sander.niemeijer/32/5_2.png) [@sander.niemeijer](https://forum.atmospherictoolbox.org/u/sander.niemeijer)
#### Post date: [November 25, 2022, 12:59pm UTC](https://forum.atmospherictoolbox.org/t/harp-installation-problem-on-windows-10-dll-not-found/578/2 "2022-11-25T12:59:21Z")

</div>

Be aware that the python interface to HARP requires the HARP package to stay installed as well (make sure you install the ‘core’ component when using the 1.16 binary installer).

If your python script says it can’t find harp.dll, then it likely means that the bin directory of the HARP installation is not on the PATH. The HARP installer modifies the system PATH environment setting to add its own bin directory to it, but it sometimes requires a relogin or restart to get this environment setting to work. Also, make sure you are not overriding the PATH yourself (or, if you do, add the HARP bin directory manually to it yourself).

---

<div class="post-metadata">

### Author: ![mariliza](https://forum.atmospherictoolbox.org/letter_avatar_proxy/v4/letter/m/c77e96/32.png) [@mariliza](https://forum.atmospherictoolbox.org/u/mariliza)
#### Post date: [November 25, 2022, 7:22pm UTC](https://forum.atmospherictoolbox.org/t/harp-installation-problem-on-windows-10-dll-not-found/578/3 "2022-11-25T19:22:56Z")

</div>

Will try both and let you know!  
Cheers,  
MariLiza

---

<div class="post-metadata">

### Author: ![mariliza](https://forum.atmospherictoolbox.org/letter_avatar_proxy/v4/letter/m/c77e96/32.png) [@mariliza](https://forum.atmospherictoolbox.org/u/mariliza)
#### Post date: [November 26, 2022, 7:48pm UTC](https://forum.atmospherictoolbox.org/t/harp-installation-problem-on-windows-10-dll-not-found/578/4 "2022-11-26T19:48:35Z")

</div>

Hi Sander,

Sorry to say that the solutions proposed did not work. The Harp bin path is the Path of the system Environment Variables, and we did restart the machine a couple of times, it still complains about finding the \*dll. See image.

 ![VisualStudioCode](https://forum.atmospherictoolbox.org/uploads/default/original/1X/e6f1f14c0c28ae54828593df7b3d9011bc5c5bdb.png)

My colleague also tried hardwiring the bin path directory in the code [if I am explaining this right] and it still did not work.

Before we pack it up and try via anaconda, any more suggestions maybe? do you know of anyone using Visual Studio on windows 10 with harp who might give us a pointer or two?

Many thanks,  
MariLiza

---

<div class="post-metadata">

### Author: ![sander.niemeijer](https://forum.atmospherictoolbox.org/user_avatar/forum.atmospherictoolbox.org/sander.niemeijer/32/5_2.png) [@sander.niemeijer](https://forum.atmospherictoolbox.org/u/sander.niemeijer)
#### Post date: [November 28, 2022, 9:13am UTC](https://forum.atmospherictoolbox.org/t/harp-installation-problem-on-windows-10-dll-not-found/578/5 "2022-11-28T09:13:53Z")

</div>

Then the problem is likely due to a library that harp.dll depends on and cannot be found/loaded.

Did you install the [Microsoft Visual C++ Redistributable Packages for Visual Studio 2015](https://www.microsoft.com/en-us/download/details.aspx?id=48145) package?

Otherwise, could you please use a tool like [Dependencies](https://github.com/lucasg/Dependencies) and open harp.dll in it to check if you are missing any dependency libraries?

---

<div class="post-metadata">

### Author: ![mariliza](https://forum.atmospherictoolbox.org/letter_avatar_proxy/v4/letter/m/c77e96/32.png) [@mariliza](https://forum.atmospherictoolbox.org/u/mariliza)
#### Post date: [December 1, 2022, 12:36pm UTC](https://forum.atmospherictoolbox.org/t/harp-installation-problem-on-windows-10-dll-not-found/578/6 "2022-12-01T12:36:14Z")

</div>

Dear Sander,

We are still working on this issue. The Visual C++ package is indeed installed. My colleague is going to check the Dependencies and we will let you know.

Thanks!

---

<div class="post-metadata">

### Author: ![mariliza](https://forum.atmospherictoolbox.org/letter_avatar_proxy/v4/letter/m/c77e96/32.png) [@mariliza](https://forum.atmospherictoolbox.org/u/mariliza)
#### Post date: [December 6, 2022, 6:13am UTC](https://forum.atmospherictoolbox.org/t/harp-installation-problem-on-windows-10-dll-not-found/578/7 "2022-12-06T06:13:05Z")

</div>

Good morning Sander,

My colleague used the _Dependencies_ tool you recommended and found out that this dll is missing

ext-ms-win-oobe-query-l1-1-0.dll

Furthermore, I just read on the official windows forum that:  
[Can’t run old Windows installers on Windows 10 - Microsoft Community](https://answers.microsoft.com/en-us/windows/forum/all/cant-run-old-windows-installers-on-windows-10/f4004bb7-268a-424e-8fcf-5bb53d7617ed)

Any ideas? did someone else encounter this issue lately?

Many thanks,  
MariLiza

---

<div class="post-metadata">

### Author: ![sander.niemeijer](https://forum.atmospherictoolbox.org/user_avatar/forum.atmospherictoolbox.org/sander.niemeijer/32/5_2.png) [@sander.niemeijer](https://forum.atmospherictoolbox.org/u/sander.niemeijer)
#### Post date: [December 6, 2022, 12:41pm UTC](https://forum.atmospherictoolbox.org/t/harp-installation-problem-on-windows-10-dll-not-found/578/8 "2022-12-06T12:41:34Z")

</div>

I was able to reproduce it myself. If you try to run the command line executable (e.g. harpdump) from a command prompt then Windows will actually tell you which .dlls are missing.  
In this case it isn’t ext-ms-win-oobe-query-l1-1-0.dll, but several dependencies of the hdf5 library that we ship with the installer: libcrypto-3-x64.dll, libcurl.dll, libssh2.dll, and zlib.dll.  
We will add these to the installer for our next HARP release (which should arrive soon).

---

<div class="post-metadata">

### Author: ![mariliza](https://forum.atmospherictoolbox.org/letter_avatar_proxy/v4/letter/m/c77e96/32.png) [@mariliza](https://forum.atmospherictoolbox.org/u/mariliza)
#### Post date: [December 6, 2022, 12:59pm UTC](https://forum.atmospherictoolbox.org/t/harp-installation-problem-on-windows-10-dll-not-found/578/9 "2022-12-06T12:59:26Z")

</div>

Thanks Sander, we’ll wait for the next HARP release and hope it solves our issue.

---

<div class="post-metadata">

### Author: ![sander.niemeijer](https://forum.atmospherictoolbox.org/user_avatar/forum.atmospherictoolbox.org/sander.niemeijer/32/5_2.png) [@sander.niemeijer](https://forum.atmospherictoolbox.org/u/sander.niemeijer)
#### Post date: [December 6, 2022, 1:52pm UTC](https://forum.atmospherictoolbox.org/t/harp-installation-problem-on-windows-10-dll-not-found/578/10 "2022-12-06T13:52:22Z")

</div>

Just FYI, instead of adding these additional dependencies we will switch to including a version of the HDF5 library that does not require these additional dependencies.
