-
Notifications
You must be signed in to change notification settings - Fork 894
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
Include stanza.utils.visualization
in distributions?
#1421
Comments
Oof, thanks for catching that. I'll make a 1.9.1 |
Sorry to necropost this, and maybe I fully misunderstand the purpose of import stanza.utils.visualization.semgrex_app
File ".venv/lib/python3.11/site-packages/stanza/utils/visualization/semgrex_app.py", line 5, in <module>
import stanza.utils.visualization.ssurgeon_visualizer as ssv
File ".venv/lib/python3.11/site-packages/stanza/utils/visualization/ssurgeon_visualizer.py", line 6, in <module>
import stanza.utils.visualization.semgrex_visualizer as sv
File ".venv/lib/python3.11/site-packages/stanza/utils/visualization/semgrex_visualizer.py", line 18, in <module>
from utils import find_nth, round_base
ModuleNotFoundError: No module named 'utils' Perhaps: from stanza.utils.visualization.utils import find_nth, round_base would clear this up? |
I'm putting "only takes three tries to accomplish simple tasks" on my resume |
Thanks again: restored the smoke test and it works fine downstream. Still might want to consider adding and documenting some CLI entrypoints for those files rather than having to find them in the source tree to run them, but at least it |
Is your feature request related to a problem? Please describe.
Looking to add (and at least smoke test) a downstream equivalent to
stanza[visualization]
.Trying to run something like:
Fails with:
Describe the solution you'd like
Add
stanza/utils/visualization/__init__.py
.Describe alternatives you've considered
entry_points = {"console_scripts": []}
Additional context
conda-forge/stanza-feedstock#20
The text was updated successfully, but these errors were encountered: