cannot load library 'pango-1.0': error 0x7e. Additionally, ctypes.util.find_library() did not manage to locate a library called 'pango-1.0'
See original GitHub issueBug 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
Issue Analytics
- State:
- Created 2 years ago
- Comments:32 (15 by maintainers)
Top Results From Across the Web
cannot load library 'pango-1.0': error 0x7e. Additionally, ctypes ...
util.find_library() did not manage to locate a library called 'pango-1.0' #1565.
Read more >ctypes.util.find_library() did not manage to locate a library ...
I got a similar error and after installing this solved the problem. sudo apt-get install -y libpangocairo-1.0-0.
Read more >[Solved]-ctypes.util.find_library() did not manage to locate a ...
Coding example for the question ctypes.util.find_library() did not manage to locate a library called 'pango-1.0-0' UBUNTU SERVER (EC2)-django.
Read more >16.16. ctypes — A foreign function library for Python
ctypes is a foreign function library for Python. It provides C compatible data types, and allows calling functions in DLLs or shared libraries....
Read more >Issue 44689: ctypes.util.find_library() does not find macOS 11 ...
The problem is that Big Sur moved system libraries into a big blob (which Apple calls the shared library cache). Ctypes uses an...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
#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.