Skip to content
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

autopygen: missing module stdlib-list #1432

Closed
thorstenwagner opened this issue Feb 27, 2024 · 2 comments · Fixed by #1433
Closed

autopygen: missing module stdlib-list #1432

thorstenwagner opened this issue Feb 27, 2024 · 2 comments · Fixed by #1433

Comments

@thorstenwagner
Copy link

I installed the latest planemo via pip. If I try to run it with the --autopygen I run into the following exception:

Traceback (most recent call last):
  File "/opt/user_software/miniconda3_envs/_galaxy_/lib/python3.7/site-packages/planemo/cli.py", line 75, in name_to_command
    mod = __import__(mod_name, None, None, ["cli"])
  File "/opt/user_software/miniconda3_envs/_galaxy_/lib/python3.7/site-packages/planemo/commands/cmd_tool_init.py", line 10, in <module>
    from planemo import (
  File "/opt/user_software/miniconda3_envs/_galaxy_/lib/python3.7/site-packages/planemo/tool_builder.py", line 18, in <module>
    from planemo.autopygen.argument_parser_conversion import (
  File "/opt/user_software/miniconda3_envs/_galaxy_/lib/python3.7/site-packages/planemo/autopygen/argument_parser_conversion.py", line 25, in <module>
    from planemo.autopygen.commands.command_utils import (
  File "/opt/user_software/miniconda3_envs/_galaxy_/lib/python3.7/site-packages/planemo/autopygen/commands/command_utils.py", line 16, in <module>
    from planemo.autopygen.param_info import (
  File "/opt/user_software/miniconda3_envs/_galaxy_/lib/python3.7/site-packages/planemo/autopygen/param_info.py", line 11, in <module>
    from planemo.autopygen.source_file_parsing.constants import WARNING_STRING
  File "/opt/user_software/miniconda3_envs/_galaxy_/lib/python3.7/site-packages/planemo/autopygen/source_file_parsing/constants.py", line 7, in <module>
    from stdlib_list import stdlib_list
ModuleNotFoundError: No module named 'stdlib_list'

I was able to fix it with:

pip install stdlib-list
@thorstenwagner
Copy link
Author

I just saw that stdlib_list is in the requirements file. Maybe it must be stdlib-list?

@nsoranzo
Copy link
Member

Thanks for the bug report!

I just saw that stdlib_list is in the requirements file. Maybe it must be stdlib-list?

This is not what causes the issue, pip/PyPI treat both as aliases, although the official package name is indeed with a -.
Any way, this should be fixed by #1433.

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

Successfully merging a pull request may close this issue.

2 participants