assafelovic / gpt-researcher

LLM based autonomous agent that conducts local and web research on any topic and generates a comprehensive report with citations.
https://gptr.dev
Apache License 2.0
14.97k stars 2k forks source link

Fail to load app #328

Closed maorkuriel closed 5 months ago

maorkuriel commented 10 months ago

After completing the requiremnt installation ( with Sudo ) app isnt loading

 ✘ ✝  Documents/Github/gpt-researcher   master  sudo pip install -r requirements.txt

Password:
WARNING: The directory '/Users/maor.kuriel/Library/Caches/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.
DEPRECATION: Loading egg at /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/commix-3.9.dev0-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/dnsgen-1.0.4-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/xnLinkFinder-4.1-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/ghauri-1.2.7-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/LinkFinder-1.0-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/urless-1.0-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/wafw00f-2.2.0-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/py_altdns-1.0.2-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/Interlace-1.9.8-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/cloud_enum-0.0.0-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/DNSValidator-0.1-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/cmseek-1.1.3-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/waymore-1.28-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
Requirement already satisfied: asyncio==3.4.3 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from -r requirements.txt (line 2)) (3.4.3)
Collecting beautifulsoup4==4.12.2 (from -r requirements.txt (line 3))
  Downloading beautifulsoup4-4.12.2-py3-none-any.whl (142 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 143.0/143.0 kB 929.3 kB/s eta 0:00:00
Requirement already satisfied: colorama==0.4.6 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from -r requirements.txt (line 4)) (0.4.6)
Collecting duckduckgo_search==4.1.1 (from -r requirements.txt (line 5))
  Downloading duckduckgo_search-4.1.1-py3-none-any.whl.metadata (19 kB)
Collecting md2pdf==1.0.1 (from -r requirements.txt (line 6))
  Downloading md2pdf-1.0.1.tar.gz (6.4 kB)
  Preparing metadata (setup.py) ... done
Collecting playwright==1.40.0 (from -r requirements.txt (line 7))
  Downloading playwright-1.40.0-py3-none-macosx_11_0_arm64.whl.metadata (3.6 kB)
Requirement already satisfied: openai~=1.6.1 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from -r requirements.txt (line 8)) (1.6.1)
Collecting python-dotenv~=1.0.0 (from -r requirements.txt (line 9))
  Downloading python_dotenv-1.0.0-py3-none-any.whl (19 kB)
Requirement already satisfied: pyyaml==6.0.1 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from -r requirements.txt (line 10)) (6.0.1)
Collecting selenium==4.15.2 (from -r requirements.txt (line 11))
  Downloading selenium-4.15.2-py3-none-any.whl.metadata (6.9 kB)
Collecting webdriver-manager==4.0.1 (from -r requirements.txt (line 12))
  Downloading webdriver_manager-4.0.1-py2.py3-none-any.whl.metadata (12 kB)
Collecting uvicorn==0.24.0.post1 (from -r requirements.txt (line 13))
  Downloading uvicorn-0.24.0.post1-py3-none-any.whl.metadata (6.4 kB)
Collecting pydantic==2.5.1 (from -r requirements.txt (line 14))
  Downloading pydantic-2.5.1-py3-none-any.whl.metadata (64 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 64.1/64.1 kB 994.3 kB/s eta 0:00:00
Collecting fastapi==0.104.1 (from -r requirements.txt (line 15))
  Downloading fastapi-0.104.1-py3-none-any.whl.metadata (24 kB)
Collecting python-multipart==0.0.6 (from -r requirements.txt (line 16))
  Downloading python_multipart-0.0.6-py3-none-any.whl (45 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 45.7/45.7 kB 1.5 MB/s eta 0:00:00
Collecting markdown==3.5.1 (from -r requirements.txt (line 17))
  Downloading Markdown-3.5.1-py3-none-any.whl.metadata (7.1 kB)
Collecting langchain==0.0.353 (from -r requirements.txt (line 18))
  Downloading langchain-0.0.353-py3-none-any.whl.metadata (13 kB)
Collecting tavily-python==0.2.8 (from -r requirements.txt (line 19))
  Downloading tavily_python-0.2.8-py3-none-any.whl.metadata (4.4 kB)
Collecting permchain==0.0.6 (from -r requirements.txt (line 20))
  Downloading permchain-0.0.6-py3-none-any.whl.metadata (5.7 kB)
Collecting arxiv==2.0.0 (from -r requirements.txt (line 21))
  Downloading arxiv-2.0.0-py3-none-any.whl.metadata (8.4 kB)
Collecting PyMuPDF==1.23.6 (from -r requirements.txt (line 22))
  Downloading PyMuPDF-1.23.6-cp312-none-macosx_11_0_arm64.whl.metadata (3.4 kB)
Collecting requests==2.31.0 (from -r requirements.txt (line 23))
  Downloading requests-2.31.0-py3-none-any.whl.metadata (4.6 kB)
Collecting jinja2==3.1.2 (from -r requirements.txt (line 24))
  Downloading Jinja2-3.1.2-py3-none-any.whl (133 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 133.1/133.1 kB 1.0 MB/s eta 0:00:00
Requirement already satisfied: soupsieve>1.2 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from beautifulsoup4==4.12.2->-r requirements.txt (line 3)) (2.5)
Collecting click>=8.1.7 (from duckduckgo_search==4.1.1->-r requirements.txt (line 5))
  Downloading click-8.1.7-py3-none-any.whl.metadata (3.0 kB)
Requirement already satisfied: lxml>=4.9.3 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from duckduckgo_search==4.1.1->-r requirements.txt (line 5)) (4.9.3)
Collecting curl-cffi>=0.5.10 (from duckduckgo_search==4.1.1->-r requirements.txt (line 5))
  Downloading curl_cffi-0.5.10-cp37-abi3-macosx_11_0_arm64.whl.metadata (7.9 kB)
Collecting WeasyPrint (from md2pdf==1.0.1->-r requirements.txt (line 6))
  Downloading weasyprint-60.2-py3-none-any.whl.metadata (3.7 kB)
Requirement already satisfied: docopt in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from md2pdf==1.0.1->-r requirements.txt (line 6)) (0.6.2)
Collecting markdown2 (from md2pdf==1.0.1->-r requirements.txt (line 6))
  Downloading markdown2-2.4.12-py2.py3-none-any.whl.metadata (2.0 kB)
Collecting greenlet==3.0.1 (from playwright==1.40.0->-r requirements.txt (line 7))
  Downloading greenlet-3.0.1-cp312-cp312-macosx_10_9_universal2.whl.metadata (3.7 kB)
Collecting pyee==11.0.1 (from playwright==1.40.0->-r requirements.txt (line 7))
  Downloading pyee-11.0.1-py3-none-any.whl.metadata (2.7 kB)
Requirement already satisfied: urllib3<3,>=1.26 in /Users/maor.kuriel/Library/Python/3.12/lib/python/site-packages (from urllib3[socks]<3,>=1.26->selenium==4.15.2->-r requirements.txt (line 11)) (2.0.7)
Collecting trio~=0.17 (from selenium==4.15.2->-r requirements.txt (line 11))
  Downloading trio-0.23.2-py3-none-any.whl.metadata (4.9 kB)
Collecting trio-websocket~=0.9 (from selenium==4.15.2->-r requirements.txt (line 11))
  Downloading trio_websocket-0.11.1-py3-none-any.whl.metadata (4.7 kB)
Requirement already satisfied: certifi>=2021.10.8 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from selenium==4.15.2->-r requirements.txt (line 11)) (2023.7.22)
Requirement already satisfied: packaging in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from webdriver-manager==4.0.1->-r requirements.txt (line 12)) (23.2)
Requirement already satisfied: h11>=0.8 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from uvicorn==0.24.0.post1->-r requirements.txt (line 13)) (0.14.0)
Requirement already satisfied: annotated-types>=0.4.0 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from pydantic==2.5.1->-r requirements.txt (line 14)) (0.6.0)
Collecting pydantic-core==2.14.3 (from pydantic==2.5.1->-r requirements.txt (line 14))
  Downloading pydantic_core-2.14.3-cp312-cp312-macosx_11_0_arm64.whl.metadata (6.5 kB)
Requirement already satisfied: typing-extensions>=4.6.1 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from pydantic==2.5.1->-r requirements.txt (line 14)) (4.9.0)
Collecting anyio<4.0.0,>=3.7.1 (from fastapi==0.104.1->-r requirements.txt (line 15))
  Downloading anyio-3.7.1-py3-none-any.whl.metadata (4.7 kB)
Collecting starlette<0.28.0,>=0.27.0 (from fastapi==0.104.1->-r requirements.txt (line 15))
  Downloading starlette-0.27.0-py3-none-any.whl.metadata (5.8 kB)
Requirement already satisfied: SQLAlchemy<3,>=1.4 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from langchain==0.0.353->-r requirements.txt (line 18)) (2.0.25)
Collecting aiohttp<4.0.0,>=3.8.3 (from langchain==0.0.353->-r requirements.txt (line 18))
  Downloading aiohttp-3.9.1-cp312-cp312-macosx_11_0_arm64.whl.metadata (7.4 kB)
Collecting dataclasses-json<0.7,>=0.5.7 (from langchain==0.0.353->-r requirements.txt (line 18))
  Downloading dataclasses_json-0.6.3-py3-none-any.whl.metadata (25 kB)
Collecting jsonpatch<2.0,>=1.33 (from langchain==0.0.353->-r requirements.txt (line 18))
  Downloading jsonpatch-1.33-py2.py3-none-any.whl.metadata (3.0 kB)
Collecting langchain-community<0.1,>=0.0.2 (from langchain==0.0.353->-r requirements.txt (line 18))
  Downloading langchain_community-0.0.10-py3-none-any.whl.metadata (7.3 kB)
Collecting langchain-core<0.2,>=0.1.4 (from langchain==0.0.353->-r requirements.txt (line 18))
  Downloading langchain_core-0.1.8-py3-none-any.whl.metadata (4.0 kB)
Collecting langsmith<0.1.0,>=0.0.70 (from langchain==0.0.353->-r requirements.txt (line 18))
  Downloading langsmith-0.0.77-py3-none-any.whl.metadata (10 kB)
Requirement already satisfied: numpy<2,>=1 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from langchain==0.0.353->-r requirements.txt (line 18)) (1.26.1)
Requirement already satisfied: tenacity<9.0.0,>=8.1.0 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from langchain==0.0.353->-r requirements.txt (line 18)) (8.2.3)
Collecting tiktoken==0.5.1 (from tavily-python==0.2.8->-r requirements.txt (line 19))
  Downloading tiktoken-0.5.1.tar.gz (32 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting feedparser==6.0.10 (from arxiv==2.0.0->-r requirements.txt (line 21))
  Downloading feedparser-6.0.10-py3-none-any.whl (81 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 81.1/81.1 kB 1.1 MB/s eta 0:00:00
Collecting PyMuPDFb==1.23.6 (from PyMuPDF==1.23.6->-r requirements.txt (line 22))
  Downloading PyMuPDFb-1.23.6-py3-none-macosx_11_0_arm64.whl.metadata (1.3 kB)
Requirement already satisfied: charset-normalizer<4,>=2 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from requests==2.31.0->-r requirements.txt (line 23)) (3.3.2)
Requirement already satisfied: idna<4,>=2.5 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from requests==2.31.0->-r requirements.txt (line 23)) (3.6)
Requirement already satisfied: MarkupSafe>=2.0 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from jinja2==3.1.2->-r requirements.txt (line 24)) (2.1.3)
Requirement already satisfied: sgmllib3k in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from feedparser==6.0.10->arxiv==2.0.0->-r requirements.txt (line 21)) (1.0.0)
Collecting regex>=2022.1.18 (from tiktoken==0.5.1->tavily-python==0.2.8->-r requirements.txt (line 19))
  Downloading regex-2023.12.25-cp312-cp312-macosx_11_0_arm64.whl.metadata (40 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 40.9/40.9 kB 1.6 MB/s eta 0:00:00
Requirement already satisfied: distro<2,>=1.7.0 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from openai~=1.6.1->-r requirements.txt (line 8)) (1.9.0)
Requirement already satisfied: httpx<1,>=0.23.0 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from openai~=1.6.1->-r requirements.txt (line 8)) (0.26.0)
Requirement already satisfied: sniffio in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from openai~=1.6.1->-r requirements.txt (line 8)) (1.3.0)
Requirement already satisfied: tqdm>4 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from openai~=1.6.1->-r requirements.txt (line 8)) (4.62.3)
Collecting attrs>=17.3.0 (from aiohttp<4.0.0,>=3.8.3->langchain==0.0.353->-r requirements.txt (line 18))
  Downloading attrs-23.2.0-py3-none-any.whl.metadata (9.5 kB)
Collecting multidict<7.0,>=4.5 (from aiohttp<4.0.0,>=3.8.3->langchain==0.0.353->-r requirements.txt (line 18))
  Downloading multidict-6.0.4.tar.gz (51 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 51.3/51.3 kB 1.7 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
Collecting yarl<2.0,>=1.0 (from aiohttp<4.0.0,>=3.8.3->langchain==0.0.353->-r requirements.txt (line 18))
  Downloading yarl-1.9.4-cp312-cp312-macosx_11_0_arm64.whl.metadata (31 kB)
Collecting frozenlist>=1.1.1 (from aiohttp<4.0.0,>=3.8.3->langchain==0.0.353->-r requirements.txt (line 18))
  Downloading frozenlist-1.4.1-cp312-cp312-macosx_11_0_arm64.whl.metadata (12 kB)
Collecting aiosignal>=1.1.2 (from aiohttp<4.0.0,>=3.8.3->langchain==0.0.353->-r requirements.txt (line 18))
  Downloading aiosignal-1.3.1-py3-none-any.whl (7.6 kB)
Requirement already satisfied: cffi>=1.12.0 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from curl-cffi>=0.5.10->duckduckgo_search==4.1.1->-r requirements.txt (line 5)) (1.16.0)
Collecting marshmallow<4.0.0,>=3.18.0 (from dataclasses-json<0.7,>=0.5.7->langchain==0.0.353->-r requirements.txt (line 18))
  Downloading marshmallow-3.20.1-py3-none-any.whl.metadata (7.8 kB)
Collecting typing-inspect<1,>=0.4.0 (from dataclasses-json<0.7,>=0.5.7->langchain==0.0.353->-r requirements.txt (line 18))
  Downloading typing_inspect-0.9.0-py3-none-any.whl.metadata (1.5 kB)
Requirement already satisfied: httpcore==1.* in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from httpx<1,>=0.23.0->openai~=1.6.1->-r requirements.txt (line 8)) (1.0.2)
Collecting jsonpointer>=1.9 (from jsonpatch<2.0,>=1.33->langchain==0.0.353->-r requirements.txt (line 18))
  Downloading jsonpointer-2.4-py2.py3-none-any.whl.metadata (2.5 kB)
Requirement already satisfied: sortedcontainers in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from trio~=0.17->selenium==4.15.2->-r requirements.txt (line 11)) (2.4.0)
Collecting outcome (from trio~=0.17->selenium==4.15.2->-r requirements.txt (line 11))
  Downloading outcome-1.3.0.post0-py2.py3-none-any.whl.metadata (2.6 kB)
Requirement already satisfied: wsproto>=0.14 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from trio-websocket~=0.9->selenium==4.15.2->-r requirements.txt (line 11)) (1.2.0)
Requirement already satisfied: pysocks!=1.5.7,<2.0,>=1.5.6 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from urllib3[socks]<3,>=1.26->selenium==4.15.2->-r requirements.txt (line 11)) (1.6.8)
Collecting pydyf>=0.8.0 (from WeasyPrint->md2pdf==1.0.1->-r requirements.txt (line 6))
  Downloading pydyf-0.8.0-py3-none-any.whl.metadata (2.6 kB)
Requirement already satisfied: html5lib>=1.1 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from WeasyPrint->md2pdf==1.0.1->-r requirements.txt (line 6)) (1.1)
Requirement already satisfied: tinycss2>=1.0.0 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from WeasyPrint->md2pdf==1.0.1->-r requirements.txt (line 6)) (1.2.1)
Collecting cssselect2>=0.1 (from WeasyPrint->md2pdf==1.0.1->-r requirements.txt (line 6))
  Downloading 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))
  Downloading pyphen-0.14.0-py3-none-any.whl (2.0 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.0/2.0 MB 329.8 kB/s eta 0:00:00
Requirement already satisfied: Pillow>=9.1.0 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from WeasyPrint->md2pdf==1.0.1->-r requirements.txt (line 6)) (10.1.0)
Requirement already satisfied: fonttools>=4.0.0 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from fonttools[woff]>=4.0.0->WeasyPrint->md2pdf==1.0.1->-r requirements.txt (line 6)) (4.44.0)
Requirement already satisfied: pycparser in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from cffi>=1.12.0->curl-cffi>=0.5.10->duckduckgo_search==4.1.1->-r requirements.txt (line 5)) (2.21)
Requirement already satisfied: webencodings in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from cssselect2>=0.1->WeasyPrint->md2pdf==1.0.1->-r requirements.txt (line 6)) (0.5.1)
Requirement already satisfied: zopfli>=0.1.4 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from fonttools[woff]>=4.0.0->WeasyPrint->md2pdf==1.0.1->-r requirements.txt (line 6)) (0.2.3)
Requirement already satisfied: brotli>=1.0.1 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from fonttools[woff]>=4.0.0->WeasyPrint->md2pdf==1.0.1->-r requirements.txt (line 6)) (1.1.0)
Requirement already satisfied: six>=1.9 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from html5lib>=1.1->WeasyPrint->md2pdf==1.0.1->-r requirements.txt (line 6)) (1.16.0)
Collecting mypy-extensions>=0.3.0 (from typing-inspect<1,>=0.4.0->dataclasses-json<0.7,>=0.5.7->langchain==0.0.353->-r requirements.txt (line 18))
  Downloading mypy_extensions-1.0.0-py3-none-any.whl (4.7 kB)
Downloading duckduckgo_search-4.1.1-py3-none-any.whl (26 kB)
Downloading playwright-1.40.0-py3-none-macosx_11_0_arm64.whl (32.5 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 32.5/32.5 MB 1.6 MB/s eta 0:00:00
Downloading selenium-4.15.2-py3-none-any.whl (10.2 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 10.2/10.2 MB 1.4 MB/s eta 0:00:00
Downloading webdriver_manager-4.0.1-py2.py3-none-any.whl (27 kB)
Downloading uvicorn-0.24.0.post1-py3-none-any.whl (59 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 59.7/59.7 kB 1.7 MB/s eta 0:00:00
Downloading pydantic-2.5.1-py3-none-any.whl (381 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 381.6/381.6 kB 1.4 MB/s eta 0:00:00
Downloading fastapi-0.104.1-py3-none-any.whl (92 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 92.9/92.9 kB 1.3 MB/s eta 0:00:00
Downloading Markdown-3.5.1-py3-none-any.whl (102 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 102.2/102.2 kB 1.3 MB/s eta 0:00:00
Downloading langchain-0.0.353-py3-none-any.whl (803 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 803.1/803.1 kB 1.5 MB/s eta 0:00:00
Downloading tavily_python-0.2.8-py3-none-any.whl (5.3 kB)
Downloading permchain-0.0.6-py3-none-any.whl (21 kB)
Downloading arxiv-2.0.0-py3-none-any.whl (11 kB)
Downloading PyMuPDF-1.23.6-cp312-none-macosx_11_0_arm64.whl (3.7 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.7/3.7 MB 1.7 MB/s eta 0:00:00
Downloading requests-2.31.0-py3-none-any.whl (62 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.6/62.6 kB 1.9 MB/s eta 0:00:00
Downloading greenlet-3.0.1-cp312-cp312-macosx_10_9_universal2.whl (263 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 264.0/264.0 kB 1.5 MB/s eta 0:00:00
Downloading pydantic_core-2.14.3-cp312-cp312-macosx_11_0_arm64.whl (1.7 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.7/1.7 MB 1.6 MB/s eta 0:00:00
Downloading pyee-11.0.1-py3-none-any.whl (15 kB)
Downloading PyMuPDFb-1.23.6-py3-none-macosx_11_0_arm64.whl (29.4 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 29.4/29.4 MB 1.1 MB/s eta 0:00:00
Downloading aiohttp-3.9.1-cp312-cp312-macosx_11_0_arm64.whl (388 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 388.9/388.9 kB 1.7 MB/s eta 0:00:00
Downloading anyio-3.7.1-py3-none-any.whl (80 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 80.9/80.9 kB 1.0 MB/s eta 0:00:00
Downloading click-8.1.7-py3-none-any.whl (97 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 97.9/97.9 kB 1.3 MB/s eta 0:00:00
Downloading curl_cffi-0.5.10-cp37-abi3-macosx_11_0_arm64.whl (2.2 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.2/2.2 MB 1.2 MB/s eta 0:00:00
Downloading dataclasses_json-0.6.3-py3-none-any.whl (28 kB)
Downloading jsonpatch-1.33-py2.py3-none-any.whl (12 kB)
Downloading langchain_community-0.0.10-py3-none-any.whl (1.5 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.5/1.5 MB 1.4 MB/s eta 0:00:00
Downloading langchain_core-0.1.8-py3-none-any.whl (215 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 215.5/215.5 kB 1.3 MB/s eta 0:00:00
Downloading langsmith-0.0.77-py3-none-any.whl (48 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 48.2/48.2 kB 2.5 MB/s eta 0:00:00
Downloading starlette-0.27.0-py3-none-any.whl (66 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 67.0/67.0 kB 2.4 MB/s eta 0:00:00
Downloading trio-0.23.2-py3-none-any.whl (461 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 461.6/461.6 kB 1.2 MB/s eta 0:00:00
Downloading trio_websocket-0.11.1-py3-none-any.whl (17 kB)
Downloading markdown2-2.4.12-py2.py3-none-any.whl (41 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 41.2/41.2 kB 321.0 kB/s eta 0:00:00
Downloading weasyprint-60.2-py3-none-any.whl (268 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 268.8/268.8 kB 1.6 MB/s eta 0:00:00
Downloading attrs-23.2.0-py3-none-any.whl (60 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 60.8/60.8 kB 2.3 MB/s eta 0:00:00
Downloading frozenlist-1.4.1-cp312-cp312-macosx_11_0_arm64.whl (51 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 51.9/51.9 kB 402.0 kB/s eta 0:00:00
Downloading jsonpointer-2.4-py2.py3-none-any.whl (7.8 kB)
Downloading marshmallow-3.20.1-py3-none-any.whl (49 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 49.4/49.4 kB 1.8 MB/s eta 0:00:00
Downloading pydyf-0.8.0-py3-none-any.whl (7.5 kB)
Downloading regex-2023.12.25-cp312-cp312-macosx_11_0_arm64.whl (292 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 292.2/292.2 kB 1.3 MB/s eta 0:00:00
Downloading typing_inspect-0.9.0-py3-none-any.whl (8.8 kB)
Downloading yarl-1.9.4-cp312-cp312-macosx_11_0_arm64.whl (79 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 79.4/79.4 kB 1.4 MB/s eta 0:00:00
Downloading outcome-1.3.0.post0-py2.py3-none-any.whl (10 kB)
Building wheels for collected packages: md2pdf, tiktoken, multidict
  Building wheel for md2pdf (setup.py) ... done
  Created wheel for md2pdf: filename=md2pdf-1.0.1-py2.py3-none-any.whl size=5998 sha256=559e0a89fa9df94c71f63a07234c8d197685f2f5b140d97e3a277536c8799c9d
  Stored in directory: /private/tmp/pip-ephem-wheel-cache-rhatbq6w/wheels/03/36/1b/0417a4d2ad93eb3d4e5a0370352b9605473efe40ad19109fc9
  Building wheel for tiktoken (pyproject.toml) ... done
  Created wheel for tiktoken: filename=tiktoken-0.5.1-cp312-cp312-macosx_14_0_universal2.whl size=948134 sha256=702acabf965783980d103b55026c71612b09ce6df0d2429880d29b40d248f6b3
  Stored in directory: /private/tmp/pip-ephem-wheel-cache-rhatbq6w/wheels/e7/7d/04/bf4aa1dcb54b90d78df91e45cb5f48f7d2ae11fc3486d56162
  Building wheel for multidict (pyproject.toml) ... done
  Created wheel for multidict: filename=multidict-6.0.4-cp312-cp312-macosx_10_9_universal2.whl size=48084 sha256=1f9dbd8f39302b39d85f1344eb96a2d06bd9fc5403107ec6231b4610c5ecabc1
  Stored in directory: /private/tmp/pip-ephem-wheel-cache-rhatbq6w/wheels/f6/d8/ff/3c14a64b8f2ab1aa94ba2888f5a988be6ab446ec5c8d1a82da
Successfully built md2pdf tiktoken multidict
Installing collected packages: requests, regex, python-multipart, python-dotenv, Pyphen, PyMuPDFb, pyee, pydyf, pydantic-core, mypy-extensions, multidict, marshmallow, markdown2, markdown, jsonpointer, jinja2, greenlet, frozenlist, feedparser, click, beautifulsoup4, attrs, anyio, yarl, webdriver-manager, uvicorn, typing-inspect, tiktoken, starlette, PyMuPDF, pydantic, playwright, outcome, jsonpatch, curl-cffi, cssselect2, arxiv, aiosignal, WeasyPrint, trio, tavily-python, langsmith, fastapi, duckduckgo_search, dataclasses-json, aiohttp, trio-websocket, md2pdf, langchain-core, selenium, langchain-community, langchain, permchain
  Attempting uninstall: requests
    Found existing installation: requests 2.20.0
    Uninstalling requests-2.20.0:
      Successfully uninstalled requests-2.20.0
  Attempting uninstall: pydantic-core
    Found existing installation: pydantic_core 2.14.6
    Uninstalling pydantic_core-2.14.6:
      Successfully uninstalled pydantic_core-2.14.6
  Attempting uninstall: click
    Found existing installation: Click 7.0
    Uninstalling Click-7.0:
      Successfully uninstalled Click-7.0
  Attempting uninstall: beautifulsoup4
    Found existing installation: beautifulsoup4 4.9.3
    Uninstalling beautifulsoup4-4.9.3:
      Successfully uninstalled beautifulsoup4-4.9.3
  Attempting uninstall: anyio
    Found existing installation: anyio 4.2.0
    Uninstalling anyio-4.2.0:
      Successfully uninstalled anyio-4.2.0
  Attempting uninstall: pydantic
    Found existing installation: pydantic 2.5.3
    Uninstalling pydantic-2.5.3:
      Successfully uninstalled pydantic-2.5.3
Successfully installed PyMuPDF-1.23.6 PyMuPDFb-1.23.6 Pyphen-0.14.0 WeasyPrint-60.2 aiohttp-3.9.1 aiosignal-1.3.1 anyio-3.7.1 arxiv-2.0.0 attrs-23.2.0 beautifulsoup4-4.12.2 click-8.1.7 cssselect2-0.7.0 curl-cffi-0.5.10 dataclasses-json-0.6.3 duckduckgo_search-4.1.1 fastapi-0.104.1 feedparser-6.0.10 frozenlist-1.4.1 greenlet-3.0.1 jinja2-3.1.2 jsonpatch-1.33 jsonpointer-2.4 langchain-0.0.353 langchain-community-0.0.10 langchain-core-0.1.8 langsmith-0.0.77 markdown-3.5.1 markdown2-2.4.12 marshmallow-3.20.1 md2pdf-1.0.1 multidict-6.0.4 mypy-extensions-1.0.0 outcome-1.3.0.post0 permchain-0.0.6 playwright-1.40.0 pydantic-2.5.1 pydantic-core-2.14.3 pydyf-0.8.0 pyee-11.0.1 python-dotenv-1.0.0 python-multipart-0.0.6 regex-2023.12.25 requests-2.31.0 selenium-4.15.2 starlette-0.27.0 tavily-python-0.2.8 tiktoken-0.5.1 trio-0.23.2 trio-websocket-0.11.1 typing-inspect-0.9.0 uvicorn-0.24.0.post1 webdriver-manager-4.0.1 yarl-1.9.4
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
 ✝  Documents/Github/gpt-researcher   master  export TAVILY_API_KEY={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}
 ✝  Documents/Github/gpt-researcher   master  export OPENAI_API_KEY={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}
 ✝  Documents/Github/gpt-researcher   master  uvicorn main:app --reload

INFO:     Will watch for changes in these directories: ['/Users/maor.kuriel/Documents/Github/gpt-researcher']
INFO:     Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
INFO:     Started reloader process [8043] using StatReload
Process SpawnProcess-1:
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/multiprocessing/process.py", line 314, in _bootstrap
    self.run()
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/uvicorn/_subprocess.py", line 76, in subprocess_started
    target(sockets=sockets)
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/uvicorn/server.py", line 61, in run
    return asyncio.run(self.serve(sockets=sockets))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/runners.py", line 194, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/base_events.py", line 664, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/uvicorn/server.py", line 68, in serve
    config.load()
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/uvicorn/config.py", line 467, in load
    self.loaded_app = import_from_string(self.app)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/uvicorn/importer.py", line 24, in import_from_string
    raise exc from None
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/uvicorn/importer.py", line 21, in import_from_string
    module = importlib.import_module(module_str)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1381, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1354, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1325, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 929, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 994, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/Users/maor.kuriel/Documents/Github/gpt-researcher/main.py", line 1, in <module>
    from backend.server import app
  File "/Users/maor.kuriel/Documents/Github/gpt-researcher/backend/server.py", line 8, in <module>
    from .utils import write_md_to_pdf
  File "/Users/maor.kuriel/Documents/Github/gpt-researcher/backend/utils.py", line 1, in <module>
    import aiofiles
ModuleNotFoundError: No module named 'aiofiles'
`^Z
[1]  + 8043 suspended  uvicorn main:app --reload

Screenshot 2024-01-08 at 11 41 33

assafelovic commented 10 months ago

Hey @maorkuriel after installing aiofiles does it resolve the issue?

maorkuriel commented 10 months ago

After installing aiofiles I am getting a new error on gobject-2.0-0

 ✝  Documents/Github/gpt-researcher   master  pip install aiofiles
DEPRECATION: Loading egg at /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/commix-3.9.dev0-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/dnsgen-1.0.4-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/xnLinkFinder-4.1-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/ghauri-1.2.7-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/LinkFinder-1.0-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/urless-1.0-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/wafw00f-2.2.0-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/py_altdns-1.0.2-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/Interlace-1.9.8-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/cloud_enum-0.0.0-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/DNSValidator-0.1-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/cmseek-1.1.3-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/waymore-1.28-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
Collecting aiofiles
  Downloading aiofiles-23.2.1-py3-none-any.whl.metadata (9.7 kB)
Downloading aiofiles-23.2.1-py3-none-any.whl (15 kB)
Installing collected packages: aiofiles
Successfully installed aiofiles-23.2.1
 ✝  Documents/Github/gpt-researcher   master  uvicorn main:app --reload

INFO:     Will watch for changes in these directories: ['/Users/maor.kuriel/Documents/Github/gpt-researcher']
INFO:     Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
INFO:     Started reloader process [2107] 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 "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/multiprocessing/process.py", line 314, in _bootstrap
    self.run()
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/uvicorn/_subprocess.py", line 76, in subprocess_started
    target(sockets=sockets)
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/uvicorn/server.py", line 61, in run
    return asyncio.run(self.serve(sockets=sockets))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/runners.py", line 194, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/base_events.py", line 664, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/uvicorn/server.py", line 68, in serve
    config.load()
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/uvicorn/config.py", line 467, in load
    self.loaded_app = import_from_string(self.app)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/uvicorn/importer.py", line 21, in import_from_string
    module = importlib.import_module(module_str)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1381, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1354, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1325, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 929, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 994, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/Users/maor.kuriel/Documents/Github/gpt-researcher/main.py", line 1, in <module>
    from backend.server import app
  File "/Users/maor.kuriel/Documents/Github/gpt-researcher/backend/server.py", line 8, in <module>
    from .utils import write_md_to_pdf
  File "/Users/maor.kuriel/Documents/Github/gpt-researcher/backend/utils.py", line 4, in <module>
    from md2pdf.core import md2pdf
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/md2pdf/__init__.py", line 7, in <module>
    from .core import md2pdf  # noqa
    ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/md2pdf/core.py", line 5, in <module>
    from weasyprint import HTML, CSS
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/weasyprint/__init__.py", line 387, in <module>
    from .css import preprocess_stylesheet  # noqa isort:skip
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/weasyprint/css/__init__.py", line 25, in <module>
    from . import computed_values, counters, media_queries
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/weasyprint/css/computed_values.py", line 11, in <module>
    from ..text.ffi import ffi, pango, units_to_double
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/weasyprint/text/ffi.py", line 428, in <module>
    gobject = _dlopen(
              ^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/weasyprint/text/ffi.py", line 417, in _dlopen
    return ffi.dlopen(names[0])  # pragma: no cover
           ^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/cffi/api.py", line 150, in dlopen
    lib, function_cache = _make_ffi_library(self, name, flags)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/cffi/api.py", line 832, in _make_ffi_library
    backendlib = _load_backend_lib(backend, libname, flags)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/cffi/api.py", line 827, in _load_backend_lib
    raise OSError(msg)
OSError: 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), '/usr/lib/gobject-2.0-0' (no such file, not in dyld cache), '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'

Trying to overcome this .. I will update you with the results

rsathyak commented 10 months ago

I am facing the same issue. Please let me know if you find any resolution.

phils-hub commented 10 months ago

➕ 1

Bubbalubagus commented 10 months ago

was this repo built on a linux operating system and are you using windows or vice versa?

I am also having this issue on Python 3.11.7, Windows 10, git 2.40.0.windows.1

And then I have the exact same issue following after force installing aiofiles.

rsathyak commented 10 months ago

Check this Issue for a resolution of this.

kfern commented 10 months ago

A temporal fix:

romazu commented 9 months ago

I've encountered an error related to gobject missing (on PyCharm, on macOS). The solution was to manually create a virtual environment (venv) using Python installed via Homebrew. Only after this step should you choose the project's interpreter.

$ which python3.12
-> /opt/homebrew/bin/python3.12

$ python3.12 -m venv .venv

Hope this helps.

kairoswealth commented 6 months ago
brew install glib 
brew install pango

Solved it for me

Connoropolous commented 5 months ago

which python3.12

After using python 3.12 to setup my venv, I had to also run the main command like this for it to work:

python3.12 -m  uvicorn main:app --reload 
assafelovic commented 5 months ago

Thanks @Connoropolous I updated the README file to include this.