pygit2 raises KeyError: 'the requested type does not match the type in the ODB' #1160
Replies: 7 comments 13 replies
-
| Is it possible that pygit2 0.28.2 would 'force' always, while pygit2 1.9.2 will only force by request? | 
Beta Was this translation helpful? Give feedback.
-
| If it's a regression, works with 0.28.2 but does not with 1.9.2, then try to identify in which version the regression appeared. | 
Beta Was this translation helpful? Give feedback.
-
| Hello again. I tried the following versions on CPython 3.10, with results as described: 
 pygit2 0.28.2 is the one we're using successfully on CPython 2.7, albeit with libgit2 0.99.0 - which feels strange to me. I only tried pygit2 0.28.2 with libgit2 0.28.5 on CPython 3.10. Any other suggestions? BTW, with the really old libgit's, I needed to download the source tarball, python setup.py build install, and: Thanks! | 
Beta Was this translation helpful? Give feedback.
-
| If I understand: 
 Correct? It's not possible to build pygit2 0.28 with libgit2 0.99 as there is a version check in  On the other hand, there is no binary wheel in 0.28 for Python 3.10, so probably you built it What OS are you using? | 
Beta Was this translation helpful? Give feedback.
-
| Okay, could you try 0.28.2 with Python 3.7 and Python 3.4, using the binary wheels? | 
Beta Was this translation helpful? Give feedback.
-
| It's to narrow the issue. | 
Beta Was this translation helpful? Give feedback.
-
| Maybe... right now I don't have any clue. The  Do you use a custom backend or is it a regular Git repository? | 
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello people.
I'm working on porting some cpython2.7 code to cpython3.10 - single codebase. I'm using pygit2 0.28.2 on cpython 2.7, and pygit2 1.9.2 on cpython3.10, at least for now.
I'm getting an error (-3) back from:
err = C.git_remote_push(self._remote, refspecs, opts)...and payload.check_error(err) is mapping that to:KeyError: 'the requested type does not match the type in the ODB'That error only surfaces on cpython3.10, not cpython2.7.
I'm afraid I don't know what to make of the error. I googled for around 45 minutes, and didn't find much.
Here's the full traceback:
Can anyone please give me a nudge in the right direction? What types is it complaining about?
Thanks!
PS: Does anyone know of a debugger that can singlestep from CPython into C extension modules?
Beta Was this translation helpful? Give feedback.
All reactions