Microsoft Windows [Version 10.0.22621.1928] (c) Microsoft Corporation. All rights reserved. E:\AI\GPT Researcher>git clone https://github.com/assafelovic/gpt-researcher.git Cloning into 'gpt-researcher'... remote: Enumerating objects: 261, done. remote: Counting objects: 100% (20/20), done. remote: Compressing objects: 100% (17/17), done. Receiving objects: 91% (238/261)sed 3 (delta 3), pack-reused 241 Receiving objects: 100% (261/261), 1.20 MiB | 5.99 MiB/s, done. Resolving deltas: 100% (141/141), done. E:\AI\GPT Researcher>cd gpt-researcher E:\AI\GPT Researcher\gpt-researcher>pip install -r requirements.txt Collecting asyncio==3.4.3 (from -r requirements.txt (line 2)) Using cached asyncio-3.4.3-py3-none-any.whl (101 kB) Collecting beautifulsoup4==4.9.3 (from -r requirements.txt (line 3)) Using cached beautifulsoup4-4.9.3-py3-none-any.whl (115 kB) Collecting colorama==0.4.6 (from -r requirements.txt (line 4)) Using cached colorama-0.4.6-py2.py3-none-any.whl (25 kB) Collecting duckduckgo_search==3.0.2 (from -r requirements.txt (line 5)) Using cached duckduckgo_search-3.0.2-py3-none-any.whl (16 kB) Collecting md2pdf==1.0.1 (from -r requirements.txt (line 6)) Using cached md2pdf-1.0.1-py2.py3-none-any.whl Collecting openai~=0.27.0 (from -r requirements.txt (line 7)) Using cached openai-0.27.8-py3-none-any.whl (73 kB) Collecting playwright==1.35.0 (from -r requirements.txt (line 8)) Using cached playwright-1.35.0-py3-none-win_amd64.whl (29.1 MB) Collecting python-dotenv~=0.21.0 (from -r requirements.txt (line 9)) Using cached python_dotenv-0.21.1-py3-none-any.whl (19 kB) Collecting pyyaml==6.0 (from -r requirements.txt (line 10)) Using cached PyYAML-6.0-cp311-cp311-win_amd64.whl (143 kB) Collecting selenium==4.10.0 (from -r requirements.txt (line 11)) Using cached selenium-4.10.0-py3-none-any.whl (6.7 MB) Collecting webdriver-manager==3.8.6 (from -r requirements.txt (line 12)) Using cached webdriver_manager-3.8.6-py2.py3-none-any.whl (27 kB) Collecting flask (from -r requirements.txt (line 13)) Using cached Flask-2.3.2-py3-none-any.whl (96 kB) Collecting uvicorn (from -r requirements.txt (line 14)) Using cached uvicorn-0.22.0-py3-none-any.whl (58 kB) Collecting pydantic (from -r requirements.txt (line 15)) Using cached pydantic-2.0.2-py3-none-any.whl (359 kB) Collecting fastapi (from -r requirements.txt (line 16)) Using cached fastapi-0.100.0-py3-none-any.whl (65 kB) Collecting python-multipart (from -r requirements.txt (line 17)) Using cached python_multipart-0.0.6-py3-none-any.whl (45 kB) Collecting markdown (from -r requirements.txt (line 18)) Using cached Markdown-3.4.3-py3-none-any.whl (93 kB) Collecting soupsieve>1.2 (from beautifulsoup4==4.9.3->-r requirements.txt (line 3)) Using cached soupsieve-2.4.1-py3-none-any.whl (36 kB) Collecting click>=8.1.3 (from duckduckgo_search==3.0.2->-r requirements.txt (line 5)) Using cached click-8.1.4-py3-none-any.whl (98 kB) Collecting requests>=2.30.0 (from duckduckgo_search==3.0.2->-r requirements.txt (line 5)) Using cached requests-2.31.0-py3-none-any.whl (62 kB) Collecting docopt (from md2pdf==1.0.1->-r requirements.txt (line 6)) Using cached docopt-0.6.2.tar.gz (25 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Collecting WeasyPrint (from md2pdf==1.0.1->-r requirements.txt (line 6)) Using cached weasyprint-59.0-py3-none-any.whl (267 kB) Collecting markdown2 (from md2pdf==1.0.1->-r requirements.txt (line 6)) Using cached markdown2-2.4.9-py2.py3-none-any.whl (39 kB) Collecting greenlet==2.0.2 (from playwright==1.35.0->-r requirements.txt (line 8)) Using cached greenlet-2.0.2-cp311-cp311-win_amd64.whl (192 kB) Collecting pyee==9.0.4 (from playwright==1.35.0->-r requirements.txt (line 8)) Using cached pyee-9.0.4-py2.py3-none-any.whl (14 kB) Collecting urllib3[socks]<3,>=1.26 (from selenium==4.10.0->-r requirements.txt (line 11)) Using cached urllib3-2.0.3-py3-none-any.whl (123 kB) Collecting trio~=0.17 (from selenium==4.10.0->-r requirements.txt (line 11)) Using cached trio-0.22.1-py3-none-any.whl (399 kB) Collecting trio-websocket~=0.9 (from selenium==4.10.0->-r requirements.txt (line 11)) Using cached trio_websocket-0.10.3-py3-none-any.whl (17 kB) Collecting certifi>=2021.10.8 (from selenium==4.10.0->-r requirements.txt (line 11)) Using cached certifi-2023.5.7-py3-none-any.whl (156 kB) Collecting tqdm (from webdriver-manager==3.8.6->-r requirements.txt (line 12)) Using cached tqdm-4.65.0-py3-none-any.whl (77 kB) Collecting packaging (from webdriver-manager==3.8.6->-r requirements.txt (line 12)) Using cached packaging-23.1-py3-none-any.whl (48 kB) Collecting typing-extensions (from pyee==9.0.4->playwright==1.35.0->-r requirements.txt (line 8)) Using cached typing_extensions-4.7.1-py3-none-any.whl (33 kB) Collecting aiohttp (from openai~=0.27.0->-r requirements.txt (line 7)) Using cached aiohttp-3.8.4-cp311-cp311-win_amd64.whl (317 kB) Collecting Werkzeug>=2.3.3 (from flask->-r requirements.txt (line 13)) Using cached Werkzeug-2.3.6-py3-none-any.whl (242 kB) Collecting Jinja2>=3.1.2 (from flask->-r requirements.txt (line 13)) Using cached Jinja2-3.1.2-py3-none-any.whl (133 kB) Collecting itsdangerous>=2.1.2 (from flask->-r requirements.txt (line 13)) Using cached itsdangerous-2.1.2-py3-none-any.whl (15 kB) Collecting blinker>=1.6.2 (from flask->-r requirements.txt (line 13)) Using cached blinker-1.6.2-py3-none-any.whl (13 kB) Collecting h11>=0.8 (from uvicorn->-r requirements.txt (line 14)) Using cached h11-0.14.0-py3-none-any.whl (58 kB) Collecting annotated-types>=0.4.0 (from pydantic->-r requirements.txt (line 15)) Using cached annotated_types-0.5.0-py3-none-any.whl (11 kB) Collecting pydantic-core==2.1.2 (from pydantic->-r requirements.txt (line 15)) Using cached pydantic_core-2.1.2-cp311-none-win_amd64.whl (1.5 MB) Collecting starlette<0.28.0,>=0.27.0 (from fastapi->-r requirements.txt (line 16)) Using cached starlette-0.27.0-py3-none-any.whl (66 kB) Collecting MarkupSafe>=2.0 (from Jinja2>=3.1.2->flask->-r requirements.txt (line 13)) Using cached MarkupSafe-2.1.3-cp311-cp311-win_amd64.whl (17 kB) Collecting charset-normalizer<4,>=2 (from requests>=2.30.0->duckduckgo_search==3.0.2->-r requirements.txt (line 5)) Using cached charset_normalizer-3.2.0-cp311-cp311-win_amd64.whl (96 kB) Collecting idna<4,>=2.5 (from requests>=2.30.0->duckduckgo_search==3.0.2->-r requirements.txt (line 5)) Using cached idna-3.4-py3-none-any.whl (61 kB) Collecting anyio<5,>=3.4.0 (from starlette<0.28.0,>=0.27.0->fastapi->-r requirements.txt (line 16)) Using cached anyio-3.7.1-py3-none-any.whl (80 kB) Collecting attrs>=20.1.0 (from trio~=0.17->selenium==4.10.0->-r requirements.txt (line 11)) Using cached attrs-23.1.0-py3-none-any.whl (61 kB) Collecting sortedcontainers (from trio~=0.17->selenium==4.10.0->-r requirements.txt (line 11)) Using cached sortedcontainers-2.4.0-py2.py3-none-any.whl (29 kB) Collecting outcome (from trio~=0.17->selenium==4.10.0->-r requirements.txt (line 11)) Using cached outcome-1.2.0-py2.py3-none-any.whl (9.7 kB) Collecting sniffio (from trio~=0.17->selenium==4.10.0->-r requirements.txt (line 11)) Using cached sniffio-1.3.0-py3-none-any.whl (10 kB) Collecting cffi>=1.14 (from trio~=0.17->selenium==4.10.0->-r requirements.txt (line 11)) Using cached cffi-1.15.1-cp311-cp311-win_amd64.whl (179 kB) Collecting exceptiongroup (from trio-websocket~=0.9->selenium==4.10.0->-r requirements.txt (line 11)) Using cached exceptiongroup-1.1.2-py3-none-any.whl (14 kB) Collecting wsproto>=0.14 (from trio-websocket~=0.9->selenium==4.10.0->-r requirements.txt (line 11)) Using cached wsproto-1.2.0-py3-none-any.whl (24 kB) Collecting pysocks!=1.5.7,<2.0,>=1.5.6 (from urllib3[socks]<3,>=1.26->selenium==4.10.0->-r requirements.txt (line 11)) Using cached PySocks-1.7.1-py3-none-any.whl (16 kB) Collecting multidict<7.0,>=4.5 (from aiohttp->openai~=0.27.0->-r requirements.txt (line 7)) Using cached multidict-6.0.4-cp311-cp311-win_amd64.whl (28 kB) Collecting async-timeout<5.0,>=4.0.0a3 (from aiohttp->openai~=0.27.0->-r requirements.txt (line 7)) Using cached async_timeout-4.0.2-py3-none-any.whl (5.8 kB) Collecting yarl<2.0,>=1.0 (from aiohttp->openai~=0.27.0->-r requirements.txt (line 7)) Using cached yarl-1.9.2-cp311-cp311-win_amd64.whl (60 kB) Collecting frozenlist>=1.1.1 (from aiohttp->openai~=0.27.0->-r requirements.txt (line 7)) Using cached frozenlist-1.3.3-cp311-cp311-win_amd64.whl (32 kB) Collecting aiosignal>=1.1.2 (from aiohttp->openai~=0.27.0->-r requirements.txt (line 7)) Using cached aiosignal-1.3.1-py3-none-any.whl (7.6 kB) Collecting pydyf>=0.6.0 (from WeasyPrint->md2pdf==1.0.1->-r requirements.txt (line 6)) Using cached pydyf-0.7.0-py3-none-any.whl (7.5 kB) Collecting html5lib>=1.1 (from WeasyPrint->md2pdf==1.0.1->-r requirements.txt (line 6)) Using cached html5lib-1.1-py2.py3-none-any.whl (112 kB) Collecting tinycss2>=1.0.0 (from WeasyPrint->md2pdf==1.0.1->-r requirements.txt (line 6)) Using cached tinycss2-1.2.1-py3-none-any.whl (21 kB) Collecting cssselect2>=0.1 (from WeasyPrint->md2pdf==1.0.1->-r requirements.txt (line 6)) Using cached cssselect2-0.7.0-py3-none-any.whl (15 kB) Collecting Pyphen>=0.9.1 (from WeasyPrint->md2pdf==1.0.1->-r requirements.txt (line 6)) Using cached pyphen-0.14.0-py3-none-any.whl (2.0 MB) Collecting Pillow>=9.1.0 (from WeasyPrint->md2pdf==1.0.1->-r requirements.txt (line 6)) Using cached Pillow-10.0.0-cp311-cp311-win_amd64.whl (2.5 MB) Collecting fonttools[woff]>=4.0.0 (from WeasyPrint->md2pdf==1.0.1->-r requirements.txt (line 6)) Using cached fonttools-4.40.0-cp311-cp311-win_amd64.whl (1.9 MB) Collecting pycparser (from cffi>=1.14->trio~=0.17->selenium==4.10.0->-r requirements.txt (line 11)) Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB) Collecting webencodings (from cssselect2>=0.1->WeasyPrint->md2pdf==1.0.1->-r requirements.txt (line 6)) Using cached webencodings-0.5.1-py2.py3-none-any.whl (11 kB) Collecting zopfli>=0.1.4 (from fonttools[woff]>=4.0.0->WeasyPrint->md2pdf==1.0.1->-r requirements.txt (line 6)) Using cached zopfli-0.2.2-cp311-cp311-win_amd64.whl (97 kB) Collecting brotli>=1.0.1 (from fonttools[woff]>=4.0.0->WeasyPrint->md2pdf==1.0.1->-r requirements.txt (line 6)) Using cached Brotli-1.0.9-cp311-cp311-win_amd64.whl (333 kB) Collecting six>=1.9 (from html5lib>=1.1->WeasyPrint->md2pdf==1.0.1->-r requirements.txt (line 6)) Using cached six-1.16.0-py2.py3-none-any.whl (11 kB) Building wheels for collected packages: docopt Building wheel for docopt (pyproject.toml) ... done Created wheel for docopt: filename=docopt-0.6.2-py2.py3-none-any.whl size=13775 sha256=b91bbfa3ce05d8aac7043e299dea966433e1dd4725ed675cb24985158e57867c Stored in directory: c:\users\phila\appdata\local\pip\cache\wheels\1a\b0\8c\4b75c4116c31f83c8f9f047231251e13cc74481cca4a78a9ce Successfully built docopt Installing collected packages: webencodings, sortedcontainers, docopt, brotli, asyncio, zopfli, urllib3, typing-extensions, tinycss2, soupsieve, sniffio, six, pyyaml, python-multipart, python-dotenv, pysocks, Pyphen, pydyf, pycparser, Pillow, packaging, multidict, MarkupSafe, markdown2, markdown, itsdangerous, idna, h11, greenlet, frozenlist, fonttools, exceptiongroup, colorama, charset-normalizer, certifi, blinker, attrs, async-timeout, annotated-types, yarl, wsproto, Werkzeug, tqdm, requests, pyee, pydantic-core, outcome, Jinja2, html5lib, cssselect2, click, cffi, beautifulsoup4, anyio, aiosignal, webdriver-manager, WeasyPrint, uvicorn, trio, starlette, pydantic, playwright, flask, duckduckgo_search, aiohttp, trio-websocket, openai, md2pdf, fastapi, selenium Successfully installed Jinja2-3.1.2 MarkupSafe-2.1.3 Pillow-10.0.0 Pyphen-0.14.0 WeasyPrint-59.0 Werkzeug-2.3.6 aiohttp-3.8.4 aiosignal-1.3.1 annotated-types-0.5.0 anyio-3.7.1 async-timeout-4.0.2 asyncio-3.4.3 attrs-23.1.0 beautifulsoup4-4.9.3 blinker-1.6.2 brotli-1.0.9 certifi-2023.5.7 cffi-1.15.1 charset-normalizer-3.2.0 click-8.1.4 colorama-0.4.6 cssselect2-0.7.0 docopt-0.6.2 duckduckgo_search-3.0.2 exceptiongroup-1.1.2 fastapi-0.100.0 flask-2.3.2 fonttools-4.40.0 frozenlist-1.3.3 greenlet-2.0.2 h11-0.14.0 html5lib-1.1 idna-3.4 itsdangerous-2.1.2 markdown-3.4.3 markdown2-2.4.9 md2pdf-1.0.1 multidict-6.0.4 openai-0.27.8 outcome-1.2.0 packaging-23.1 playwright-1.35.0 pycparser-2.21 pydantic-2.0.2 pydantic-core-2.1.2 pydyf-0.7.0 pyee-9.0.4 pysocks-1.7.1 python-dotenv-0.21.1 python-multipart-0.0.6 pyyaml-6.0 requests-2.31.0 selenium-4.10.0 six-1.16.0 sniffio-1.3.0 sortedcontainers-2.4.0 soupsieve-2.4.1 starlette-0.27.0 tinycss2-1.2.1 tqdm-4.65.0 trio-0.22.1 trio-websocket-0.10.3 typing-extensions-4.7.1 urllib3-2.0.3 uvicorn-0.22.0 webdriver-manager-3.8.6 webencodings-0.5.1 wsproto-1.2.0 yarl-1.9.2 zopfli-0.2.2 E:\AI\GPT Researcher\gpt-researcher>uvicorn main:app --reload INFO: Will watch for changes in these directories: ['E:\\AI\\GPT Researcher\\gpt-researcher'] INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit) INFO: Started reloader process [20704] 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 "C:\Users\phila\AppData\Local\Programs\Python\Python311\Lib\multiprocessing\process.py", line 314, in _bootstrap self.run() File "C:\Users\phila\AppData\Local\Programs\Python\Python311\Lib\multiprocessing\process.py", line 108, in run self._target(*self._args, **self._kwargs) File "C:\Users\phila\AppData\Local\Programs\Python\Python311\Lib\site-packages\uvicorn\_subprocess.py", line 76, in subprocess_started target(sockets=sockets) File "C:\Users\phila\AppData\Local\Programs\Python\Python311\Lib\site-packages\uvicorn\server.py", line 61, in run return asyncio.run(self.serve(sockets=sockets)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\phila\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 190, in run return runner.run(main) ^^^^^^^^^^^^^^^^ File "C:\Users\phila\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 118, in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\phila\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 653, in run_until_complete return future.result() ^^^^^^^^^^^^^^^ File "C:\Users\phila\AppData\Local\Programs\Python\Python311\Lib\site-packages\uvicorn\server.py", line 68, in serve config.load() File "C:\Users\phila\AppData\Local\Programs\Python\Python311\Lib\site-packages\uvicorn\config.py", line 473, in load self.loaded_app = import_from_string(self.app) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\phila\AppData\Local\Programs\Python\Python311\Lib\site-packages\uvicorn\importer.py", line 21, in import_from_string module = importlib.import_module(module_str) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\phila\AppData\Local\Programs\Python\Python311\Lib\importlib\__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 1204, in _gcd_import File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "E:\AI\GPT Researcher\gpt-researcher\main.py", line 8, in from agent.run import WebSocketManager File "E:\AI\GPT Researcher\gpt-researcher\agent\run.py", line 7, in from agent.research_agent import ResearchAgent File "E:\AI\GPT Researcher\gpt-researcher\agent\research_agent.py", line 7, in from actions.web_scrape import async_browse File "E:\AI\GPT Researcher\gpt-researcher\actions\web_scrape.py", line 22, in import processing.text as summary File "E:\AI\GPT Researcher\gpt-researcher\processing\text.py", line 11, in from md2pdf.core import md2pdf File "C:\Users\phila\AppData\Local\Programs\Python\Python311\Lib\site-packages\md2pdf\__init__.py", line 7, in from .core import md2pdf # noqa ^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\phila\AppData\Local\Programs\Python\Python311\Lib\site-packages\md2pdf\core.py", line 5, in from weasyprint import HTML, CSS File "C:\Users\phila\AppData\Local\Programs\Python\Python311\Lib\site-packages\weasyprint\__init__.py", line 387, in from .css import preprocess_stylesheet # noqa isort:skip ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\phila\AppData\Local\Programs\Python\Python311\Lib\site-packages\weasyprint\css\__init__.py", line 25, in from . import computed_values, counters, media_queries File "C:\Users\phila\AppData\Local\Programs\Python\Python311\Lib\site-packages\weasyprint\css\computed_values.py", line 11, in from ..text.ffi import ffi, pango, units_to_double File "C:\Users\phila\AppData\Local\Programs\Python\Python311\Lib\site-packages\weasyprint\text\ffi.py", line 428, in gobject = _dlopen( ^^^^^^^^ File "C:\Users\phila\AppData\Local\Programs\Python\Python311\Lib\site-packages\weasyprint\text\ffi.py", line 417, in _dlopen return ffi.dlopen(names[0]) # pragma: no cover ^^^^^^^^^^^^^^^^^^^^ File "C:\Users\phila\AppData\Local\Programs\Python\Python311\Lib\site-packages\cffi\api.py", line 150, in dlopen lib, function_cache = _make_ffi_library(self, name, flags) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\phila\AppData\Local\Programs\Python\Python311\Lib\site-packages\cffi\api.py", line 832, in _make_ffi_library backendlib = _load_backend_lib(backend, libname, flags) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\phila\AppData\Local\Programs\Python\Python311\Lib\site-packages\cffi\api.py", line 827, in _load_backend_lib raise OSError(msg) 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'