You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I upgraded github3.py from 0.9.6 to 1.3.0. After adjusting the names of iter_ functions, and a few other small changes, my program fails with a mysterious error:
Traceback (most recent call last):
File "/usr/local/virtualenvs/repo-tools/bin/tag_release", line 9, in <module>
load_entry_point('edx-repo-tools==0.1', 'console_scripts', 'tag_release')()
File "/usr/local/virtualenvs/repo-tools/lib/python2.7/site-packages/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/usr/local/virtualenvs/repo-tools/lib/python2.7/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/usr/local/virtualenvs/repo-tools/lib/python2.7/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/virtualenvs/repo-tools/lib/python2.7/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/src/edx/repo-tools/repo-tools/edx_repo_tools/auth.py", line 204, in wrapped
f(hub=hub, *args, **kwargs)
File "/src/edx/repo-tools/repo-tools/edx_repo_tools/release/tag_release.py", line 584, in main
existing_refs = get_ref_for_repos(repos, ref, use_tag=use_tag)
File "/src/edx/repo-tools/repo-tools/edx_repo_tools/release/tag_release.py", line 251, in get_ref_for_repos
ref_obj = repo.ref(ref)
File "/usr/local/virtualenvs/repo-tools/lib/python2.7/site-packages/github3/repos/repo.py", line 2444, in ref
json = self._json(self._get(url), 200)
File "/usr/local/virtualenvs/repo-tools/lib/python2.7/site-packages/github3/models.py", line 211, in _get
return self._request("get", url, **kwargs)
File "/usr/local/virtualenvs/repo-tools/lib/python2.7/site-packages/github3/models.py", line 196, in _request
return request_method(*args, **kwargs)
File "/usr/local/virtualenvs/repo-tools/lib/python2.7/site-packages/requests/sessions.py", line 546, in get
return self.request('GET', url, **kwargs)
File "/usr/local/virtualenvs/repo-tools/lib/python2.7/site-packages/github3/session.py", line 171, in request
kwargs.setdefault("timeout", self.timeout)
File "/usr/local/virtualenvs/repo-tools/lib/python2.7/site-packages/github3/session.py", line 121, in timeout
return (self.default_connect_timeout, self.default_read_timeout)
AttributeError: 'GitHubSession' object has no attribute 'default_connect_timeout'
I added print statements to track the ids of sessions in a few places: __init__ for GitHubSession and requests.Session, and in GitHubSession.request. It seems that the GitHubSession object exists, but never had __init__ run on it? I don't understand how that is possible.
I don't have a simple reproducer, though I will work at creating one. I'm hoping something about this will be more obvious to a github3.py developer. Maybe there's something about my code I haven't updated properly yet?
Version Information
Please provide:
The version of Python you're using: 2.7.14
The version of pip you used to install github3.py: 19.1.1
The version of github3.py, requests, uritemplate, and dateutil installed:
Full pip freeze:
Also, I wonder if this speaks to a need that I wasn't aware of - namely a need to copy+munge things by people safely without breaking gh3py's expectations.
I upgraded github3.py from 0.9.6 to 1.3.0. After adjusting the names of iter_ functions, and a few other small changes, my program fails with a mysterious error:
I added print statements to track the ids of sessions in a few places:
__init__
for GitHubSession and requests.Session, and in GitHubSession.request. It seems that the GitHubSession object exists, but never had__init__
run on it? I don't understand how that is possible.I don't have a simple reproducer, though I will work at creating one. I'm hoping something about this will be more obvious to a github3.py developer. Maybe there's something about my code I haven't updated properly yet?
Version Information
Please provide:
The version of Python you're using: 2.7.14
The version of pip you used to install github3.py: 19.1.1
The version of github3.py, requests, uritemplate, and dateutil installed:
Full pip freeze:
The text was updated successfully, but these errors were encountered: