Closed jashshah closed 6 years ago
It seems to be an issue with your opencv installation. Did you install it using conda? It should have installed all dependencies
I got the same Error.
It was installed using Conda
conda install -y opencv "scipy=0.18.0" "pillow=3.0.0"
As specified in the Installation Guide.
This should have installed all the dependencies.
Doesn't look like any of these issues I guess.
https://github.com/h5py/h5py/issues/672
What can be the problem here?
Hi Ayan, did you try it with a clean environment (e.g. creating a new environment with conda create)?
Btw, I would try the solution to re-install h5py, as discussed in the issue you mentioned:
pip uninstall h5py pip install --no-cache-dir h5py
Let me know if it works
Hi luizgh, thanks for the reply.
Yeah, I started in a clean Environment and did try reinstalling h5py as discussed in the issue, but none of them worked out.
But I don't know why pip install opencv-python
solved it. Even though I had already used
conda install -y opencv "scipy=0.18.0" "pillow=3.0.0"
before.
This is so weird. What could possibly be the reason?
Maybe the opencv package in conda is not properly listing all the dependencies. I will update the Readme to include this troubleshooting.
@jashshah let us know if installing opencv via pip resolves the problem for you.
I changed the installation instructions to always install opencv using pip. This should resolve the problem.
plz try install h5py==2.6.0, I fix the problem through this
plz try install h5py==2.6.0, I fix the problem through this
Resolved my issue. Running arch linux 5.2.9.-arch1-1-ARCH, x64 architecture. Installed opencv 4.1.1-1 using pacman.
Running Ubuntu 16.04. When running
python example.py
I get the below error:Request you to help.