On Wed, 25 Jan 2017 23:36:26 +0100
Igor Gnatenko <i.gnatenko.brain(a)gmail.com> wrote:
remote: Traceback (most recent call last):
remote: File "./hooks/post-receive-chained.d/post-receive-fedmsg",
line 10, in <module>
remote: import pygit2
remote: File
"/usr/lib64/python2.7/site-packages/pygit2/__init__.py", line 35, in
<module> remote: from .blame import Blame, BlameHunk
remote: File "/usr/lib64/python2.7/site-packages/pygit2/blame.py",
line 32, in <module>
remote: from .errors import check_error
remote: File "/usr/lib64/python2.7/site-packages/pygit2/errors.py",
line 29, in <module>
remote: from .ffi import ffi, C
remote: File "/usr/lib64/python2.7/site-packages/pygit2/ffi.py",
line 35, in <module>
remote: ffi, C = get_ffi()
remote: File "/usr/lib64/python2.7/site-packages/pygit2/_utils.py",
line 101, in get_ffi
remote: include_dirs=[libgit2_include],
library_dirs=[libgit2_lib]) remote: File
"/usr/lib64/python2.7/site-packages/cffi/api.py", line 450, in verify
remote: lib = self.verifier.load_library()
remote: File "/usr/lib64/python2.7/site-packages/cffi/verifier.py",
line 112, in load_library
remote: self._write_source()
remote: File "/usr/lib64/python2.7/site-packages/cffi/verifier.py",
line 201, in _write_source
remote: with open(self.sourcefilename, "w") as fp:
remote: IOError: [Errno 2] No such file or directory:
'/usr/lib64/python2.7/site-packages/pygit2/__pycache__/pygit2_cffi_c721781dxbf062fb5.c'
I'm guessing this is pkgs git? Or pagure? Or something else?
Some context might be nice. ;)
In any case I fixed both pagure and pkgs by downgrading python-cffi.
(which is a hassle because you also have to downgrade
python2-cryptography to python-cryptography which you can only do via
yum-shell or bare rpm).
I guess this is bug in pygit2 which is opened for very long time
(and
closed as wontfix by me):
https://bugzilla.redhat.com/show_bug.cgi?id=1311161
That bug is on EPEL7 and F24.. Where do we run this hook? If it's
F25/Rawhide I can investigate.
Both pagure and pkgs git are epel7.
I filed:
https://bugzilla.redhat.com/show_bug.cgi?id=1400668 about this
a while back.
kevin