yogeshhk / Sarvadnya

This repo is a collection of various PoCs (Proof-of-Concepts) to interface custom data using LLMs.
MIT License
51 stars 22 forks source link

Ask Yogasutra: agraph error #87

Closed yogeshhk closed 1 month ago

yogeshhk commented 1 month ago

Error in agraph graph display. streamlit-agraph/issues/61

While running 'examples/karate_club_graph.py' as is, got following error:

StreamlitAPIException: To use Custom Components in Streamlit, you need to install PyArrow. To do so locally:

pip install pyarrow

And if you're using Streamlit Cloud, add "pyarrow" to your requirements.txt.

Traceback:
File "karate_club_graph.py", line 30, in <module>
    return_value = agraph(nodes=nodes,
File "...envs\genai\lib\site-packages\streamlit_agraph\__init__.py", line 38, in agraph
    component_value = _agraph(data=data_json, config=config_json)

I do have pyarrow installed, but still ..

yogeshhk commented 1 month ago

I uninstalled the existing with pip uninstall streamlit, then reinstalled it with conda install -c conda-forge streamlit, this seems to work