install pygit2: fatal error: 'git2.h' file not found
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
Research direction
Start by reproducing sudo pip install git-deps in the reported macOS Python 2.7 environment and inspect the pygit2 build requirements around the missing git2.h header. Trace whether the project documents or controls this dependency; done means the installation succeeds or the required prerequisites and failure are clearly documented.
Written by the indexing model from the issue text.
Description
maybe this is not a git-explode issue, but still I've run into it:
sudo pip install git-deps
results in:
creating build/temp.macosx-10.11-x86_64-2.7
building '_pygit2' extension
creating build/temp.macosx-10.11-x86_64-2.7/src
clang -fno-strict-aliasing -fno-common -dynamic -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/include -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python@2/2.7.15/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/blob.c -o build/temp.macosx-10.11-x86_64-2.7/src/blob.o
In file included from src/blob.c:30:
src/blob.h:33:10: fatal error: 'git2.h' file not found
#include <git2.h>
^
1 error generated.
error: command 'clang' failed with exit status 1
----------------------------------------
Command "/usr/local/opt/python@2/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-install-u4aDlM/pygit2/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/tmp/pip-record-_osVGz/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-install-u4aDlM/pygit2/
- Dominant language
- Python
- Stars
- 60
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Getting set up
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from aspiers/git-explode
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
aspiers/git-explode#7 ·
-
Ignores --prefixOpen
Difficulty 3/5 1-2 days Newbie friendliness 45/100
aspiers/git-explode#8 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
aspiers/git-explode#6 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
aspiers/git-explode#4 ·
-
Needs decent test coverageMay be free again @aspiers claimed this 3056 days ago, and no pull request is open. Openhelp wanted
aspiers/git-explode#2 · 1 assignee ·
All issues in aspiers/git-explode
Similar issues
-
ACK_WAITING HELP_WANTED UPDATE_CS
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
OWASP/CheatSheetSeries#2458 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
BasedHardware/omi#19711 ·
Maintainers usually reply within 1 day
-
Qwen3_5MoeModel no longer returns router_logits, breaking aux loss with output_router_logits=TrueOpen
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
huggingface/transformers#49172 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
vllm-project/vllm-metal#885 ·
Maintainers usually reply within 1 day