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

'PageIterator' object has no attribute 'result_keys' #442

Closed
gboudreau opened this issue Oct 25, 2013 · 4 comments · Fixed by boto/botocore#165
Closed

'PageIterator' object has no attribute 'result_keys' #442

gboudreau opened this issue Oct 25, 2013 · 4 comments · Fixed by boto/botocore#165
Assignees
Labels
bug This issue is a bug.

Comments

@gboudreau
Copy link

When I try to run any commands, apart from aws * help, I get this error:

'PageIterator' object has no attribute 'result_keys'

Example:

[~]$ aws cloudwatch describe-alarms
'PageIterator' object has no attribute 'result_keys'
[~]$ 

I installed aws-cli like this:

sudo yum install python-pip
sudo pip install awscli
mkdir ~/.aws && vi ~/.aws/config

Machine is CentOS 6: 2.6.32-279.9.1.el6.x86_64 GNU/Linux with Python 2.6.6.

@jamesls
Copy link
Member

jamesls commented Oct 25, 2013

What version of the CLI are you running? aws --version

Could you try running "sudo pip install --upgrade awscli" and see if that fixes the issue?

@gboudreau
Copy link
Author

[~]$ aws --version
aws-cli/1.2.1 Python/2.6.6 Linux/2.6.32-279.9.1.el6.x86_64
[~]$ sudo pip install --upgrade awscli
Requirement already up-to-date: awscli in /usr/lib/python2.6/site-packages
Requirement already up-to-date: botocore>=0.21.0,<0.22.0 in /usr/lib/python2.6/site-packages (from awscli)
Requirement already up-to-date: bcdoc>=0.10.0,<0.11.0 in /usr/lib/python2.6/site-packages (from awscli)
Requirement already up-to-date: six>=1.1.0 in /usr/lib/python2.6/site-packages (from awscli)
Requirement already up-to-date: colorama==0.2.5 in /usr/lib/python2.6/site-packages (from awscli)
Requirement already up-to-date: docutils>=0.10 in /usr/lib/python2.6/site-packages (from awscli)
Requirement already up-to-date: rsa==3.1.2 in /usr/lib/python2.6/site-packages (from awscli)
Requirement already up-to-date: argparse>=1.1 in /usr/lib/python2.6/site-packages (from awscli)
Requirement already up-to-date: requests==2.0.0 in /usr/lib/python2.6/site-packages (from botocore>=0.21.0,<0.22.0->awscli)
Requirement already up-to-date: jmespath==0.1.0 in /usr/lib/python2.6/site-packages (from botocore>=0.21.0,<0.22.0->awscli)
Requirement already up-to-date: python-dateutil>=2.1 in /usr/lib/python2.6/site-packages (from botocore>=0.21.0,<0.22.0->awscli)
Requirement already up-to-date: ordereddict==1.1 in /usr/lib/python2.6/site-packages (from botocore>=0.21.0,<0.22.0->awscli)
Requirement already up-to-date: simplejson==3.3.0 in /usr/lib64/python2.6/site-packages (from botocore>=0.21.0,<0.22.0->awscli)
Requirement already up-to-date: pyasn1>=0.1.3 in /usr/lib/python2.6/site-packages (from rsa==3.1.2->awscli)
Requirement already up-to-date: ply==3.4 in /usr/lib/python2.6/site-packages (from jmespath==0.1.0->botocore>=0.21.0,<0.22.0->awscli)
Cleaning up...

@jamesls
Copy link
Member

jamesls commented Oct 28, 2013

Ok, I see the issue, working on a fix now.

@ghost ghost assigned jamesls Oct 28, 2013
jamesls added a commit to jamesls/aws-cli that referenced this issue Oct 28, 2013
This is a test for aws#442, verifying we get the proper output
whenever we have a paginated response combined with text output.
@gboudreau
Copy link
Author

Thank you very much. Just let me know when I can test this fix on my server.

jamesls added a commit that referenced this issue Oct 28, 2013
* test-issue-442:
  Add unit/integ test for #442
jamesls added a commit that referenced this issue Oct 29, 2013
* release-1.2.2:
  Bumping version to 1.2.2
  Rename next release to 1.2.2
  Fix test failure by removing spec arg to Mock object
  Add links to release notes and CHANGELOG in README
  Add a CHANGELOG.rst
  Add test for #446
  Add unit/integ test for #442
  Fixed a bug in text formatting when an empty list is encountered.
  Add a test for listing local contents with unicode chars
  list_files() should yield in alphabetical order
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants