assafelovic / gpt-researcher

LLM based autonomous agent that does online comprehensive research on any given topic
https://gptr.dev
Apache License 2.0
14.28k stars 1.86k forks source link

Cannot install openai~=1.3.3 and openai~=1.6.1 #326

Closed maorkuriel closed 9 months ago

maorkuriel commented 9 months ago

MacOS Sonoma 14.2.1 Apple M2 Pro

Cant install the requirements, getting an error

ERROR: Cannot install openai~=1.3.3 and openai~=1.6.1 because these package versions have conflicting dependencies.

Full log:


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

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 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.12.2 (from -r requirements.txt (line 3))
  Using cached beautifulsoup4-4.12.2-py3-none-any.whl (142 kB)
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))
  Using cached duckduckgo_search-4.1.1-py3-none-any.whl.metadata (19 kB)
Collecting md2pdf==1.0.1 (from -r requirements.txt (line 6))
  Using cached md2pdf-1.0.1.tar.gz (6.4 kB)
  Preparing metadata (setup.py) ... done
Collecting openai~=1.3.3 (from -r requirements.txt (line 7))
  Using cached openai-1.3.9-py3-none-any.whl.metadata (17 kB)
Collecting playwright==1.40.0 (from -r requirements.txt (line 8))
  Using cached playwright-1.40.0-py3-none-macosx_11_0_arm64.whl.metadata (3.6 kB)
ERROR: Cannot install openai~=1.3.3 and openai~=1.6.1 because these package versions have conflicting dependencies.

The conflict is caused by:
    The user requested openai~=1.3.3
    The user requested openai~=1.6.1

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

Same Issue with Docker image


✘ ✝  Documents/Github/gpt-researcher   master  docker-compose up

WARN[0000] The "TAVILY_API_KEY" variable is not set. Defaulting to a blank string.
[+] Running 1/1
 ! gpt-researcher Warning                                                  2.0s
[+] Building 53.7s (12/14)                                                                                                          docker:desktop-linux
 => [gpt-researcher internal] load .dockerignore                                                                                                    0.0s
 => => transferring context: 81B                                                                                                                    0.0s
 => [gpt-researcher internal] load build definition from Dockerfile                                                                                 0.0s
 => => transferring dockerfile: 1.04kB                                                                                                              0.0s
 => [gpt-researcher internal] load metadata for docker.io/library/python:3.11.4-slim-bullseye                                                       2.7s
 => [gpt-researcher auth] library/python:pull token for registry-1.docker.io                                                                        0.0s
 => [gpt-researcher install-browser 1/3] FROM docker.io/library/python:3.11.4-slim-bullseye@sha256:40319d0a897896e746edf877783ef39685d44e90e1e6de8  3.0s
 => => resolve docker.io/library/python:3.11.4-slim-bullseye@sha256:40319d0a897896e746edf877783ef39685d44e90e1e6de8d964d0382df0d4952                0.0s
 => => sha256:40589f858a36548f3a99431b7b0d983ba27e5350bd0a032910f956dc14bc77a3 1.06MB / 1.06MB                                                      0.4s
 => => sha256:ebfe57ae3ec3cd387f0f58f3246abacb367501246ba38834c134db2e117a9922 12.03MB / 12.03MB                                                    1.5s
 => => sha256:40319d0a897896e746edf877783ef39685d44e90e1e6de8d964d0382df0d4952 1.65kB / 1.65kB                                                      0.0s
 => => sha256:295605814c6beef84ee8d2bc80e42348ba4c4d0bb01425c6d5262c3849d3ba48 1.37kB / 1.37kB                                                      0.0s
 => => sha256:a52167001c4fe71875dd1c847ca252944583d73eec2fb93451a11b0024f5161e 6.94kB / 6.94kB                                                      0.0s
 => => sha256:41f92d5a73b9bee296c7b4a3817b28098b22fb60112608b42bb03570ca296115 30.06MB / 30.06MB                                                    1.5s
 => => sha256:0cffb447bcdc453d0e4f501f9b8a46080ccf47c1945e63b39801bdea23c38cdf 242B / 242B                                                          0.8s
 => => sha256:f09dc7ca5e15b356f3b324046a9fac4bba7214fd246ff86d6be85d380930cffa 3.38MB / 3.38MB                                                      1.4s
 => => extracting sha256:41f92d5a73b9bee296c7b4a3817b28098b22fb60112608b42bb03570ca296115                                                           0.9s
 => => extracting sha256:40589f858a36548f3a99431b7b0d983ba27e5350bd0a032910f956dc14bc77a3                                                           0.0s
 => => extracting sha256:ebfe57ae3ec3cd387f0f58f3246abacb367501246ba38834c134db2e117a9922                                                           0.3s
 => => extracting sha256:0cffb447bcdc453d0e4f501f9b8a46080ccf47c1945e63b39801bdea23c38cdf                                                           0.0s
 => => extracting sha256:f09dc7ca5e15b356f3b324046a9fac4bba7214fd246ff86d6be85d380930cffa                                                           0.2s
 => [gpt-researcher internal] load build context                                                                                                    0.1s
 => => transferring context: 2.91MB                                                                                                                 0.0s
 => [gpt-researcher install-browser 2/3] RUN apt-get update     && apt-get satisfy -y     "chromium, chromium-driver (>= 115.0)"     && chromium   32.4s
 => [gpt-researcher install-browser 3/3] RUN apt-get install -y firefox-esr wget     && wget https://github.com/mozilla/geckodriver/releases/down  10.4s
 => [gpt-researcher gpt-researcher-install 1/4] RUN mkdir /usr/src/app                                                                              0.1s
 => [gpt-researcher gpt-researcher-install 2/4] WORKDIR /usr/src/app                                                                                0.0s
 => [gpt-researcher gpt-researcher-install 3/4] COPY ./requirements.txt ./requirements.txt                                                          0.0s
 => ERROR [gpt-researcher gpt-researcher-install 4/4] RUN pip install -r requirements.txt                                                           5.0s
------
 > [gpt-researcher gpt-researcher-install 4/4] RUN pip install -r requirements.txt:
1.027 Collecting asyncio==3.4.3 (from -r requirements.txt (line 2))
1.365   Downloading asyncio-3.4.3-py3-none-any.whl (101 kB)
1.466      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 101.8/101.8 kB 973.0 kB/s eta 0:00:00
1.582 Collecting beautifulsoup4==4.12.2 (from -r requirements.txt (line 3))
1.660   Downloading beautifulsoup4-4.12.2-py3-none-any.whl (142 kB)
1.694      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 143.0/143.0 kB 4.7 MB/s eta 0:00:00
1.803 Collecting colorama==0.4.6 (from -r requirements.txt (line 4))
1.869   Downloading colorama-0.4.6-py2.py3-none-any.whl (25 kB)
1.999 Collecting duckduckgo_search==4.1.1 (from -r requirements.txt (line 5))
2.069   Downloading duckduckgo_search-4.1.1-py3-none-any.whl (26 kB)
2.159 Collecting md2pdf==1.0.1 (from -r requirements.txt (line 6))
2.228   Downloading md2pdf-1.0.1.tar.gz (6.4 kB)
2.247   Preparing metadata (setup.py): started
3.211   Preparing metadata (setup.py): finished with status 'done'
3.313 Collecting openai~=1.3.3 (from -r requirements.txt (line 7))
3.384   Downloading openai-1.3.9-py3-none-any.whl (221 kB)
3.414      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 221.4/221.4 kB 7.8 MB/s eta 0:00:00
3.570 Collecting playwright==1.40.0 (from -r requirements.txt (line 8))
3.641   Downloading playwright-1.40.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (37.0 MB)
4.715      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 37.0/37.0 MB 31.5 MB/s eta 0:00:00
4.739 ERROR: Cannot install openai~=1.3.3 and openai~=1.6.1 because these package versions have conflicting dependencies.
4.739
4.739 The conflict is caused by:
4.739     The user requested openai~=1.3.3
4.739     The user requested openai~=1.6.1
4.739
4.739 To fix this you could try to:
4.739 1. loosen the range of package versions you've specified
4.739 2. remove package versions to allow pip attempt to solve the dependency conflict
4.739
4.739 ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
4.984
4.984 [notice] A new release of pip is available: 23.1.2 -> 23.3.2
4.984 [notice] To update, run: pip install --upgrade pip
------
failed to solve: process "/bin/sh -c pip install -r requirements.txt" did not complete successfully: exit code: 1
assafelovic commented 9 months ago

@maorkuriel Thanks it is resolved now. Issue was caused due to PR bot