Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 621318 - dev-python/awscli: should RDEPEND on dev-python/pyyaml
Summary: dev-python/awscli: should RDEPEND on dev-python/pyyaml
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Patrick Lauer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-09 16:06 UTC by Piotr Karbowski (RETIRED)
Modified: 2017-09-16 18:27 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Karbowski (RETIRED) gentoo-dev 2017-06-09 16:06:42 UTC
Currently awscli does not pull in runtime dependency of pyyaml, which result with a crash on for example yaml cloudformation templates due to missing 'yaml' module.

Reproducible: Always
Comment 1 Håvard Wall 2017-07-18 09:57:36 UTC
Confirming. Here's an example:

$> aws ecr get-login
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.5/aws", line 27, in <module>
    sys.exit(main())
  File "/usr/lib/python-exec/python3.5/aws", line 23, in main
    return awscli.clidriver.main()
  File "/usr/lib64/python3.5/site-packages/awscli/clidriver.py", line 55, in main
    driver = create_clidriver()
  File "/usr/lib64/python3.5/site-packages/awscli/clidriver.py", line 64, in create_clidriver
    event_hooks=emitter)
  File "/usr/lib64/python3.5/site-packages/awscli/plugin.py", line 44, in load_plugins
    modules = _import_plugins(plugin_mapping)
  File "/usr/lib64/python3.5/site-packages/awscli/plugin.py", line 61, in _import_plugins
    module = __import__(path, fromlist=[module])
  File "/usr/lib64/python3.5/site-packages/awscli/handlers.py", line 27, in <module>
    from awscli.customizations.cloudformation import initialize as cloudformation_init
  File "/usr/lib64/python3.5/site-packages/awscli/customizations/cloudformation/__init__.py", line 13, in <module>
    from awscli.customizations.cloudformation.package import PackageCommand
  File "/usr/lib64/python3.5/site-packages/awscli/customizations/cloudformation/package.py", line 21, in <module>
    from awscli.customizations.cloudformation.artifact_exporter import Template
  File "/usr/lib64/python3.5/site-packages/awscli/customizations/cloudformation/artifact_exporter.py", line 25, in <module>
    from awscli.customizations.cloudformation.yamlhelper import yaml_dump, \
  File "/usr/lib64/python3.5/site-packages/awscli/customizations/cloudformation/yamlhelper.py", line 14, in <module>
    import yaml
ImportError: No module named 'yaml'