KeyError executing tutorial example?
tallforasmurf opened this issue · 3 comments
tallforasmurf commented
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')
jacquev6 commented
Thank you for reporting this. I'll publish a fix as soon as possible (tonight or tomorrow)
jacquev6 commented
Fixed in version 0.6. Please easy_install --upgrade pygithub
tallforasmurf commented
yes fixed thanks