Skip to content

installing shiny via conda does not install questionary #1430

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

Closed
gernophil opened this issue May 28, 2024 · 4 comments
Closed

installing shiny via conda does not install questionary #1430

gernophil opened this issue May 28, 2024 · 4 comments

Comments

@gernophil
Copy link

gernophil commented May 28, 2024

Hey,

I was just installing shiny via conda and tried to use shiny create. This fails however with a ModuleNotFoundError. It seems like shiny on conda does not install questionary as a dependency (at least on Apple Silicon). Would be nice, if this would be installed automatically:

% shiny create
Traceback (most recent call last):
  File "/Users/gernophil/miniconda3/envs/shiny/bin/shiny", line 10, in <module>
    sys.exit(main())
             ^^^^^^
  File "/Users/gernophil/miniconda3/envs/shiny/lib/python3.12/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/gernophil/miniconda3/envs/shiny/lib/python3.12/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/Users/gernophil/miniconda3/envs/shiny/lib/python3.12/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/gernophil/miniconda3/envs/shiny/lib/python3.12/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/gernophil/miniconda3/envs/shiny/lib/python3.12/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/gernophil/miniconda3/envs/shiny/lib/python3.12/site-packages/shiny/_main.py", line 561, in create
    from ._template_utils import template_query, use_git_template
  File "/Users/gernophil/miniconda3/envs/shiny/lib/python3.12/site-packages/shiny/_template_utils.py", line 14, in <module>
    import questionary
ModuleNotFoundError: No module named 'questionary'
@wch
Copy link
Collaborator

wch commented May 28, 2024

Hopefully this will fix that issue: conda-forge/py-shiny-feedstock#39

@wch
Copy link
Collaborator

wch commented May 28, 2024

That PR did not fix it, but I edited the meta.yaml directly here: conda-forge/py-shiny-feedstock@681255e

@wch
Copy link
Collaborator

wch commented May 28, 2024

@gernophil Can you try out the latest from conda?

@gernophil
Copy link
Author

Yes, it works now :). Thanks for the swift fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants