Bug 1409681 - AWSCLI not managing python-six dependency
Summary: AWSCLI not managing python-six dependency
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: awscli
Version: epel7
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
Assignee: Fabio Alessandro Locati
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-01-03 00:27 UTC by joseph.copenhaver
Modified: 2017-01-23 09:53 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-01-23 09:53:29 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description joseph.copenhaver 2017-01-03 00:27:06 UTC
Description of problem:
awscli version 1.11.28-2.el7 does not upgrade its python-six dependency properly


Version-Release number of selected component (if applicable):
1.11.28-2.el7


How reproducible:
100%


Steps to Reproduce:
1. yum install python-six version 1.3.0-4.el7
2. yum install latest awscli ( version >= 1.11.28-2.el7 )
3. run command: "aws help"


Actual results:
Got a python traceback:
# aws help
Traceback (most recent call last):
  File "/bin/aws", line 27, in <module>
    sys.exit(main())
  File "/bin/aws", line 23, in main
    return awscli.clidriver.main()
  File "/usr/lib/python2.7/site-packages/awscli/clidriver.py", line 53, in main
    driver = create_clidriver()
  File "/usr/lib/python2.7/site-packages/awscli/clidriver.py", line 62, in create_clidriver
    event_hooks=emitter)
  File "/usr/lib/python2.7/site-packages/awscli/plugin.py", line 44, in load_plugins
    modules = _import_plugins(plugin_mapping)
  File "/usr/lib/python2.7/site-packages/awscli/plugin.py", line 61, in _import_plugins
    module = __import__(path, fromlist=[module])
  File "/usr/lib/python2.7/site-packages/awscli/handlers.py", line 27, in <module>
    from awscli.customizations.cloudformation import initialize as cloudformation_init
  File "/usr/lib/python2.7/site-packages/awscli/customizations/cloudformation/__init__.py", line 13, in <module>
    from awscli.customizations.cloudformation.package import PackageCommand
  File "/usr/lib/python2.7/site-packages/awscli/customizations/cloudformation/package.py", line 21, in <module>
    from awscli.customizations.cloudformation.artifact_exporter import Template
  File "/usr/lib/python2.7/site-packages/awscli/customizations/cloudformation/artifact_exporter.py", line 22, in <module>
    from six.moves.urllib.parse import urlparse, parse_qs
ImportError: No module named urllib.parse


Expected results:
No traceback; expect help information


Additional info:
Package python-six version 1.9.0-2.el7 is compatible with awscli-1.11.28


Workaround:
yum install -y --enablerepo=epel python-six-1.9.0

Comment 1 Fabio Alessandro Locati 2017-01-23 09:53:29 UTC
awscli should not depend on six. This was an upstream bug that I pointed out thanks to this report and they should have it fixed.


Note You need to log in before you can comment on or make changes to this bug.