Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to succesfully run the application #12

Open
sfc-gh-ppaczewski opened this issue Mar 10, 2023 · 6 comments
Open

Unable to succesfully run the application #12

sfc-gh-ppaczewski opened this issue Mar 10, 2023 · 6 comments

Comments

@sfc-gh-ppaczewski
Copy link

I am not able to run this app succesfully on Mac Book Pro M2. Attached one of the errors that I am getting. I will reach out to the owner for a troubleshoot session and share the conclusion here.
streamlit-usage-app-error

@sfc-gh-amiribel
Copy link
Collaborator

Hey @sfc-gh-ppaczewski!

Would be helpful to have more context in this issue. Can you please add:

  • Python version
  • Streamlit version
  • Snowflake python connector version
  • Are you using a fresh new environment? Looks like some packages are failing to be loaded
  • The full error traceback

Thanks a lot!

@sfc-gh-ppaczewski
Copy link
Author

  1. Python 3.9.16
  2. streamlit==1.20.0
  3. snowflake-connector-python==3.0.1
  4. Yes
  5. Traceback: (FYI utils is installed, utils==1.0.1)
    Traceback (most recent call last):
    File "/Users/ppaczewski/.local/share/virtualenvs/snowflake-usage-app-lWEK_pJt/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script
    exec(code, module.dict)
    File "/Users/ppaczewski/snowflake-usage-app/Home.py", line 5, in
    from utils import gui
    ImportError: cannot import name 'gui' from 'utils' (/Users/ppaczewski/.local/share/virtualenvs/snowflake-usage-app-lWEK_pJt/lib/python3.9/site-packages/utils/init.py)
    2023-03-13 11:59:49.122 Uncaught app exception
    Traceback (most recent call last):
    File "/Users/ppaczewski/.local/share/virtualenvs/snowflake-usage-app-lWEK_pJt/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script
    exec(code, module.dict)
    File "/Users/ppaczewski/snowflake-usage-app/pages/02_🔹_Storage_insights.py", line 7, in
    from utils import charts, gui, processing
    ImportError: cannot import name 'charts' from 'utils' (/Users/ppaczewski/.local/share/virtualenvs/snowflake-usage-app-lWEK_pJt/lib/python3.9/site-packages/utils/init.py)

@sfc-gh-amiribel
Copy link
Collaborator

Thanks @sfc-gh-ppaczewski! My first intuition is a conflict with the name "utils". I have submitted an attempt to fix this. See #13

Can you try git pull origin main && git checkout fix_utils_name && pipenv run streamlit run Home.py and tell here if that solves the problem?

@sfc-gh-ppaczewski
Copy link
Author

Hey, I switched to the branch fix_utils_name and it did not solve the problem, the traceback is the same.

@sfc-gh-amiribel
Copy link
Collaborator

Can you try running pip uninstall utils and reproduce?

@sfc-gh-ppaczewski
Copy link
Author

sfc-gh-ppaczewski commented Mar 14, 2023

I have tried and there is no change after pip uninstall utils

after running pipenv uninstall utils this is the traceback I get:

Traceback (most recent call last):
File "/Users/ppaczewski/.local/share/virtualenvs/snowflake-usage-app-lWEK_pJt/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script
exec(code, module.dict)
File "/Users/ppaczewski/snowflake-usage-app/Home.py", line 5, in
from utils import gui
ModuleNotFoundError: No module named 'utils'
2023-03-14 12:31:32.836 Uncaught app exception
Traceback (most recent call last):
File "/Users/ppaczewski/.local/share/virtualenvs/snowflake-usage-app-lWEK_pJt/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script
exec(code, module.dict)
File "/Users/ppaczewski/snowflake-usage-app/pages/02_🔹_Storage_insights.py", line 5, in
from app_utils import charts, gui, processing
File "/Users/ppaczewski/snowflake-usage-app/app_utils/charts.py", line 5, in
from utils import gui
ModuleNotFoundError: No module named 'utils'
/Users/ppaczewski/.local/share/virtualenvs/snowflake-usage-app-lWEK_pJt/src/plost/plost/init.py:543: SyntaxWarning: "is not" with a literal. Did you mean "!="?
if y_enc.get("field", "") is not "value"
/Users/ppaczewski/.local/share/virtualenvs/snowflake-usage-app-lWEK_pJt/src/plost/plost/init.py:748: SyntaxWarning: "is not" with a literal. Did you mean "!="?
if y_enc.get("field", "") is not "value"
2023-03-14 12:31:33.676 Uncaught app exception
Traceback (most recent call last):
File "/Users/ppaczewski/.local/share/virtualenvs/snowflake-usage-app-lWEK_pJt/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script
exec(code, module.dict)
File "/Users/ppaczewski/snowflake-usage-app/pages/01_🔹_Compute_insights.py", line 8, in
from utils import charts, gui, processing
ModuleNotFoundError: No module named 'utils'
2023-03-14 12:31:34.388 Uncaught app exception
Traceback (most recent call last):
File "/Users/ppaczewski/.local/share/virtualenvs/snowflake-usage-app-lWEK_pJt/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script
exec(code, module.dict)
File "/Users/ppaczewski/snowflake-usage-app/Home.py", line 5, in
from utils import gui
ModuleNotFoundError: No module named 'utils'
2023-03-14 12:31:35.029 Uncaught app exception
Traceback (most recent call last):
File "/Users/ppaczewski/.local/share/virtualenvs/snowflake-usage-app-lWEK_pJt/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script
exec(code, module.dict)
File "/Users/ppaczewski/snowflake-usage-app/pages/02_🔹_Storage_insights.py", line 5, in
from app_utils import charts, gui, processing
File "/Users/ppaczewski/snowflake-usage-app/app_utils/charts.py", line 5, in
from utils import gui
ModuleNotFoundError: No module named 'utils'
2023-03-14 12:31:36.376 Uncaught app exception
Traceback (most recent call last):
File "/Users/ppaczewski/.local/share/virtualenvs/snowflake-usage-app-lWEK_pJt/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script
exec(code, module.dict)
File "/Users/ppaczewski/snowflake-usage-app/Home.py", line 5, in
from utils import gui
ModuleNotFoundError: No module named 'utils'
2023-03-14 12:31:37.035 Uncaught app exception
Traceback (most recent call last):
File "/Users/ppaczewski/.local/share/virtualenvs/snowflake-usage-app-lWEK_pJt/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script
exec(code, module.dict)
File "/Users/ppaczewski/snowflake-usage-app/pages/02_🔹_Storage_insights.py", line 5, in
from app_utils import charts, gui, processing
File "/Users/ppaczewski/snowflake-usage-app/app_utils/charts.py", line 5, in
from utils import gui
ModuleNotFoundError: No module named 'utils'
2023-03-14 12:31:37.788 Uncaught app exception
Traceback (most recent call last):
File "/Users/ppaczewski/.local/share/virtualenvs/snowflake-usage-app-lWEK_pJt/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script
exec(code, module.dict)
File "/Users/ppaczewski/snowflake-usage-app/Home.py", line 5, in
from utils import gui
ModuleNotFoundError: No module named 'utils'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants