gpt-researcher
gpt-researcher copied to clipboard
(Error in Window 11 Pro) OSError: cannot load library 'gobject-2.0-0': error 0x7e.
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'
Any one have solution for this issue? Let me know about it.
I encountered the same problem. I'm using Mac, M1
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.
Thanks for updating with resolution @sadiuysal !!
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. To resolve this issue, install the
WeasyPrint
software on your local machine by using the GTK for Windows Runtime Environment Installer.
@assafelovic @sadiuysal
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
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!
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.
Fixed in recent versions.