Skip to content

Fail to #include <git2.h> in virtualenv #441

Closed
@Graham42

Description

@Graham42

Install process works in a virtualenv but when I say import pygit2 I get a stack trace telling me it can't import git2.h

With python 3:

<path/to/my/virtualenv>/lib/python3.4/site-packages/pygit2-0.21.3-py3.4-linux-x86_64.egg/pygit2/__pycache__/_cffi__x4f8db466x390834cc.c:185:18: fatal error: git2.h: No such file or directory
 #include <git2.h>
                  ^
compilation terminated.
...

Same thing with python 2:

<path/to/my/virtualenv>/lib/python2.7/site-packages/pygit2-0.21.3-py2.7-linux-x86_64.egg/pygit2/__pycache__/_cffi__x245ec18bx390834cc.c:185:18: fatal error: git2.h: No such file or directory
 #include <git2.h>
                  ^
compilation terminated.
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions