example-app-commenting
example-app-commenting copied to clipboard
I got an error (cannot import name 'chart' from 'utils')
First of all, thank you for creating such a wonderful project! I really appreciate it.
I put the utils folder in the same directory where the main.py is located. I ran streamlit run main.py in vscode and received the following error.
ImportError: cannot import name 'chart' from 'utils' (C:\Users\myname\anaconda3\lib\site-packages\utils_init_.py)
It seems that python cannot read the file located in the folder where main.py is in. This may be a basic issue, but can you please help?
I solved the issue by changing the name of the folder! :) from utils to utils2. But I still receive the following error. Can you please help? Thanks in advance.
Secrets file not found. Expected at: C:\Users\phdsm\0. Public Finance Analytics.streamlit\secrets.toml FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\phdsm\0. Public Finance Analytics\.streamlit\secrets.toml'