doctr: cannot load library 'pango-1.0': error 0x7e. Additionally, ctypes.util.find_library() did not manage to locate a library called 'pango-1.0'
Bug description
I installed the library and the GTK project, but it’s still throwing an error like
cannot load library ‘pango-1.0’: error 0x7e. Additionally, ctypes.util.find_library() did not manage to locate a library called ‘pango-1.0’
Can anyone let me know the solution?
I’m using python 3.7.x version
Code snippet to reproduce the bug
from doctr.models import ocr_predictor
Error traceback
~\AppData\Roaming\Python\Python37\site-packages\cffi\api.py in _make_ffi_library(ffi, libname, flags)
830 def _make_ffi_library(ffi, libname, flags):
831 backend = ffi._backend
--> 832 backendlib = _load_backend_lib(backend, libname, flags)
833 #
834 def accessor_function(name):
~\AppData\Roaming\Python\Python37\site-packages\cffi\api.py in _load_backend_lib(backend, name, flags)
825 if first_error is not None:
826 msg = "%s. Additionally, %s" % (first_error, msg)
--> 827 raise OSError(msg)
828 return backend.load_library(path, flags)
829
OSError: cannot load library 'pango-1.0': error 0x7e. Additionally, ctypes.util.find_library() did not manage to locate a library called 'pango-1.0'
Environment
I installed the library and when trying to run the code, it’s throwing an error
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 33 (13 by maintainers)
#1031 removes the upper limit for weasyprint (where cairo is no dependency /pango version upgrade and has much more tests for Windows and MacOS) which should fix the issue
It’s returning the same error.