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

OSError: cannot load library 'pango-1.0-0'

Open goggledefogger opened this issue 1 year ago • 6 comments

Hi, thanks for creating this project, I'm very interested in trying it. i followed the instructions to clone the repo and install the python packages, but then when trying to run the application I get an OSError: cannot load library 'pango-1.0-0' error. I searched the web for answers on that and found one link that said since I'm on a Mac to try brew install pango but that didn't fix it. I also tried switching to different versions of python but 3.10 and 3.11 didn't work when trying to install the python packages, I got through that with python 3.8.5

Any ideas on what would fix it on my M1 Mac? Thanks!

here are some relevant sections from the output:

macbook:gpt-researcher $ uvicorn main:app --reload INFO: Will watch for changes in these directories: ['...'] INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit) INFO: Started reloader process [16032] using StatReload


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


Process SpawnProcess-1: Traceback (most recent call last): File "python3.8/multiprocessing/process.py", line 315, in _bootstrap self.run() File "python3.8/multiprocessing/process.py", line 108, in run self._target(*self._args, **self._kwargs)

...

File "/.pyenv/versions/3.8.5/lib/python3.8/site-packages/uvicorn/config.py", line 473, in load self.loaded_app = import_from_string(self.app) File "/.pyenv/versions/3.8.5/lib/python3.8/site-packages/uvicorn/importer.py", line 21, in import_from_string module = importlib.import_module(module_str) File "/.pyenv/versions/3.8.5/lib/python3.8/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1014, in _gcd_import

...

File "/.pyenv/versions/3.8.5/lib/python3.8/site-packages/cffi/api.py", line 832, in _make_ffi_library backendlib = _load_backend_lib(backend, libname, flags) File "/.pyenv/versions/3.8.5/lib/python3.8/site-packages/cffi/api.py", line 827, in _load_backend_lib raise OSError(msg) OSError: cannot load library 'pango-1.0-0': dlopen(pango-1.0-0, 0x0002): tried: 'pango-1.0-0' (no such file), '/System/Volumes/Preboot/Cryptexes/OSpango-1.0-0' (no such file), '/usr/lib/pango-1.0-0' (no such file, not in dyld cache), 'pango-1.0-0' (no such file), '/usr/local/lib/pango-1.0-0' (no such file), '/usr/lib/pango-1.0-0' (no such file, not in dyld cache). Additionally, ctypes.util.find_library() did not manage to locate a library called 'pango-1.0-0'

goggledefogger avatar Jul 10 '23 21:07 goggledefogger