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

Error in converting Markdown to PDF

Open HeMuling opened this issue 8 months ago • 2 comments

Error in converting Markdown to PDF, after clicking download pdf, the local host page will reload and content will be cleared.

in terminal shows:

-----

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

-----

Error in converting Markdown to PDF: cannot load library 'gobject-2.0-0': dlopen(gobject-2.0-0, 0x0002): tried: 'gobject-2.0-0' (no such file), '/System/Volumes/Preboot/Cryptexes/OSgobject-2.0-0' (no such file), '/Users/he_muling/miniconda3/envs/researcher/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'
Report written to outputs/task_1717657875_latest results regarding cognitive neuroscie.docx

however, i have already installed glib using homebrew, check with pkg-config --cflags --libs gobject-2.0 return:

-I/opt/homebrew/Cellar/glib/2.80.2/include -I/opt/homebrew/Cellar/glib/2.80.2/include/glib-2.0 -I/opt/homebrew/Cellar/glib/2.80.2/lib/glib-2.0/include -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/Cellar/pcre2/10.43/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/ffi -L/opt/homebrew/Cellar/glib/2.80.2/lib -L/opt/homebrew/opt/gettext/lib -lgobject-2.0 -lglib-2.0 -lintl

i have followed https://doc.courtbouillon.org/weasyprint/stable/first_steps.html#installation instruction and install with homebrew, the issue persists

also, i noticed that copy button only copies the content while format of markdown is not included, e.g.:

  • lack of #
  • lack of url, nature not [nature](url)

system info:

  • using conda to manage env
  • running on: macos 14.5 (23F79)

HeMuling avatar Jun 06 '24 07:06 HeMuling