AttributeError: module 'botocore.config' has no attribute 'load_config'
Closed this issue · 4 comments
karnauskas commented
$ python --version
Python 3.5.1
$ command -V python
python is hashed (/home/nkts/.pyenv/shims/python)
$ command -V pip
pip is hashed (/home/nkts/.pyenv/shims/pip)
$ pip install git+https://github.com/cfstacks/stacks.git
Collecting git+https://github.com/cfstacks/stacks.git
Cloning https://github.com/cfstacks/stacks.git to /tmp/pip-g8ul8jwe-build
Collecting configargparse>=0.9.3 (from stacks==0.3.2rc1)
Downloading ConfigArgParse-0.10.0.tar.gz
Collecting PyYAML>=3.11 (from stacks==0.3.2rc1)
Using cached PyYAML-3.11.tar.gz
Collecting Jinja2>=2.7.3 (from stacks==0.3.2rc1)
Using cached Jinja2-2.8-py2.py3-none-any.whl
Collecting boto>=2.38.0 (from stacks==0.3.2rc1)
Using cached boto-2.39.0-py2.py3-none-any.whl
Collecting botocore>=1.1.1 (from stacks==0.3.2rc1)
Downloading botocore-1.4.12-py2.py3-none-any.whl (2.3MB)
100% |████████████████████████████████| 2.3MB 179kB/s
Collecting tabulate>=0.7.5 (from stacks==0.3.2rc1)
Using cached tabulate-0.7.5.tar.gz
Requirement already satisfied (use --upgrade to upgrade): setuptools in ./.pyenv/versions/3.5.1/lib/python3.5/site-packages (from stacks==0.3.2rc1)
Collecting MarkupSafe (from Jinja2>=2.7.3->stacks==0.3.2rc1)
Using cached MarkupSafe-0.23.tar.gz
Collecting docutils>=0.10 (from botocore>=1.1.1->stacks==0.3.2rc1)
Using cached docutils-0.12-py3-none-any.whl
Collecting python-dateutil<3.0.0,>=2.1 (from botocore>=1.1.1->stacks==0.3.2rc1)
Using cached python_dateutil-2.5.2-py2.py3-none-any.whl
Collecting jmespath<1.0.0,>=0.7.1 (from botocore>=1.1.1->stacks==0.3.2rc1)
Using cached jmespath-0.9.0-py2.py3-none-any.whl
Collecting six>=1.5 (from python-dateutil<3.0.0,>=2.1->botocore>=1.1.1->stacks==0.3.2rc1)
Using cached six-1.10.0-py2.py3-none-any.whl
Installing collected packages: configargparse, PyYAML, MarkupSafe, Jinja2, boto, docutils, six, python-dateutil, jmespath, botocore, tabulate, stacks
Running setup.py install for configargparse ... done
Running setup.py install for PyYAML ... done
Running setup.py install for MarkupSafe ... done
Running setup.py install for tabulate ... done
Running setup.py install for stacks ... done
Successfully installed Jinja2-2.8 MarkupSafe-0.23 PyYAML-3.11 boto-2.39.0 botocore-1.4.12 configargparse-0.10.0 docutils-0.12 jmespath-0.9.0 python-dateutil-2.5.2 six-1.10.0 stacks-0.3.2rc1 tabulate-0.7.5
$ pip list
boto (2.39.0)
botocore (1.4.12)
ConfigArgParse (0.10.0)
docutils (0.12)
Jinja2 (2.8)
jmespath (0.9.0)
MarkupSafe (0.23)
pip (8.1.1)
python-dateutil (2.5.2)
PyYAML (3.11)
setuptools (18.2)
six (1.10.0)
stacks (0.3.2rc1)
tabulate (0.7.5)
$ stacks -p mano list
Traceback (most recent call last):
File "/home/nkts/.pyenv/versions/3.5.1/bin/stacks", line 9, in <module>
load_entry_point('stacks==0.3.2rc1', 'console_scripts', 'stacks')()
File "/home/nkts/.pyenv/versions/3.5.1/lib/python3.5/site-packages/stacks/main.py", line 74, in main
region = get_region_name(profile)
File "/home/nkts/.pyenv/versions/3.5.1/lib/python3.5/site-packages/stacks/config.py", line 77, in get_region_name
c = botocore.config.load_config(AWS_CONFIG_FILE)
AttributeError: module 'botocore.config' has no attribute 'load_config'