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