[PKG-Openstack-devel] Bug#796657: python3-pygit2: Can't import pygit2 (PermissionError: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pygit2/__pycache__/pygit2_cffi_1b714a1x5470904.c')

Hans Joachim Desserud debian at desserud.org
Sun Aug 23 09:47:09 UTC 2015

Package: python3-pygit2
Version: 0.22.0-3
Severity: important

Dear Maintainer,

When attempting to import pygit2 in python3 (or python2), I get the 
following error message:

$ python3
Python 3.4.3+ (default, Jul 28 2015, 13:17:50)
[GCC 4.9.3] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pygit2
Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File "/usr/lib/python3/dist-packages/pygit2/__init__.py", line 35, in 
     from .blame import Blame, BlameHunk
   File "/usr/lib/python3/dist-packages/pygit2/blame.py", line 32, in 
     from .errors import check_error
   File "/usr/lib/python3/dist-packages/pygit2/errors.py", line 29, in 
     from .ffi import ffi, C
   File "/usr/lib/python3/dist-packages/pygit2/ffi.py", line 35, in 
     ffi, C = get_ffi()
   File "/usr/lib/python3/dist-packages/pygit2/_utils.py", line 101, in 
     include_dirs=[libgit2_include], library_dirs=[libgit2_lib])
   File "/usr/lib/python3/dist-packages/cffi/api.py", line 373, in verify
     lib = self.verifier.load_library()
   File "/usr/lib/python3/dist-packages/cffi/verifier.py", line 95, in 
   File "/usr/lib/python3/dist-packages/cffi/verifier.py", line 183, in 
     with open(self.sourcefilename, "w") as fp:
PermissionError: [Errno 13] Permission denied: 

This was believed fixed in 
but I am able to reproduce it here. I wasn't sure whether it was 
to reopen an archived bug, so I filed a new one.

-- System Information:
Debian Release: stretch/sid
   APT prefers unstable
   APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.1.0-2-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages python3-pygit2 depends on:
ii  dpkg          1.18.2
ii  libc6         2.19-19
ii  libgit2-22    0.22.2-2
ii  python3       3.4.3-4
ii  python3-cffi  1.1.2-1

python3-pygit2 recommends no packages.

Versions of packages python3-pygit2 suggests:
pn  python-pygit2-doc  <none>

-- no debconf information

mvh / best regards
Hans Joachim Desserud

More information about the Openstack-devel mailing list