Skip to content

Runtime failures delivered by multiple package managers #558

@ajnelson-nist

Description

@ajnelson-nist

Hello,

I was using Pygit2 as packaged by MacPorts successfully a week or three ago. I've been keeping my MacPorts tree up to date regularly. Today, I tried using Pygit2 again (port py34-pygit2), and I received an asynchronous error. The traceback started after I receive the prompt for the next command.

$ python3.4
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.54)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pygit2
>>> Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pygit2/__init__.py", line 35, in <module>
    from .blame import Blame, BlameHunk
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pygit2/blame.py", line 32, in <module>
    from .errors import check_error
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pygit2/errors.py", line 29, in <module>
    from .ffi import ffi, C
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pygit2/ffi.py", line 35, in <module>
    ffi, C = get_ffi()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pygit2/_utils.py", line 107, in get_ffi
    include_dirs=[libgit2_include], library_dirs=[libgit2_lib])
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/cffi/api.py", line 405, in verify
    lib = self.verifier.load_library()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/cffi/verifier.py", line 99, in load_library
    self._write_source()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/cffi/verifier.py", line 187, in _write_source
    with open(self.sourcefilename, "w") as fp:
PermissionError: [Errno 13] Permission denied: '/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pygit2/__pycache__/pygit2_cffi_a295dec8x2a59b7ee.c'

This issue looks similar to the build failure currently being experienced in the next Ubuntu's nightly builds. According to the Launchpad issue tracker, the upstream Debian issue has not been resolved yet.

It looks like this is related to a cffi update, according to Issue 534.

So it's clear: Pygit2 currently fails as packaged by three operating systems using two package management systems. It looks like at least one additional file needs to be built during the build scripts, but I'm not sure if that's the correct solution or a hack.

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