| Summary: | Cannot import pygit2 (IOError, PermissionError) | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Miro Hrončok <mhroncok> |
| Component: | python-pygit2 | Assignee: | Pete Walter <walter.pete> |
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 23 | CC: | i, ignatenko, walter.pete |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-03-20 14:24:51 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
works here with: python3-pygit2-0.23.3-2.fc25.x86_64 *** This bug has been marked as a duplicate of bug 1311161 *** |
Description of problem: pygit2 is not importable on F23 Version-Release number of selected component (if applicable): python-pygit2-0.23.0-0.1.fc23.x86_64 python3-pygit2-0.23.0-0.1.fc23.x86_64 How reproducible: On freshly installed F23 as well as on an updated one form F20 -> F21 -> F22 -> F23 Steps to Reproduce: 0. install python{,3}-pygit2 1. run python or python3 2. import pygit2 3. observe Actual results: >>> import pygit2 Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib64/python2.7/site-packages/pygit2/__init__.py", line 35, in <module> from .blame import Blame, BlameHunk File "/usr/lib64/python2.7/site-packages/pygit2/blame.py", line 32, in <module> from .errors import check_error File "/usr/lib64/python2.7/site-packages/pygit2/errors.py", line 29, in <module> from .ffi import ffi, C File "/usr/lib64/python2.7/site-packages/pygit2/ffi.py", line 35, in <module> ffi, C = get_ffi() File "/usr/lib64/python2.7/site-packages/pygit2/_utils.py", line 107, in get_ffi include_dirs=[libgit2_include], library_dirs=[libgit2_lib]) File "/usr/lib64/python2.7/site-packages/cffi/api.py", line 424, in verify lib = self.verifier.load_library() File "/usr/lib64/python2.7/site-packages/cffi/verifier.py", line 109, in load_library self._write_source() File "/usr/lib64/python2.7/site-packages/cffi/verifier.py", line 198, in _write_source with open(self.sourcefilename, "w") as fp: IOError: [Errno 2] No such file or directory: '/usr/lib64/python2.7/site-packages/pygit2/__pycache__/pygit2_cffi_256143ebxe8494016.c' >>> import pygit2 Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib64/python3.4/site-packages/pygit2/__init__.py", line 35, in <module> from .blame import Blame, BlameHunk File "/usr/lib64/python3.4/site-packages/pygit2/blame.py", line 32, in <module> from .errors import check_error File "/usr/lib64/python3.4/site-packages/pygit2/errors.py", line 29, in <module> from .ffi import ffi, C File "/usr/lib64/python3.4/site-packages/pygit2/ffi.py", line 35, in <module> ffi, C = get_ffi() File "/usr/lib64/python3.4/site-packages/pygit2/_utils.py", line 107, in get_ffi include_dirs=[libgit2_include], library_dirs=[libgit2_lib]) File "/usr/lib64/python3.4/site-packages/cffi/api.py", line 424, in verify lib = self.verifier.load_library() File "/usr/lib64/python3.4/site-packages/cffi/verifier.py", line 109, in load_library self._write_source() File "/usr/lib64/python3.4/site-packages/cffi/verifier.py", line 198, in _write_source with open(self.sourcefilename, "w") as fp: PermissionError: [Errno 13] Permission denied: '/usr/lib64/python3.4/site-packages/pygit2/__pycache__/pygit2_cffi_6bc76ceexe8494016.c' Expected results: Should import and work as expected. Additional info: I was running pygit2 from repository of https://copr.fedorainfracloud.org/coprs/bochecha/ on F20 and it worked. Than I updated to F23, teh rpo is gone, I'm using pygit2 from Fedora and it is broken. I've tried on other machine with the same result.