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

KeyError executing tutorial example? #21

Closed
tallforasmurf opened this issue Apr 16, 2012 · 3 comments
Closed

KeyError executing tutorial example? #21

tallforasmurf opened this issue Apr 16, 2012 · 3 comments
Assignees
Labels
Milestone

Comments

@tallforasmurf
Copy link

Did easy_install on Mac OS 10.6 (python 2.6) and attempt to execute tutorial sequence:

>>> from github import Github
>>> gh = Github('tallforasmurf','<redacted>')
>>> au = gh.get_user()
>>> au.id
1137018
>>> r = au.get_repos()
Traceback (most recent call last):
  File "/Applications/WingIDE.app/Contents/MacOS/src/debug/tserver/_sandbox.py", line 1, in <module>
    # Used internally for debug sandbox under external interpreter
  File "/Library/Python/2.6/site-packages/PyGithub-0.5-    py2.6.egg/github/GithubObjects/GithubObject/GithubObject.py", line 77, in <lambda>
  File "/Library/Python/2.6/site-packages/PyGithub-0.5-py2.6.egg/github/GithubObjects/GithubObject/List.py", line 176, in __execute
  File "/Library/Python/2.6/site-packages/PyGithub-0.5-py2.6.egg/github/GithubObjects/GithubObject/TypePolicies.py", line 22, in createLazy
  File "/Library/Python/2.6/site-packages/PyGithub-0.5-py2.6.egg/github/GithubObjects/GithubObject/GithubObject.py", line 69, in __init__
  File "/Library/Python/2.6/site-packages/PyGithub-0.5-py2.6.egg/github/GithubObjects/GithubObject/GithubObject.py", line 87, in _updateAttributes
KeyError: u'permissions'

Same error on get_repo('name of existing repo')

@ghost ghost assigned jacquev6 Apr 17, 2012
@jacquev6
Copy link
Member

Thank you for reporting this. I'll publish a fix as soon as possible (tonight or tomorrow)

@jacquev6
Copy link
Member

Fixed in version 0.6. Please easy_install --upgrade pygithub

@tallforasmurf
Copy link
Author

yes fixed thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants