posit-dev / posit-dev/py-shiny
Loading shiny fails when installed normally
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.8k
- Forks
- 135
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 21
Description
When shiny is installed normally (not pip install -e), loading it causes an error.
To install it:
pip3 uninstall shiny
make install
After installing it, loading results in an error:
>>> import shiny
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/homebrew/lib/python3.9/site-packages/shiny-0.0.0.9001-py3.9.egg/shiny/__init__.py", line 9, in <module>
from . import ui
File "/opt/homebrew/lib/python3.9/site-packages/shiny-0.0.0.9001-py3.9.egg/shiny/ui/__init__.py", line 7, in <module>
from ._bootstrap import *
File "/opt/homebrew/lib/python3.9/site-packages/shiny-0.0.0.9001-py3.9.egg/shiny/ui/_bootstrap.py", line 40, in <module>
from ._page import get_window_title
File "/opt/homebrew/lib/python3.9/site-packages/shiny-0.0.0.9001-py3.9.egg/shiny/ui/_page.py", line 29, in <module>
from ._navs import navs_bar
File "/opt/homebrew/lib/python3.9/site-packages/shiny-0.0.0.9001-py3.9.egg/shiny/ui/_navs.py", line 529, in <module>
def navs_hidden(
File "/opt/homebrew/lib/python3.9/site-packages/shiny-0.0.0.9001-py3.9.egg/shiny/_docstring.py", line 15, in _
raise ValueError(f"No example for {fn_name}")
ValueError: No example for navs_hidden
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 failure with make install, then import shiny. Start with shiny/_docstring.py and the navs_hidden definition in shiny/ui/_navs.py, as shown in the traceback. Done means a normally installed package imports without raising the missing-example ValueError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100