libgit2 / pygit2

Python bindings for libgit2
https://www.pygit2.org/
Other
1.58k stars 382 forks source link

Shared Library Version Mismatch Issues with Wheel on Debian 11 #1133

Closed DaAwesomeP closed 2 years ago

DaAwesomeP commented 2 years ago

Hello!

I use Saltstack, which depends on pygit2 for Git operations. The pygit2 version in the Debian repos is very old and could not send a non-SHA1 key to GitHub, so I installed v1.9.0 via Pypi/pip instead.

However, this version did not work either. Possibly because the bundled shared libraries were built against libgit2 v1.4.0 instead of the libgit2 v1.1.0 found on Debian 11 (latest stable). Downgrading to v1.6.1 (which depends on libgit2 v1.1.0) resolved the issues.

So this leads to the following questions:

Thanks!

Related issue: https://github.com/saltstack/salt/issues/61790

jdavid commented 2 years ago

This:

  • Or is a complete libgit2 bundled and something else is going on?

In theory Debian stable has a version of pip new enough, so it's weird. I tried with Debian oldstable and it worked after updating pip, and tried with Ubuntu 20.04 and it worked out of the box. So try first to update pip. Installing the binary wheels may also fail if you're on a platform for which we don't provide binary wheels.