Streamlit not recognizing module from same package

Hi. I’m new to streamlit, and attempting to build a dashboard with it.

I have problems importing a class from the same package.

My code:
import streamlit as st

from dashboard_layer.freq_enums import frequency_enum

if __name__ == '__main__':
    print(frequency_enum.freqsAll_mt.value)

In the console I see “hi”

In the app I see:
image

I would appreciate any help you can give.
Thank you!

Bump?

Does this resolve your issue?

How did you resolve this issue I am running into the same issue but unable to find any solution I also checked the shared StackOverflow link but was unable to solve the problem.

I am importing my custom python module into my other python script it is working fine when I am running it in my Jupiter notebook but as soon as I run the Streamlit app it shows module not found

I am facing the same issue.

This does not resolve the issue for me. I am facing the same issue and I have raised a query for the same at :- Query

Could you please look into it ?