Deploy H20 app to streamlit

How can I deploy H20 app to streamlit cloud?
I’ve run it in local and it works successfully. But it returns error importing module H20 when deploying in streamlit cloud.


my local installation: pip install https://h2o-release.s3.amazonaws.com/h2o/rel-zumbo/2/Python/h2o-3.36.1.2-py2.py3-none-any.whl

Is there any solution to this issue?

1 Like

Hey @Anna . Have you mentioned h2o in your requirements.txt?? If not mentioned it and don’t forget to reboot the application.

Happy Streamlit-ing :balloon:

1 Like

Hi @Guna_Sekhar_Venkata, I’ve generated the rquirements.txt using pip freeze and it returns an error like this when I click ‘Manage App’ in Streamlit.


Below my generated requirements.txt
alembic==1.8.1
altair==4.2.0
asttokens==2.0.8
attrs==22.1.0
backcall==0.2.0
backports.zoneinfo==0.2.1
blinker==1.5
blis==0.7.9
Boruta==0.3
cachetools==5.2.0
catalogue==1.0.2
certifi==2022.9.24
charset-normalizer @ file:///tmp/build/80754af9/charset-normalizer_1630003229654/work
click==8.1.3
cloudpickle==2.2.0
colorama==0.4.6
colorlover==0.3.0
commonmark==0.9.1
cufflinks==0.17.3
cycler==0.11.0
cymem==2.0.7
Cython==0.29.14
databricks-cli==0.17.3
debugpy==1.6.3
decorator==5.1.1
docker==6.0.0
docopt==0.6.2
entrypoints==0.4
executing==1.1.1
Flask==2.2.2
fonttools==4.38.0
funcy==1.17
future==0.18.2
gensim==3.8.3
gitdb==4.0.9
GitPython==3.1.29
greenlet==1.1.3.post0
h2o @ https://h2o-release.s3.amazonaws.com/h2o/rel-zumbo/2/Python/h2o-3.36.1.2-py2.py3-none-any.whl#sha256=156e8aba71b830ade3483684bc9ffeff46b3b5b29f4e23cca3fe6059c7f8ea94
htmlmin==0.1.12
idna @ file:///C:/b/abs_bdhbebrioa/croot/idna_1666125572046/work
ImageHash==4.3.1
imbalanced-learn==0.7.0
importlib-metadata==5.0.0
importlib_resources==6.4.0
ipykernel==6.16.2
ipython==8.5.0
ipywidgets==8.0.2
itsdangerous==2.1.2
jedi==0.18.1
Jinja2==3.1.2
joblib==1.2.0
jsonschema==4.16.0
jupyter_client==7.4.4
jupyter_core==4.11.2
jupyterlab-widgets==3.0.3
kiwisolver==1.4.4
kmodes==0.12.2
lightgbm==3.3.3
llvmlite==0.37.0
Mako==1.2.3
MarkupSafe==2.1.1
matplotlib==3.5.3
matplotlib-inline==0.1.6
missingno==0.5.1
mlflow==1.30.0
mlxtend==0.19.0
multimethod==1.9
murmurhash==1.0.9
nest-asyncio==1.5.6
networkx==2.8.7
nltk==3.7
numba==0.54.1
numexpr==2.8.3
numpy==1.20.3
oauthlib==3.2.2
packaging==21.3
pandas==1.5.1
pandas-profiling==3.4.0
parso==0.8.3
patsy==0.5.3
phik==0.12.2
pickleshare==0.7.5
Pillow==9.2.0
pipreqs==0.4.13
pkgutil_resolve_name==1.3.10
plac==1.1.3
plotly==5.10.0
preshed==3.0.8
prometheus-client==0.15.0
prometheus-flask-exporter==0.20.3
prompt-toolkit==3.0.31
protobuf==3.20.3
psutil==5.9.3
pure-eval==0.2.2
pyarrow==9.0.0
pycaret==2.3.10
pydantic==1.10.2
pydeck==0.8.0b4
Pygments==2.13.0
PyJWT==2.6.0
pyLDAvis==3.3.1
Pympler==1.0.1
pynndescent==0.5.7
pyod==1.0.6
pyparsing==3.0.9
pyrsistent==0.18.1
python-dateutil==2.8.2
pytz==2022.5
pytz-deprecation-shim==0.1.0.post0
PyWavelets==1.4.1
pywin32==304
PyYAML==5.4.1
pyzmq==24.0.1
querystring-parser==1.2.4
regex==2022.9.13
requests==2.28.1
rich==12.6.0
scikit-learn==0.23.2
scikit-plot==0.3.7
scipy==1.5.4
seaborn==0.12.1
semver==2.13.0
six==1.16.0
sklearn==0.0
smart-open==6.2.0
smmap==5.0.0
spacy==2.3.8
SQLAlchemy==1.4.42
sqlparse==0.4.3
srsly==1.0.6
stack-data==0.5.1
statsmodels==0.13.2
streamlit==1.13.0
streamlit-pandas-profiling==0.1.3
tabulate @ file:///C:/b/abs_21rf8iibnh/croot/tabulate_1701354830521/work
tangled-up-in-unicode==0.2.0
tenacity==8.1.0
textblob==0.17.1
thinc==7.4.6
threadpoolctl==3.1.0
toml==0.10.2
toolz==0.12.0
tornado==6.2
tqdm==4.64.1
traitlets==5.5.0
typing_extensions==4.4.0
tzdata==2022.5
tzlocal==4.2
umap-learn==0.5.3
urllib3==1.26.12
validators==0.20.0
visions==0.7.5
waitress==2.1.2
wasabi==0.10.1
watchdog==2.1.9
wcwidth==0.2.5
websocket-client==1.4.1
Werkzeug==2.2.2
widgetsnbextension==4.0.3
wordcloud==1.8.2.2
yarg==0.1.9
yellowbrick==1.2.1
zipp==3.10.0

1 Like