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 issue

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

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:32 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
felixdittrich92commented, Sep 12, 2022

#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

1reaction
nithinreddyycommented, Mar 20, 2022

Thanks for reporting that @rishabhshah13 🙏 @nithinreddyy this might be worth a try perhaps?

It’s returning the same error.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found