Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Error in Window 11 Pro) OSError: cannot load library 'gobject-2.0-0': error 0x7e. #314

Open
datafyresearcher opened this issue Jan 1, 2024 · 8 comments

Comments

@datafyresearcher
Copy link

OSError: cannot load library 'gobject-2.0-0': error 0x7e. Additionally, ctypes.util.find_library() did not manage to locate a library called 'gobject-2.0-0'

OSError

@datafyresearcher
Copy link
Author

Any one have solution for this issue? Let me know about it.

@sadiuysal
Copy link

sadiuysal commented Jan 1, 2024

I encountered the same problem. I'm using Mac, M1

@sadiuysal
Copy link

I tried a couple of solutions and it seems the problem is related to some dependencies:
glib and pango

  • brew install glib
  • brew install pango
    (you need to check those commands for your OS)

resolved the issue for me.

@assafelovic
Copy link
Owner

Thanks for updating with resolution @sadiuysal !!

@aaaastark
Copy link
Contributor

OSError: cannot load library 'gobject-2.0-0': error 0x7e.


The error in Windows 11 Pro has been addressed through the information provided in the mentioned 'Issue.' Kindly follow the provided details to resolve the bugs.

@assafelovic @sadiuysal

@leafy1980
Copy link

sudo ln -s /opt/homebrew/opt/glib/lib/libgobject-2.0.0.dylib /usr/local/lib/gobject-2.0
sudo ln -s /opt/homebrew/opt/pango/lib/libpango-1.0.dylib /usr/local/lib/pango-1.0
sudo ln -s /opt/homebrew/opt/harfbuzz/lib/libharfbuzz.dylib /usr/local/lib/harfbuzz
sudo ln -s /opt/homebrew/opt/fontconfig/lib/libfontconfig.1.dylib /usr/local/lib/fontconfig-1
sudo ln -s /opt/homebrew/opt/pango/lib/libpangoft2-1.0.dylib /usr/local/lib/pangoft2-1.0

refer to https://stackoverflow.com/questions/63449770/oserror-cannot-load-library-gobject-2-0-error-0x7e

@NicoLiendro14
Copy link

OSError: cannot load library 'gobject-2.0-0': error 0x7e.

The error in Windows 11 Pro has been addressed through the information provided in the mentioned 'Issue.' Kindly follow the provided details to resolve the bugs.

* **Issue: OSError** - For Windows 11 Pro/Home users encountering the 'OSError: cannot load library 'gobject-2.0-0'' error, please refer to [this OSError GitHub issue](https://github.com/assafelovic/gpt-researcher/issues/314). To resolve this issue, install the `WeasyPrint` software on your local machine by using the [GTK for Windows Runtime Environment Installer](https://github.com/tschoonj/GTK-for-Windows-Runtime-Environment-Installer/releases/tag/2022-01-04).

@assafelovic @sadiuysal

This works for me in Windows 10 Pro!

@sshenoy7
Copy link

sshenoy7 commented May 7, 2024

sudo ln -s /opt/homebrew/opt/glib/lib/libgobject-2.0.0.dylib /usr/local/lib/gobject-2.0 sudo ln -s /opt/homebrew/opt/pango/lib/libpango-1.0.dylib /usr/local/lib/pango-1.0 sudo ln -s /opt/homebrew/opt/harfbuzz/lib/libharfbuzz.dylib /usr/local/lib/harfbuzz sudo ln -s /opt/homebrew/opt/fontconfig/lib/libfontconfig.1.dylib /usr/local/lib/fontconfig-1 sudo ln -s /opt/homebrew/opt/pango/lib/libpangoft2-1.0.dylib /usr/local/lib/pangoft2-1.0

refer to https://stackoverflow.com/questions/63449770/oserror-cannot-load-library-gobject-2-0-error-0x7e

@leafy1980 Thanks a lot buddy. This worked for me on Mac mini M1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants