gpt-researcher icon indicating copy to clipboard operation
gpt-researcher copied to clipboard

error gobject-2.0-0'

Open OumYacout opened this issue 1 year ago • 1 comments

any issue for this error ???

OSError: cannot load library 'gobject-2.0-0': dlopen(gobject-2.0-0, 0x0002): tried: 'gobject-2.0-0' (no such file), '/usr/lib/gobject-2.0-0' (no such file), '/Users/mac/Downloads/gpt-researcher-master/gobject-2.0-0' (no such file), '/usr/lib/gobject-2.0-0' (no such file). Additionally, ctypes.util.find_library() did not manage to locate a library called 'gobject-2.0-0'

OumYacout avatar Jul 12 '23 10:07 OumYacout

Solved by just correctly installing weasyprint. I use this comand : brew install weasyprint

OumYacout avatar Jul 12 '23 14:07 OumYacout

E:\git\gpt-researcher\venv\Scripts\python.exe -Xfrozen_modules=off E:\git\gpt-researcher\main.py

WeasyPrint could not import some external libraries. Please carefully follow the installation steps before reporting an issue: https://doc.courtbouillon.org/weasyprint/stable/first_steps.html#installation https://doc.courtbouillon.org/weasyprint/stable/first_steps.html#troubleshooting


E:\git\gpt-researcher\processing\text.py:19: UserWarning: md2pdf import failed: 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'

Yeah same problem on windows, need to install a crud ton of stuff by hand that I normally don't use to get it working.

Can you move to some other package?

TashaSkyUp avatar Jul 12 '23 19:07 TashaSkyUp

if anyone using conda, you should install use these commands conda install -c conda-forge weasyprint conda install -c "conda-forge/label/cf202003" weasyprint

sarkaramitabh300 avatar Jul 13 '23 05:07 sarkaramitabh300