posit-dev / posit-dev/py-shiny
shiny run <some_dir> fails with attribute app not found in module <some_dir>
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.8k
- Forks
- 135
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 21
Description
If you have a directory like basic/app.py, and run shiny run basic, it errors with:
$ shiny run basic
ERROR: Error loading ASGI app. Attribute "app" not found in module "basic".
Note that if you run shiny run basic/app.py, then it works okay.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the behavior with shiny run basic and compare it with shiny run basic/app.py. Start at the shiny run CLI entry point and trace how a directory is resolved as an application module. Done means the directory form loads basic/app.py successfully instead of reporting that attribute app is missing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100