Deploy app with local dependency not working

I can’t deploy my app although it’s running locally.
I’m using a module that is a cloned repo installed locally with pip (pip install -e .) I don’t know if I’m properly referencing this module in requirements.txt (I added -e ./streamlit-bgraph)
The error I get when trying to deploy is:

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/textmagnet/app.py", line 7, in <module>
    from graph import GraphFile "/mount/src/textmagnet/graph.py", line 1, in <module>
    from streamlit_agraph import agraph, Node, Edge, ConfigFile "/mount/src/textmagnet/streamlit-bgraph/streamlit_agraph/__init__.py", line 22, in <module>
    _agraph = components.declare_component("agraph", path=build_dir)File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/components/v1/components.py", line 320, in declare_component
    ComponentRegistry.instance().register_component(component)File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/components/v1/components.py", line 360, in register_component
    raise StreamlitAPIException(f"No such component directory: '{abspath}'")

This is my app’s repo: GitHub - jnferfer/TextMagnet
Any help would be greatly appreciated.
Thanks!

Hey @juanff,

Thanks for sharing this question. Are you deploying your app on Community Cloud? If so, can you please share the link? Also, the linked GitHub repo is private

Thanks @Caroline .
I’ve managed to solve this by placing my code in a single Python file. It seemed to be a dependency issue. It’s not necessary to specify the local module on requirements.txt

1 Like

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