Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1706753
Summary: | python3-PyMuPDF does not work (undefined symbol: hb_shape) | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | 張修銘 <cges30901> |
Component: | python-PyMuPDF | Assignee: | Scott Talbert <swt> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 30 | CC: | swt |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | python-PyMuPDF-1.14.14-2.fc30 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-05-15 01:35:20 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: | |
Embargoed: |
Thanks for the report. :) I'm also adding a simple test that at least makes sure the package can be imported so hopefully I'll avoid breaking this again in the future. python-PyMuPDF-1.14.14-2.fc30 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-39c634b5fe python-PyMuPDF-1.14.14-2.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-39c634b5fe Thank you! python3-PyMuPDF 1.14.14-2 no longer has the error and imports successfully. python-PyMuPDF-1.14.14-2.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report. |
Description of problem: In Fedora 30, python3-PyMuPDF does not work. In python3, when I type "import fitz", I get an error (see actual results). I think this is because harfbuzz is not linked (in "fix-library-linking.patch" in Fedora 29, harfbuzz is added to libraries. However, in Fedora 30, harfbuzz is no longer linked). Version-Release number of selected component (if applicable): 1.14.10-1 How reproducible: Always Steps to Reproduce: 1. Install python3-PyMuPDF with "dnf install python3-PyMuPDF" 2. In terminal, type "python3" to go to python interactive mode 3. Type "import fitz" Actual results: cges30901@localhost ~]$ python3 Python 3.7.3 (default, Mar 27 2019, 13:36:35) [GCC 9.0.1 20190227 (Red Hat 9.0.1-0.8)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import fitz Traceback (most recent call last): File "/usr/lib64/python3.7/site-packages/fitz/fitz.py", line 14, in swig_import_helper return importlib.import_module(mname) File "/usr/lib64/python3.7/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1006, in _gcd_import File "<frozen importlib._bootstrap>", line 983, in _find_and_load File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 670, in _load_unlocked File "<frozen importlib._bootstrap>", line 583, in module_from_spec File "<frozen importlib._bootstrap_external>", line 1043, in create_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed ImportError: /usr/lib64/python3.7/site-packages/fitz/_fitz.cpython-37m-x86_64-linux-gnu.so: undefined symbol: hb_shape During handling of the above exception, another exception occurred: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib64/python3.7/site-packages/fitz/__init__.py", line 2, in <module> from fitz.fitz import * File "/usr/lib64/python3.7/site-packages/fitz/fitz.py", line 17, in <module> _fitz = swig_import_helper() File "/usr/lib64/python3.7/site-packages/fitz/fitz.py", line 16, in swig_import_helper return importlib.import_module('_fitz') File "/usr/lib64/python3.7/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) ModuleNotFoundError: No module named '_fitz' Expected results: No error Additional info: