You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you try to deploy this codebase as it is in WSL2 Ubuntu 22.04/24.04 (python3.12) you will run into three issues:
distutils not being found
gio: http://localhost:8501: Operation not supported
Application trying to access duplicate dezoomcamp folder: FileNotFoundError: [Errno 2] No such file or directory: '/home/user2/github/de-zoomcamp-ui/dezoomcamp/dezoomcamp/DE_Zoomcamp.py'
disutils is deprecated for later versions of python3, to fix this verify/install python3-setuptools via sudo apt install python3-setuptools
then recreate your python3 environment, but use --system-site-packages in the end to allow env access to system packages such as setuptools
gio error means that it cannot open the browser. We can fix this by installing wslu.
If you think it's an overkill, maybe you can install wslview separately or play around with browser specific env variables in bashrc.
FileNotFoundError, idk, I thought maybe venv placement is the cause, maybe it should be in dezoomcamp folder, but this is not the cause. Either way the solution is rather simple. Go to de-zoomcamp-ui and run it like this streamlit run dezoomcamp/DE_Zoomcamp.py
The text was updated successfully, but these errors were encountered:
If you try to deploy this codebase as it is in WSL2 Ubuntu 22.04/24.04 (python3.12) you will run into three issues:
distutils
not being foundgio: http://localhost:8501: Operation not supported
dezoomcamp
folder:FileNotFoundError: [Errno 2] No such file or directory: '/home/user2/github/de-zoomcamp-ui/dezoomcamp/dezoomcamp/DE_Zoomcamp.py'
disutils
is deprecated for later versions of python3, to fix this verify/installpython3-setuptools
viasudo apt install python3-setuptools
then recreate your python3 environment, but use
--system-site-packages
in the end to allow env access to system packages such assetuptools
gio
error means that it cannot open the browser. We can fix this by installing wslu.If you think it's an overkill, maybe you can install wslview separately or play around with browser specific env variables in bashrc.
FileNotFoundError
, idk, I thought maybe venv placement is the cause, maybe it should be indezoomcamp
folder, but this is not the cause. Either way the solution is rather simple. Go tode-zoomcamp-ui
and run it like thisstreamlit run dezoomcamp/DE_Zoomcamp.py
The text was updated successfully, but these errors were encountered: