Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@ekristen
Created October 20, 2014 16:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ekristen/92b8c0f50733677e026f to your computer and use it in GitHub Desktop.
Save ekristen/92b8c0f50733677e026f to your computer and use it in GitHub Desktop.
sudo pip install pygit2==0.20.3
Downloading/unpacking pygit2==0.20.3
Downloading pygit2-0.20.3.tar.gz (146kB): 146kB downloaded
Running setup.py (path:/tmp/pip_build_root/pygit2/setup.py) egg_info for package pygit2
Installing collected packages: pygit2
Running setup.py install for pygit2
building '_pygit2' extension
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/local/include -Iinclude -I/usr/include/python2.7 -c src/tree.c -o build/temp.linux-x86_64-2.7/src/tree.o
In file included from src/utils.h:34:0,
from src/tree.c:32:
src/types.h:83:5: error: unknown type name ‘git_config_iterator’
git_config_iterator *iter;
^
In file included from /usr/include/python2.7/Python.h:80:0,
from src/tree.c:29:
/usr/include/python2.7/object.h:81:12: error: unknown type name ‘git_diff’
struct _typeobject *ob_type;
^
src/types.h:57:13: note: in expansion of macro ‘PyObject_HEAD’
PyObject_HEAD\
^
src/types.h:103:1: note: in expansion of macro ‘SIMPLE_TYPE’
SIMPLE_TYPE(Diff, git_diff, list)
^
/usr/include/python2.7/object.h:81:12: error: unknown type name ‘git_blame’
struct _typeobject *ob_type;
^
src/types.h:57:13: note: in expansion of macro ‘PyObject_HEAD’
PyObject_HEAD\
^
src/types.h:230:1: note: in expansion of macro ‘SIMPLE_TYPE’
SIMPLE_TYPE(Blame, git_blame, blame)
^
In file included from src/utils.h:34:0,
from src/tree.c:32:
src/types.h:255:5: error: unknown type name ‘git_merge_result’
git_merge_result *result;
^
In file included from src/tree.c:36:0:
src/diff.h:44:21: error: unknown type name ‘git_diff’
PyObject* wrap_diff(git_diff *diff, Repository *repo);
^
src/diff.h:45:22: error: unknown type name ‘git_patch’
PyObject* wrap_patch(git_patch *patch);
src/tree.c: In function ‘Tree_diff_to_index’:
src/tree.c:397:5: error: unknown type name ‘git_diff’
git_diff *diff;
^
src/tree.c:410:34: warning: passing argument 1 of ‘git_diff_tree_to_index’ from incompatible pointer type [enabled by default]
py_idx->index, &opts);
^
In file included from /usr/include/git2/checkout.h:12:0,
from /usr/include/git2/merge.h:13,
from /usr/include/git2.h:25,
from src/error.h:33,
from src/tree.c:31:
/usr/include/git2/diff.h:570:17: note: expected ‘struct git_diff_list **’ but argument is of type ‘int **’
GIT_EXTERN(int) git_diff_tree_to_index(
^
src/tree.c:414:5: warning: return makes pointer from integer without a cast [enabled by default]
return wrap_diff(diff, py_repo);
^
src/tree.c: In function ‘Tree_diff_to_tree’:
src/tree.c:442:5: error: unknown type name ‘git_diff’
git_diff *diff;
^
src/tree.c:466:5: warning: passing argument 1 of ‘git_diff_tree_to_tree’ from incompatible pointer type [enabled by default]
err = git_diff_tree_to_tree(&diff, py_repo->repo, from, to, &opts);
^
In file included from /usr/include/git2/checkout.h:12:0,
from /usr/include/git2/merge.h:13,
from /usr/include/git2.h:25,
from src/error.h:33,
from src/tree.c:31:
/usr/include/git2/diff.h:548:17: note: expected ‘struct git_diff_list **’ but argument is of type ‘int **’
GIT_EXTERN(int) git_diff_tree_to_tree(
^
src/tree.c:470:5: warning: return makes pointer from integer without a cast [enabled by default]
return wrap_diff(diff, py_repo);
^
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_root/pygit2/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-4syGyl-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_root/pygit2
Traceback (most recent call last):
File "/usr/bin/pip", line 9, in <module>
load_entry_point('pip==1.5.4', 'console_scripts', 'pip')()
File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 185, in main
return command.main(cmd_args)
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 161, in main
text = '\n'.join(complete_log)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 47: ordinal not in range(128)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment