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 - python3-PyMuPDF does not work (undefined symbol: hb_shape)
Summary: python3-PyMuPDF does not work (undefined symbol: hb_shape)
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-PyMuPDF
Version: 30
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Scott Talbert
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-05-06 08:57 UTC by 張修銘
Modified: 2019-05-15 01:35 UTC (History)
1 user (show)

Fixed In Version: python-PyMuPDF-1.14.14-2.fc30
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-05-15 01:35:20 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description 張修銘 2019-05-06 08:57:39 UTC
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:

Comment 1 Scott Talbert 2019-05-07 02:03:28 UTC
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.

Comment 2 Fedora Update System 2019-05-07 02:05:31 UTC
python-PyMuPDF-1.14.14-2.fc30 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-39c634b5fe

Comment 3 Fedora Update System 2019-05-07 15:28:27 UTC
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

Comment 4 張修銘 2019-05-08 14:36:55 UTC
Thank you! python3-PyMuPDF 1.14.14-2 no longer has the error and imports successfully.

Comment 5 Fedora Update System 2019-05-15 01:35:20 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.