Runtime error while importing h5py file module

Traceback (most recent call last):
File “/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py”, line 564, in _run_script
exec(code, module.dict)
File “/mount/src/exa/functions.py”, line 5, in
import h5py
ModuleNotFoundError: No module named ‘h5py’

Hi @sagarv2522

Typically the error

stems from the fact that the mentioned library is not installed.

You can install it locally via

pip install h5py

Or if deploying to the Community Cloud, you can add it to requirements.txt

Thanks for reply. I had tried different install process. But doesn’t work at all. I also respect your information and tried pip install h5py and below are the image of installation and deployment error.

Installation:

Error:

" ```
[11:42:17] :package: Processed dependencies!

2024-01-10 11:42:25.996 Uncaught app exception
Traceback (most recent call last):
File “/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py”, line 534, in _run_script
exec(code, module.dict)
File “/mount/src/exa/functions.py”, line 3, in
import h5py
ModuleNotFoundError: No module named ‘h5py’
"

could you say, what should I add in my requirement text ?

Please share link to your public github repo.

Sure @Franky1 here is my github repo link GitHub - sagarv2522/dl-image-classifier: This repository contains a deep learning image classification model. we can be customized for our usage also.. Thanks for your help advance.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.