Any recent changes to poetry?

Hi team,

Were there any recent changes in how poetry install is handled?
I’ve got an app, which used to work for past several months, and recently it stopped working.
Logs:

[14:46:36] 🐍 Python dependencies were installed from /mount/src/music/pyproject.toml using poetry.
Check if streamlit is installed
Streamlit is already installed
[14:46:37] 📦 Processed dependencies!
Collecting usage statistics. To deactivate, set browser.gatherUsageStats to False.
2023-07-24 14:46:57.009 Uncaught app exception
Traceback (most recent call last):
  File "/home/adminuser/venv/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 552, in _run_script
    exec(code, module.__dict__)
  File "/mount/src/music/music/dashboard/main.py", line 3, in <module>
    from music.dashboard.utils.streamlit_utils import set_default_page_params
ModuleNotFoundError: No module named 'music'
2023-07-24 14:47:06.927 Uncaught app exception
Traceback (most recent call last):
  File "/home/adminuser/venv/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 552, in _run_script
    exec(code, module.__dict__)
  File "/mount/src/music/music/dashboard/pages/99_⚙️_settings.py", line 5, in <module>
    from music.common.database_connection import database
ModuleNotFoundError: No module named 'music'

where music is the name of my streamlit project - which should be installed when using poetry install.

1 Like

Hey @Szczerbatybober, welcome to our forums!

Thanks for reporting the issue. I’ve let the Community Cloud team know, and we’re looking into it.

Thanks for your patience.

Best,
Charly

1 Like

Hi @Szczerbatybober

The Community Cloud team confirmed that the issue should be fixed by EOD tomorrow.

Best,
Charly

Hi! I’m one of the engineers working on the Community Cloud platform. To make sure that the fix is working, could you please share with me a version of your github repository so I can test it before we release? Thank you!

Hi George,

I’m hesitant to share my codebase, as it’s a part of larger monorepo and I’d rather not make it public.

I can see that issue wasn’t yet fixed though (at least for me), so my question is if you’re having problems to reproduce it locally? If so, I can try to prepare a sample similar repo trying to reproduce, if that’s what needed.

Cheers

I just released the fix today morning. Could you please point me to your app domain so I can upgrade your app? Alternatively, you can delete/create it and you should have the lastest changes running.

Best,
George

2 Likes

Thanks for the fix, @George_Merticariu!

Thank you for the update George, I can confirm that it does work after delete/create.

1 Like

Thank you for the confirmation, and I apologise for the issue in the first place!

2 Likes

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