prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  aws emr create-cluster help command returns error
  how to reproduce 
  
  1. upgrade to awscli 1.16.190 or 1.16.194 or 1.16.196
  at the moment it's enough to install via pip either on macOS(1.16.194) or on linux(1.16.196), or using Homebrew(1.16.190) on macOS
  ```
  # on Ubuntu 16.04 linux 
  $ pip install --upgrade awscli
  <... output skipped - but it was successful, no errors ...>
  
  $ aws --version
  aws-cli/1.16.196 Python/2.7.12 Linux/4.4.0-97-generic botocore/1.12.186
  
  $ aws emr create-cluster help
  
  [Errno 2] No such file or directory: '/usr/local/lib/python2.7/dist-packages/awscli/examples/emr/create-cluster-synopsis.txt'
  
  
  
  #or on macOS just for example using the one installed via Homebrew
  $ brew install awscli
  <... output skipped - but it was successful, no errors ...>
  
  $ aws --version
  aws-cli/1.16.190 Python/3.7.4 Darwin/18.6.0 botocore/1.12.180
  
  $ aws emr create-cluster help
  [Errno 2] No such file or directory: '/usr/local/Cellar/awscli/1.16.190/libexec/lib/python3.7/site-packages/awscli/examples/emr/create-cluster-synopsis.txt'
  
  #or on macOS using aws installed via pip3
  $ aws emr create-cluster help
  
  [Errno 2] No such file or directory: '/usr/local/lib/python3.7/site-packages/awscli/examples/emr/create-cluster-synopsis.txt'
  ```
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `setup.py`
  Content:
  ```
  1 #!/usr/bin/env python
  2 import codecs
  3 import os.path
  4 import re
  5 import sys
  6 
  7 from setuptools import setup, find_packages
  8 
  9 
  10 here = os.path.abspath(os.path.dirname(__file__))
  11 
  12 
  13 def read(*parts):
  14     return codecs.open(os.path.join(here, *parts), 'r').read()
  15 
  16 
  17 def find_version(*file_paths):
  18     version_file = read(*file_paths)
  19     version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
  20                               version_file, re.M)
  21     if version_match:
  22         return version_match.group(1)
  23     raise RuntimeError("Unable to find version string.")
  24 
  25 
  26 requires = ['botocore==1.12.187',
  27             'colorama>=0.2.5,<=0.3.9',
  28             'docutils>=0.10',
  29             'rsa>=3.1.2,<=3.5.0',
  30             's3transfer>=0.2.0,<0.3.0']
  31 
  32 
  33 if sys.version_info[:2] == (2, 6):
  34     # For python2.6 we have to require argparse since it
  35     # was not in stdlib until 2.7.
  36     requires.append('argparse>=1.1')
  37 
  38     # For Python 2.6, we have to require a different verion of PyYAML since the latest
  39     # versions dropped support for Python 2.6.
  40     requires.append('PyYAML>=3.10,<=3.13')
  41 else:
  42     requires.append('PyYAML>=3.10,<=5.1')
  43 
  44 
  45 setup_options = dict(
  46     name='awscli',
  47     version=find_version("awscli", "__init__.py"),
  48     description='Universal Command Line Environment for AWS.',
  49     long_description=read('README.rst'),
  50     author='Amazon Web Services',
  51     url='http://aws.amazon.com/cli/',
  52     scripts=['bin/aws', 'bin/aws.cmd',
  53              'bin/aws_completer', 'bin/aws_zsh_completer.sh',
  54              'bin/aws_bash_completer'],
  55     packages=find_packages(exclude=['tests*']),
  56     package_data={'awscli': ['data/*.json', 'examples/*/*.rst',
  57                              'examples/*/*/*.rst', 'topics/*.rst',
  58                              'topics/*.json']},
  59     install_requires=requires,
  60     extras_require={
  61         ':python_version=="2.6"': [
  62             'argparse>=1.1',
  63         ]
  64     },
  65     license="Apache License 2.0",
  66     classifiers=[
  67         'Development Status :: 5 - Production/Stable',
  68         'Intended Audience :: Developers',
  69         'Intended Audience :: System Administrators',
  70         'Natural Language :: English',
  71         'License :: OSI Approved :: Apache Software License',
  72         'Programming Language :: Python',
  73         'Programming Language :: Python :: 2',
  74         'Programming Language :: Python :: 2.6',
  75         'Programming Language :: Python :: 2.7',
  76         'Programming Language :: Python :: 3',
  77         'Programming Language :: Python :: 3.3',
  78         'Programming Language :: Python :: 3.4',
  79         'Programming Language :: Python :: 3.5',
  80         'Programming Language :: Python :: 3.6',
  81         'Programming Language :: Python :: 3.7',
  82     ],
  83 )
  84 
  85 if 'py2exe' in sys.argv:
  86     # This will actually give us a py2exe command.
  87     import py2exe
  88     # And we have some py2exe specific options.
  89     setup_options['options'] = {
  90         'py2exe': {
  91             'optimize': 0,
  92             'skip_archive': True,
  93             'dll_excludes': ['crypt32.dll'],
  94             'packages': ['docutils', 'urllib', 'httplib', 'HTMLParser',
  95                          'awscli', 'ConfigParser', 'xml.etree', 'pipes'],
  96         }
  97     }
  98     setup_options['console'] = ['bin/aws']
  99 
  100 
  101 setup(**setup_options)
  102
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/setup.py b/setup.py
  --- a/setup.py
  +++ b/setup.py
  @@ -54,6 +54,7 @@
                'bin/aws_bash_completer'],
       packages=find_packages(exclude=['tests*']),
       package_data={'awscli': ['data/*.json', 'examples/*/*.rst',
  +                             'examples/*/*.txt', 'examples/*/*/*.txt',
                                'examples/*/*/*.rst', 'topics/*.rst',
                                'topics/*.json']},
       install_requires=requires,
  
verification_info: {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -54,6 +54,7 @@\n              'bin/aws_bash_completer'],\n     packages=find_packages(exclude=['tests*']),\n     package_data={'awscli': ['data/*.json', 'examples/*/*.rst',\n+                             'examples/*/*.txt', 'examples/*/*/*.txt',\n                              'examples/*/*/*.rst', 'topics/*.rst',\n                              'topics/*.json']},\n     install_requires=requires,\n", "issue": "aws emr create-cluster help command returns error\nhow to reproduce \r\n\r\n1. upgrade to awscli 1.16.190 or 1.16.194 or 1.16.196\r\nat the moment it's enough to install via pip either on macOS(1.16.194) or on linux(1.16.196), or using Homebrew(1.16.190) on macOS\r\n```\r\n# on Ubuntu 16.04 linux \r\n$ pip install --upgrade awscli\r\n<... output skipped - but it was successful, no errors ...>\r\n\r\n$ aws --version\r\naws-cli/1.16.196 Python/2.7.12 Linux/4.4.0-97-generic botocore/1.12.186\r\n\r\n$ aws emr create-cluster help\r\n\r\n[Errno 2] No such file or directory: '/usr/local/lib/python2.7/dist-packages/awscli/examples/emr/create-cluster-synopsis.txt'\r\n\r\n\r\n\r\n#or on macOS just for example using the one installed via Homebrew\r\n$ brew install awscli\r\n<... output skipped - but it was successful, no errors ...>\r\n\r\n$ aws --version\r\naws-cli/1.16.190 Python/3.7.4 Darwin/18.6.0 botocore/1.12.180\r\n\r\n$ aws emr create-cluster help\r\n[Errno 2] No such file or directory: '/usr/local/Cellar/awscli/1.16.190/libexec/lib/python3.7/site-packages/awscli/examples/emr/create-cluster-synopsis.txt'\r\n\r\n#or on macOS using aws installed via pip3\r\n$ aws emr create-cluster help\r\n\r\n[Errno 2] No such file or directory: '/usr/local/lib/python3.7/site-packages/awscli/examples/emr/create-cluster-synopsis.txt'\r\n```\n", "before_files": [{"content": "#!/usr/bin/env python\nimport codecs\nimport os.path\nimport re\nimport sys\n\nfrom setuptools import setup, find_packages\n\n\nhere = os.path.abspath(os.path.dirname(__file__))\n\n\ndef read(*parts):\n    return codecs.open(os.path.join(here, *parts), 'r').read()\n\n\ndef find_version(*file_paths):\n    version_file = read(*file_paths)\n    version_match = re.search(r\"^__version__ = ['\\\"]([^'\\\"]*)['\\\"]\",\n                              version_file, re.M)\n    if version_match:\n        return version_match.group(1)\n    raise RuntimeError(\"Unable to find version string.\")\n\n\nrequires = ['botocore==1.12.187',\n            'colorama>=0.2.5,<=0.3.9',\n            'docutils>=0.10',\n            'rsa>=3.1.2,<=3.5.0',\n            's3transfer>=0.2.0,<0.3.0']\n\n\nif sys.version_info[:2] == (2, 6):\n    # For python2.6 we have to require argparse since it\n    # was not in stdlib until 2.7.\n    requires.append('argparse>=1.1')\n\n    # For Python 2.6, we have to require a different verion of PyYAML since the latest\n    # versions dropped support for Python 2.6.\n    requires.append('PyYAML>=3.10,<=3.13')\nelse:\n    requires.append('PyYAML>=3.10,<=5.1')\n\n\nsetup_options = dict(\n    name='awscli',\n    version=find_version(\"awscli\", \"__init__.py\"),\n    description='Universal Command Line Environment for AWS.',\n    long_description=read('README.rst'),\n    author='Amazon Web Services',\n    url='http://aws.amazon.com/cli/',\n    scripts=['bin/aws', 'bin/aws.cmd',\n             'bin/aws_completer', 'bin/aws_zsh_completer.sh',\n             'bin/aws_bash_completer'],\n    packages=find_packages(exclude=['tests*']),\n    package_data={'awscli': ['data/*.json', 'examples/*/*.rst',\n                             'examples/*/*/*.rst', 'topics/*.rst',\n                             'topics/*.json']},\n    install_requires=requires,\n    extras_require={\n        ':python_version==\"2.6\"': [\n            'argparse>=1.1',\n        ]\n    },\n    license=\"Apache License 2.0\",\n    classifiers=[\n        'Development Status :: 5 - Production/Stable',\n        'Intended Audience :: Developers',\n        'Intended Audience :: System Administrators',\n        'Natural Language :: English',\n        'License :: OSI Approved :: Apache Software License',\n        'Programming Language :: Python',\n        'Programming Language :: Python :: 2',\n        'Programming Language :: Python :: 2.6',\n        'Programming Language :: Python :: 2.7',\n        'Programming Language :: Python :: 3',\n        'Programming Language :: Python :: 3.3',\n        'Programming Language :: Python :: 3.4',\n        'Programming Language :: Python :: 3.5',\n        'Programming Language :: Python :: 3.6',\n        'Programming Language :: Python :: 3.7',\n    ],\n)\n\nif 'py2exe' in sys.argv:\n    # This will actually give us a py2exe command.\n    import py2exe\n    # And we have some py2exe specific options.\n    setup_options['options'] = {\n        'py2exe': {\n            'optimize': 0,\n            'skip_archive': True,\n            'dll_excludes': ['crypt32.dll'],\n            'packages': ['docutils', 'urllib', 'httplib', 'HTMLParser',\n                         'awscli', 'ConfigParser', 'xml.etree', 'pipes'],\n        }\n    }\n    setup_options['console'] = ['bin/aws']\n\n\nsetup(**setup_options)\n", "path": "setup.py"}], "after_files": [{"content": "#!/usr/bin/env python\nimport codecs\nimport os.path\nimport re\nimport sys\n\nfrom setuptools import setup, find_packages\n\n\nhere = os.path.abspath(os.path.dirname(__file__))\n\n\ndef read(*parts):\n    return codecs.open(os.path.join(here, *parts), 'r').read()\n\n\ndef find_version(*file_paths):\n    version_file = read(*file_paths)\n    version_match = re.search(r\"^__version__ = ['\\\"]([^'\\\"]*)['\\\"]\",\n                              version_file, re.M)\n    if version_match:\n        return version_match.group(1)\n    raise RuntimeError(\"Unable to find version string.\")\n\n\nrequires = ['botocore==1.12.187',\n            'colorama>=0.2.5,<=0.3.9',\n            'docutils>=0.10',\n            'rsa>=3.1.2,<=3.5.0',\n            's3transfer>=0.2.0,<0.3.0']\n\n\nif sys.version_info[:2] == (2, 6):\n    # For python2.6 we have to require argparse since it\n    # was not in stdlib until 2.7.\n    requires.append('argparse>=1.1')\n\n    # For Python 2.6, we have to require a different verion of PyYAML since the latest\n    # versions dropped support for Python 2.6.\n    requires.append('PyYAML>=3.10,<=3.13')\nelse:\n    requires.append('PyYAML>=3.10,<=5.1')\n\n\nsetup_options = dict(\n    name='awscli',\n    version=find_version(\"awscli\", \"__init__.py\"),\n    description='Universal Command Line Environment for AWS.',\n    long_description=read('README.rst'),\n    author='Amazon Web Services',\n    url='http://aws.amazon.com/cli/',\n    scripts=['bin/aws', 'bin/aws.cmd',\n             'bin/aws_completer', 'bin/aws_zsh_completer.sh',\n             'bin/aws_bash_completer'],\n    packages=find_packages(exclude=['tests*']),\n    package_data={'awscli': ['data/*.json', 'examples/*/*.rst',\n                             'examples/*/*.txt', 'examples/*/*/*.txt',\n                             'examples/*/*/*.rst', 'topics/*.rst',\n                             'topics/*.json']},\n    install_requires=requires,\n    extras_require={\n        ':python_version==\"2.6\"': [\n            'argparse>=1.1',\n        ]\n    },\n    license=\"Apache License 2.0\",\n    classifiers=[\n        'Development Status :: 5 - Production/Stable',\n        'Intended Audience :: Developers',\n        'Intended Audience :: System Administrators',\n        'Natural Language :: English',\n        'License :: OSI Approved :: Apache Software License',\n        'Programming Language :: Python',\n        'Programming Language :: Python :: 2',\n        'Programming Language :: Python :: 2.6',\n        'Programming Language :: Python :: 2.7',\n        'Programming Language :: Python :: 3',\n        'Programming Language :: Python :: 3.3',\n        'Programming Language :: Python :: 3.4',\n        'Programming Language :: Python :: 3.5',\n        'Programming Language :: Python :: 3.6',\n        'Programming Language :: Python :: 3.7',\n    ],\n)\n\nif 'py2exe' in sys.argv:\n    # This will actually give us a py2exe command.\n    import py2exe\n    # And we have some py2exe specific options.\n    setup_options['options'] = {\n        'py2exe': {\n            'optimize': 0,\n            'skip_archive': True,\n            'dll_excludes': ['crypt32.dll'],\n            'packages': ['docutils', 'urllib', 'httplib', 'HTMLParser',\n                         'awscli', 'ConfigParser', 'xml.etree', 'pipes'],\n        }\n    }\n    setup_options['console'] = ['bin/aws']\n\n\nsetup(**setup_options)\n", "path": "setup.py"}]}