FabriceSalvaire/CodeReview

Error installing on Debian Buster

Person-93 opened this issue · 0 comments

I tried installing it with pip. It didn't work.

$ pip3 install CodeReview
Collecting CodeReview
  Using cached CodeReview-1.0.0.tar.gz
Collecting PyQt5 (from CodeReview)
  Downloading PyQt5-5.10.1-5.10.1-cp35.cp36.cp37.cp38-abi3-manylinux1_x86_64.whl (107.8MB)
    100% |████████████████████████████████| 107.8MB 18kB/s 
Collecting PyYAML (from CodeReview)
Collecting Pygments (from CodeReview)
  Using cached Pygments-2.2.0-py2.py3-none-any.whl
Collecting pygit2 (from CodeReview)
  Downloading pygit2-0.26.3.tar.gz (462kB)
    100% |████████████████████████████████| 471kB 645kB/s 
Collecting sip<4.20,>=4.19.4 (from PyQt5->CodeReview)
  Downloading sip-4.19.8-cp36-cp36m-manylinux1_x86_64.whl (66kB)
    100% |████████████████████████████████| 71kB 1.1MB/s 
Collecting cffi (from pygit2->CodeReview)
  Downloading cffi-1.11.5-cp36-cp36m-manylinux1_x86_64.whl (421kB)
    100% |████████████████████████████████| 430kB 749kB/s 
Collecting six (from pygit2->CodeReview)
  Using cached six-1.11.0-py2.py3-none-any.whl
Collecting pycparser (from cffi->pygit2->CodeReview)
  Downloading pycparser-2.18.tar.gz (245kB)
    100% |████████████████████████████████| 256kB 696kB/s 
Building wheels for collected packages: CodeReview, pygit2, pycparser
  Running setup.py bdist_wheel for CodeReview ... done
  Stored in directory: /home/mtepfer/.cache/pip/wheels/26/59/66/c41828ef70f5ab8e809f87263a11c6bdf4fb5346cda12e44c2
  Running setup.py bdist_wheel for pygit2 ... error
  Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-q_xc1vuu/pygit2/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmp_kary_ohpip-wheel- --python-tag cp36:
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-3.6
  creating build/lib.linux-x86_64-3.6/pygit2
  copying pygit2/submodule.py -> build/lib.linux-x86_64-3.6/pygit2
  copying pygit2/index.py -> build/lib.linux-x86_64-3.6/pygit2
  copying pygit2/__init__.py -> build/lib.linux-x86_64-3.6/pygit2
  copying pygit2/ffi.py -> build/lib.linux-x86_64-3.6/pygit2
  copying pygit2/repository.py -> build/lib.linux-x86_64-3.6/pygit2
  copying pygit2/errors.py -> build/lib.linux-x86_64-3.6/pygit2
  copying pygit2/config.py -> build/lib.linux-x86_64-3.6/pygit2
  copying pygit2/settings.py -> build/lib.linux-x86_64-3.6/pygit2
  copying pygit2/_run.py -> build/lib.linux-x86_64-3.6/pygit2
  copying pygit2/refspec.py -> build/lib.linux-x86_64-3.6/pygit2
  copying pygit2/blame.py -> build/lib.linux-x86_64-3.6/pygit2
  copying pygit2/_build.py -> build/lib.linux-x86_64-3.6/pygit2
  copying pygit2/py2.py -> build/lib.linux-x86_64-3.6/pygit2
  copying pygit2/remote.py -> build/lib.linux-x86_64-3.6/pygit2
  copying pygit2/py3.py -> build/lib.linux-x86_64-3.6/pygit2
  copying pygit2/credentials.py -> build/lib.linux-x86_64-3.6/pygit2
  copying pygit2/utils.py -> build/lib.linux-x86_64-3.6/pygit2
  copying pygit2/decl.h -> build/lib.linux-x86_64-3.6/pygit2
  running build_ext
  generating cffi module 'build/temp.linux-x86_64-3.6/pygit2._libgit2.c'
  creating build/temp.linux-x86_64-3.6
  building '_pygit2' extension
  creating build/temp.linux-x86_64-3.6/src
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-AeCd7Q/python3.6-3.6.4=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/local/include -I/usr/include/python3.6m -c src/blob.c -o build/temp.linux-x86_64-3.6/src/blob.o
  In file included from src/blob.c:30:0:
  src/blob.h:33:10: fatal error: git2.h: No such file or directory
   #include <git2.h>
            ^~~~~~~~
  compilation terminated.
  error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
  
  ----------------------------------------
  Failed building wheel for pygit2
  Running setup.py clean for pygit2
  Running setup.py bdist_wheel for pycparser ... done
  Stored in directory: /home/mtepfer/.cache/pip/wheels/95/14/9a/5e7b9024459d2a6600aaa64e0ba485325aff7a9ac7489db1b6
Successfully built CodeReview pycparser
Failed to build pygit2
Installing collected packages: sip, PyQt5, PyYAML, Pygments, pycparser, cffi, six, pygit2, CodeReview
  Running setup.py install for pygit2 ... error
    Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-q_xc1vuu/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 /tmp/pip-z9x5nrxn-record/install-record.txt --single-version-externally-managed --compile --user --prefix=:
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.6
    creating build/lib.linux-x86_64-3.6/pygit2
    copying pygit2/submodule.py -> build/lib.linux-x86_64-3.6/pygit2
    copying pygit2/index.py -> build/lib.linux-x86_64-3.6/pygit2
    copying pygit2/__init__.py -> build/lib.linux-x86_64-3.6/pygit2
    copying pygit2/ffi.py -> build/lib.linux-x86_64-3.6/pygit2
    copying pygit2/repository.py -> build/lib.linux-x86_64-3.6/pygit2
    copying pygit2/errors.py -> build/lib.linux-x86_64-3.6/pygit2
    copying pygit2/config.py -> build/lib.linux-x86_64-3.6/pygit2
    copying pygit2/settings.py -> build/lib.linux-x86_64-3.6/pygit2
    copying pygit2/_run.py -> build/lib.linux-x86_64-3.6/pygit2
    copying pygit2/refspec.py -> build/lib.linux-x86_64-3.6/pygit2
    copying pygit2/blame.py -> build/lib.linux-x86_64-3.6/pygit2
    copying pygit2/_build.py -> build/lib.linux-x86_64-3.6/pygit2
    copying pygit2/py2.py -> build/lib.linux-x86_64-3.6/pygit2
    copying pygit2/remote.py -> build/lib.linux-x86_64-3.6/pygit2
    copying pygit2/py3.py -> build/lib.linux-x86_64-3.6/pygit2
    copying pygit2/credentials.py -> build/lib.linux-x86_64-3.6/pygit2
    copying pygit2/utils.py -> build/lib.linux-x86_64-3.6/pygit2
    copying pygit2/decl.h -> build/lib.linux-x86_64-3.6/pygit2
    running build_ext
    generating cffi module 'build/temp.linux-x86_64-3.6/pygit2._libgit2.c'
    creating build/temp.linux-x86_64-3.6
    building '_pygit2' extension
    creating build/temp.linux-x86_64-3.6/src
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-AeCd7Q/python3.6-3.6.4=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/local/include -I/usr/include/python3.6m -c src/blob.c -o build/temp.linux-x86_64-3.6/src/blob.o
    In file included from src/blob.c:30:0:
    src/blob.h:33:10: fatal error: git2.h: No such file or directory
     #include <git2.h>
              ^~~~~~~~
    compilation terminated.
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
    
    ----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-q_xc1vuu/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 /tmp/pip-z9x5nrxn-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-q_xc1vuu/pygit2/