Closed Rebekah-Chuang closed 9 months ago
Thanks! Please remove .
in front of the shiny
folder. In my original comment, ./shiny/
the first .
refers to the current folder.
I used shiny
for the folder name at first. When I tried to run the app, the error message showed as below:
(shiny_app_env) chiying__c@bigheads-MBP accessible-data-viz-application % /Users/chiying__c/opt/anaconda3/envs/shiny_app_env/bin/python -m shiny run --port 53389 --reload "/Users/chiying__c/Desktop/UIUC/Course/2024Spring/IS589_Independent_Study/shiny_app_python/accessible-data-vi
z-application/shiny/app.py"
/Users/chiying__c/opt/anaconda3/envs/shiny_app_env/bin/python: No module named shiny.__main__; 'shiny' is a package and cannot be directly executed
When I changed it to .shiny
, it surprisingly worked. Did I do anything wrong with the structure? Thanks.
I see. That’s because the shiny is the module name which conflicts against the folder name that we are trying to create. Let’s rename .shiny
to apps
. This should work. I don’t recommend using .
in front of the folder name unless you want to create a hidden folder or env folder.
Thanks! I've changed the folder name and it works now!
functions.py
to reduce duplicated code.csv
,.tsv
,.xlsx
file for testingCloses #3