-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
: TypeError: RawGitHubAPI._make_request() got an unexpected keyword argument 'extra_headers' #53
Comments
I was able to avoid this error by downgrading:
|
Thanks for the report! I'll keep it open until it's fixed by either restricting our direct runtime requirements or addressing the API change... P.S. Meanwhile, I recommend using something like |
Looks like this PR gidgethub/gidgethub#192 is at fault. It was merged on May 27, 2023, and released in v5.3.0 on May 30, 2023. We probably just need to handle the new arg with an optional support of no-arg for the older versions (or just bump the lower bound of the dependency). |
@webknjaz Not related to this specific error, but does octomachinery support an OOP approach like in the code example above, where the callbacks are methods of a class? I had also trouble getting this to run. |
Oh, I never thought about this case. Technically, you could make it work by decorating the methods on the initialized instance. Like I suppose it's worth filing a feature request separately. Though, I'd probably prioritize refactoring I have been having in mind for quite a while, before considering such features... |
Does this mean that a bot should better be implemented in a stateless, functional way? Are there any examples of complex bots implemented with octomachinery? |
|
This is related to #53 and should be reverted once fixed.
I released https://pypi.org/project/octomachinery/0.3.6.post0/ with a temporary version restriction for gidgethub. The next step will be to actually patch the method with the broken signature and revert that restriction. |
@webknjaz Thanks, then I can remove the restriction in https://github.com/trIAgelab/trIAge |
Hopefully, https://pypi.org/project/octomachinery/0.3.7/ should address the issue fully. |
I am trying out octomachinery with a simple bot implemented as a class:
Traceback
The text was updated successfully, but these errors were encountered: