How do I download h5dump? (h5dump: command not found) - hdf5

I'm getting an IOerror trying to open a HDF5 file, so I should use H5dump to check the file (according to: H5PY IOError: Unable to open file (File signature not found)). However, I have no clue what to download to obtain usage of the h5dump command.
I have already downloaded and built the binary distribution for centOS (https://www.hdfgroup.org/downloads/hdf5/) but that did not help. I have found the doc pages (https://support.hdfgroup.org/HDF5/doc/RM/Tools.html#Tools-Dump). Every command is meticulously described, including h5dump, but they have not included a single download link for reasons incomprehensible for my tiny brain.
I've opened the HDF5 file with the HDFViewer tool, if thats anything. How do I get h5dump?

The utilities are included in the gzipped tarball (hdf5-1.10.5-linux-centos7-x86_64-shared.tar.gz) found at the link below. Look under Pre-built Binary Distributions:
DOWNLOAD HDF5
Once you extract the files, you will have a bin directory. That's where you will find h5dump and many other utilities. Good luck.

Related

Could not locate zlibwapi.dll. Please make sure it is in your library path

I am working on a object detection project and wanting to process the project with my GPU. I have completed the NVIDIA setup tutorial and everything works fine. My object detection code originally works with the CPU, however when I add these two lines of code:
net.setPreferableBackend(cv2.dnn.DNN_BACKEND_CUDA)
net.setPreferableTarget(cv2.dnn.DNN_TARGET_CUDA)
the output displayed:
Could not locate zlibwapi.dll. Please make sure it is in your library path!
I have downloaded the zlibwapi.dll zip file stated from the cuDNN website, unzip and added the whole folder into my environment variables paths. The folder is called "zlib123dllx64" containing a "dll_x64" folder and a "static_x64" folder. The "zlibwapi.dll" is inside the "dll_x64" folder. I have added the "zlib123dllx64" folder in the user and system path variable but it doesn't seem to fix any of the problems. How can I fix this error and make the GPU work with the code?
My environment setup:
Windows 10
Visual studio community 2019
OpenCV Python yolov3
Windows Environment:
I faced this issue of "Could not locate zlibwapi.dll. Please make sure it is in your library path" when I am trying to run a TensorRT sample, int8_caffe_mnist. To confirm proper installation of TensorRT.
Following the instructions from: https://docs.nvidia.com/deeplearning/cudnn/install-guide/index.html#prerequisites-windows
Under 3.1.3 download zlib and add the path to the environment variables.
I did the following:
Windows search for Edit the system environment variables
Add library path, Environment Variables -> Path -> Edit -> C:path to\zlibwapi.dll
Conclusion:
Following the instructions for adding zlibwapi.dll to the path did not work for me.
Solution that worked for me:
Removed the library path under Environment variables
copied zlibwapi.dll to C:\Windows\System32 and C:\Windows\SysWOW64
Either delete/keep zlib123dllx64 file, I choose to delete as it does not need the location to library path
I was able to find a copy of the missing zlib DLL in the NVIDIA Nsight directory:
C:\Program Files\NVIDIA Corporation\Nsight Systems 2022.4.2\host-windows-x64\zlib.dll
I copied and renamed it to:
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin\zlibwapi.dll
since that was already in my PATH environment variable. Doing that resolved my error.
I saw the link in the CUDNN documentation that was linked in the other answers, but I was a little concerned by the security warnings.
Stumbled across this problem too and there is an easy fix that immediately worked for me:
Check out Nvidia's page (exact link where to download) and download.
Extract the files and simply find the single file "zlibwapi.dll". Copy this file to
C:/path to/NVIDIA GPU Computing Toolkit / CUDA/ v11.X / bin -> right here in that folder
Just did those two steps and it's TF can properly use GPU.
Download and extract the zlib package from http://www.winimage.com/zLibDll/zlib123dllx64.zip for 64 bit windows then copy the zlibdll file into cudnn/bin
If anyone also got the same problem as me, I managed to fix the problem. Instead of calling the whole "zlib123dllx64" folder into the system environment path, you simply just add the "zlibwapi.dll" inside the "dllx64" folder into your project folder and include it in your project. This fixed my problem. cheers
Didn't find zlibwapi.dll in bin but solved it anyhow.
Since I didn't have it in
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.2\
I couldn't change environment variable but I found it elsewhere.
mhartlove suggested here:
https://forums.developer.nvidia.com/t/could-not-load-library-cudnn-cnn-infer64-8-dll-error-code-193/218437/17
Solution:
"I found a copy of the 64 bit zlibwapi.dll hiding under a different name in:
C:\Program Files\NVIDIA Corporation\Nsight Systems 2022.4.2\host-windows-x64\zlib.dll
I copied and renamed it to:
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin\zlibwapi.dll
since that folder is already in my PATH variable; and it worked. Turns out the CUDA Toolkit already has the file you need elsewhere. Seems like they could save a lot of trouble if they just made a change to the CUDA Toolkit installer.
"
I downloaded the dll file from https://www.dllme.com/getfile.php?file=38308&id=9b45296e316cdf31b9bace739e22ca7a
Extracted it
see here
renamed
zlibwapi_x64.dll -> zlibwapi.dll
and pasted it in the bin of my CUDA
Look at the last file
This worked for me....

Cannot open Zip file after creation with tar.exe

I'm trying to use Tar.exe in a Windows 10 command prompt to zip an entire folder and its subdirectories into a .zip file.
After reading different answers on here and this online help, so far I have the following:
tar.exe -cvzf "C:\Users\Me\Desktop\Output.zip" "C:\Users\Me\Desktop\MyFolder"
This appears to work within the command prompt (no errors and all files get listed). The .zip file gets created on the Desktop but when I try to open it by double-clicking on it, I get this error:
Windows cannot open the folder.
The Compressed (zipped) Folder 'C:\Users\Me\Desktop\MyFolder' is invalid.
I dragged the file into Notepad to see if there were any headers that might uncover the problem, but it looks like some kind of oriental affair...!
Can anyone advise what I've done wrong here please?
After much deliberation, I finally opted to use 7-Zip:
"C:\Program Files\7-Zip\7z.exe" a -tzip "C:\Users\Me\Desktop\MyFolder.zip" "C:\Users\Me\Desktop\MyFolder"
The destination machine without 7-Zip could still read the file, but more importantly, the speed of the zip creation was magnitudes faster than Windows's UI or the Tar function.

Сommand failed: unzip /home/alexander/.buildozer/android/platform/android-ndk-r9c-linux-x86_64.zip

I am trying to compile an application created on Kivy with the help of a buildozer, I encountered many errors, most of them decided, but I can’t deal with this error.
What should I do in this case?
This is what the buildozer in the terminal.
Archive: /home/alexander/.buildozer/android/platform/android-ndk-
r9c-linux-x86_64.zip
End-of-central-directory signature not found. Either this file is
not
a zipfile, or it constitutes one disk of a multi-part archive. In
the
latter case the central directory and zipfile comment will be
found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of
/home/alexander/.buildozer/android/platform/android-ndk-r9c-linux-
x86_64.zip or
/home/alexander/.buildozer/android/platform/android-ndk-r9c-linux-
x86_64.zip.zip, and cannot find
/home/alexander/.buildozer/android/platform/android-ndk-r9c-linux-
x86_64.zip.ZIP, period.
# Command failed: unzip
/home/alexander/.buildozer/android/platform/android-ndk-r9c-linux-
x86_64.zip
#
# Buildozer failed to execute the last command
# The error might be hidden in the log above this error
# Please read the full log, and search for it before
# raising an issue with buildozer itself.
# In case of a bug report, please add a full log with log_level = 2
I got this error earlier. It's very easy! The stock android-ndk-r9c almost never works. You must download the new r9c from the web and then unzip it in .buildozer/android/platform
But I advise you to download the version android-ndk-r13b from the web. r9c is a very old version and you can get some problems with new android APIs. r13b version works good.
You can download 7z, and unzip like:
cd .buildozer/android/platform
7z x the_name_of_your_ndk.zip
Good luck!

How to generate opencv documentation in pdf from OpenCV doc dir

In OpenCV source dir, there is a doc dir. But, this dir contains no pdf files. How can I get files like "opencv_tutorials.pdf", "opencv_cheatsheet.pdf"?
Thanks!
You need doxygen for this. You can install it from http://www.doxygen.nl and then run the doxygen executable on the doxyfile.in. This should generate documentation files in html, pdf (if you have latex installed), etc.
Note that you'll probably find all the tutorials and PDFs you'll need online as well. Using these generated files have the risk of being outdated very soon.

How to inspect a Corona CAR file?

A customer has supplied us with a corona CAR file. What command line tools (if any) are available to inspect its contents? Its a 'Corona ARchive' containing other files clearly, however it's neither in ZIP or a TAR format.
A .CAR file is not meant to be unpacked for inspection. Its a proprietary format. I'm unware of any command line tools to unpack it. Why does your customer need this?

Resources