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

gobject library not found in mac #455

Open
viswanath27 opened this issue Apr 27, 2024 · 8 comments
Open

gobject library not found in mac #455

viswanath27 opened this issue Apr 27, 2024 · 8 comments

Comments

@viswanath27
Copy link

OSError: cannot load library 'gobject-2.0-0': dlopen(gobject-2.0-0, 0x0002): tried: '/gobject-2.0-0' (no such file), '/opt/homebrew/bin/gobject-2.0-0' (no such file), 'gobject-2.0-0' (no such file), '/System/Volumes/Preboot/Cryptexes/OSgobject-2.0-0' (no such file), '/Users/viswanathbarenkala/anaconda3/envs/gptresearcher/bin/../lib/gobject-2.0-0' (no such file), '/usr/lib/gobject-2.0-0' (no such file, not in dyld cache), 'gobject-2.0-0' (no such file), '/usr/local/lib/gobject-2.0-0' (no such file), '/usr/lib/gobject-2.0-0' (no such file, not in dyld cache). Additionally, ctypes.util.find_library() did not manage to locate a library called 'gobject-2.0-0'

seem above is the issue in my mac.

I also have corrected the newspaper folder and file name as this is conflicting with the package name in python, post which this error is showing up

@lubuwei001
Copy link

Encountered the same issue on the M3 MacBook.
Refer to this method to solve the problem: #328 (comment)

@assafelovic
Copy link
Owner

Thanks @lubuwei001 for the reference! I'll keep this open for now so others can see it

@satishjasthi
Copy link
Contributor

satishjasthi commented May 9, 2024

Thanks @lubuwei001 for the reference! I'll keep this open for now so others can see it

Hi @assafelovic
Shall I update the installation section in documentation to inform Mac users to install following libraries before they start using the tool?

  • gobject-introspection
  • pango

This would resolve following issues
#328
#314 for windows

@kairoswealth
Copy link

kairoswealth commented May 13, 2024

brew install glib
brew install pango

Solved it for me

@assafelovic
Copy link
Owner

@satishjasthi
Copy link
Contributor

satishjasthi commented May 13, 2024

Ya sure
@assafelovic , I have updated troubleshooting documentation with these changes and submitted PR

@assafelovic
Copy link
Owner

Hey everyone, also updating that refined code to import problematic libraries so that it doesn't crash: 5f035b5

Lmk if this resolves for you

@vanetreg
Copy link

vanetreg commented May 19, 2024

Hey everyone, also updating that refined code to import problematic libraries so that it doesn't crash: 5f035b5

Lmk if this resolves for you

It fixed this issue for me both on Win 10 Pro and Replit
( BTW GPT-Researcher still doesn't work on Repit, so a template would be appreciated! :) )

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

6 participants