danswer-ai / danswer

Gen-AI Chat for Teams - Think ChatGPT if it had access to your team's unique knowledge.
https://docs.danswer.dev/
Other
10.19k stars 1.2k forks source link

Python 3.12 conflict with backend requirements #734

Closed gokturkDev closed 8 months ago

gokturkDev commented 9 months ago

Hello, I tried installing the requirements for the backend in a venv with python 3.12 installed. I got the following error

(.venv) C:\Users\gokturkdev\Desktop\dir\dev-danswer-backend\backend>pip install -r requirements/default.txt
Collecting alembic==1.10.4 (from -r requirements/default.txt (line 1))
  Using cached alembic-1.10.4-py3-none-any.whl (212 kB)
Collecting asyncpg==0.27.0 (from -r requirements/default.txt (line 2))
  Using cached asyncpg-0.27.0.tar.gz (808 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting atlassian-python-api==3.37.0 (from -r requirements/default.txt (line 3))
  Using cached atlassian-python-api-3.37.0.tar.gz (145 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting beautifulsoup4==4.12.0 (from -r requirements/default.txt (line 4))
  Using cached beautifulsoup4-4.12.0-py3-none-any.whl (132 kB)
Collecting celery==5.3.4 (from -r requirements/default.txt (line 5))
  Obtaining dependency information for celery==5.3.4 from https://files.pythonhosted.org/packages/98/e9/023b8f75128d747d4aee79da84e4ac58eff63bb21f1c0aa7c452a353d207/celery-5.3.4-py3-none-any.whl.metadata
  Using cached celery-5.3.4-py3-none-any.whl.metadata (21 kB)
Collecting dask==2023.8.1 (from -r requirements/default.txt (line 6))
  Obtaining dependency information for dask==2023.8.1 from https://files.pythonhosted.org/packages/f4/b9/ea749b059b5e5eab6231fcd65b3680551a65392c9a37352ddffc17ce8616/dask-2023.8.1-py3-none-any.whl.metadata
  Using cached dask-2023.8.1-py3-none-any.whl.metadata (3.6 kB)
Collecting distributed==2023.8.1 (from -r requirements/default.txt (line 7))
  Obtaining dependency information for distributed==2023.8.1 from https://files.pythonhosted.org/packages/54/66/ad2b35fc69c351cfa03969cc86bb7da2c276c349900a08fdb98309193581/distributed-2023.8.1-py3-none-any.whl.metadata
  Using cached distributed-2023.8.1-py3-none-any.whl.metadata (3.3 kB)
Collecting python-dateutil==2.8.2 (from -r requirements/default.txt (line 8))
  Using cached python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
Collecting fastapi==0.103.0 (from -r requirements/default.txt (line 9))
  Obtaining dependency information for fastapi==0.103.0 from https://files.pythonhosted.org/packages/89/e1/5391318b8b35eb4873ea504ca5181a5569d8e499a0920a61ba7e29e8fc2a/fastapi-0.103.0-py3-none-any.whl.metadata
  Using cached fastapi-0.103.0-py3-none-any.whl.metadata (24 kB)
Collecting fastapi-users==11.0.0 (from -r requirements/default.txt (line 10))
  Using cached fastapi_users-11.0.0-py3-none-any.whl (38 kB)
Collecting fastapi-users-db-sqlalchemy==5.0.0 (from -r requirements/default.txt (line 11))
  Using cached fastapi_users_db_sqlalchemy-5.0.0-py3-none-any.whl (6.9 kB)
Collecting filelock==3.12.0 (from -r requirements/default.txt (line 12))
  Using cached filelock-3.12.0-py3-none-any.whl (10 kB)
Collecting google-api-python-client==2.86.0 (from -r requirements/default.txt (line 13))
  Using cached google_api_python_client-2.86.0-py2.py3-none-any.whl (11.3 MB)
Collecting google-auth-httplib2==0.1.0 (from -r requirements/default.txt (line 14))
  Using cached google_auth_httplib2-0.1.0-py2.py3-none-any.whl (9.3 kB)
Collecting google-auth-oauthlib==1.0.0 (from -r requirements/default.txt (line 15))
  Using cached google_auth_oauthlib-1.0.0-py2.py3-none-any.whl (18 kB)
Collecting httpcore==0.16.3 (from -r requirements/default.txt (line 19))
  Using cached httpcore-0.16.3-py3-none-any.whl (69 kB)
Collecting httpx==0.23.3 (from -r requirements/default.txt (line 20))
  Using cached httpx-0.23.3-py3-none-any.whl (71 kB)
Collecting httpx-oauth==0.11.2 (from -r requirements/default.txt (line 21))
  Using cached httpx_oauth-0.11.2-py3-none-any.whl (28 kB)
Collecting huggingface-hub==0.16.4 (from -r requirements/default.txt (line 22))
  Obtaining dependency information for huggingface-hub==0.16.4 from https://files.pythonhosted.org/packages/7f/c4/adcbe9a696c135578cabcbdd7331332daad4d49b7c43688bc2d36b3a47d2/huggingface_hub-0.16.4-py3-none-any.whl.metadata
  Using cached huggingface_hub-0.16.4-py3-none-any.whl.metadata (12 kB)
Collecting jira==3.5.1 (from -r requirements/default.txt (line 23))
  Obtaining dependency information for jira==3.5.1 from https://files.pythonhosted.org/packages/e2/f6/043d91222ca3ac452ec4702a39f7e996d849c69c9e548a2686efe81b7625/jira-3.5.1-py3-none-any.whl.metadata
  Using cached jira-3.5.1-py3-none-any.whl.metadata (9.2 kB)
Collecting langchain==0.0.325 (from -r requirements/default.txt (line 24))
  Obtaining dependency information for langchain==0.0.325 from https://files.pythonhosted.org/packages/ad/b1/6bb5006471264b5d75fcf0e3d7ed8d0bfc4ec335e08e05abf5900c42aa43/langchain-0.0.325-py3-none-any.whl.metadata
  Using cached langchain-0.0.325-py3-none-any.whl.metadata (16 kB)
Collecting litellm==0.12.5 (from -r requirements/default.txt (line 25))
  Obtaining dependency information for litellm==0.12.5 from https://files.pythonhosted.org/packages/7c/ec/ff725cc8d16226b4185926c08eaeffc4947adc06ca83c4b6078c8b6845cd/litellm-0.12.5-py3-none-any.whl.metadata
  Using cached litellm-0.12.5-py3-none-any.whl.metadata (9.0 kB)
Collecting llama-index==0.8.27 (from -r requirements/default.txt (line 26))
  Obtaining dependency information for llama-index==0.8.27 from https://files.pythonhosted.org/packages/de/00/63f37ccbfc37ac33b96ae0f6bcdafb431ca6e54c22d8a5df0de541066992/llama_index-0.8.27-py3-none-any.whl.metadata
  Using cached llama_index-0.8.27-py3-none-any.whl.metadata (5.0 kB)
Collecting Mako==1.2.4 (from -r requirements/default.txt (line 27))
  Using cached Mako-1.2.4-py3-none-any.whl (78 kB)
Collecting nltk==3.8.1 (from -r requirements/default.txt (line 28))
  Using cached nltk-3.8.1-py3-none-any.whl (1.5 MB)
Collecting docx2txt==0.8 (from -r requirements/default.txt (line 29))
  Using cached docx2txt-0.8.tar.gz (2.8 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting openai==0.27.6 (from -r requirements/default.txt (line 30))
  Using cached openai-0.27.6-py3-none-any.whl (71 kB)
Collecting oauthlib==3.2.2 (from -r requirements/default.txt (line 31))
  Using cached oauthlib-3.2.2-py3-none-any.whl (151 kB)
Collecting playwright==1.37.0 (from -r requirements/default.txt (line 32))
  Obtaining dependency information for playwright==1.37.0 from https://files.pythonhosted.org/packages/d6/ff/e091a3d81bfd5602e2b4bc5df748b258a551a0ba09c7489694a4357dfa80/playwright-1.37.0-py3-none-win_amd64.whl.metadata
  Using cached playwright-1.37.0-py3-none-win_amd64.whl.metadata (3.5 kB)
Collecting psycopg2==2.9.6 (from -r requirements/default.txt (line 33))
  Using cached psycopg2-2.9.6.tar.gz (383 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting psycopg2-binary==2.9.6 (from -r requirements/default.txt (line 34))
  Using cached psycopg2-binary-2.9.6.tar.gz (384 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting pycryptodome==3.19.0 (from -r requirements/default.txt (line 35))
  Obtaining dependency information for pycryptodome==3.19.0 from https://files.pythonhosted.org/packages/87/c4/c979db0914a23541d62c9e4b5e8a30f56a78c6dec8677db6a5327d306be5/pycryptodome-3.19.0-cp35-abi3-win_amd64.whl.metadata
  Using cached pycryptodome-3.19.0-cp35-abi3-win_amd64.whl.metadata (3.4 kB)
Collecting pydantic==1.10.7 (from -r requirements/default.txt (line 36))
  Using cached pydantic-1.10.7-py3-none-any.whl (157 kB)
Collecting PyGithub==1.58.2 (from -r requirements/default.txt (line 37))
  Using cached PyGithub-1.58.2-py3-none-any.whl (312 kB)
Collecting pypdf==3.17.0 (from -r requirements/default.txt (line 38))
  Obtaining dependency information for pypdf==3.17.0 from https://files.pythonhosted.org/packages/74/a9/5ccde1312650dd03e65350224fea85d9a430c182a01f056599cbb76f7390/pypdf-3.17.0-py3-none-any.whl.metadata
  Using cached pypdf-3.17.0-py3-none-any.whl.metadata (7.5 kB)
Collecting pytest-playwright==0.3.2 (from -r requirements/default.txt (line 39))
  Using cached pytest_playwright-0.3.2-py3-none-any.whl (10 kB)
Collecting python-dotenv==1.0.0 (from -r requirements/default.txt (line 40))
  Using cached python_dotenv-1.0.0-py3-none-any.whl (19 kB)
Collecting python-multipart==0.0.6 (from -r requirements/default.txt (line 41))
  Using cached python_multipart-0.0.6-py3-none-any.whl (45 kB)
Collecting requests==2.31.0 (from -r requirements/default.txt (line 42))
  Obtaining dependency information for requests==2.31.0 from https://files.pythonhosted.org/packages/70/8e/0e2d847013cb52cd35b38c009bb167a1a26b2ce6cd6965bf26b47bc0bf44/requests-2.31.0-py3-none-any.whl.metadata
  Using cached requests-2.31.0-py3-none-any.whl.metadata (4.6 kB)
Collecting requests-oauthlib==1.3.1 (from -r requirements/default.txt (line 43))
  Using cached requests_oauthlib-1.3.1-py2.py3-none-any.whl (23 kB)
Collecting retry==0.9.2 (from -r requirements/default.txt (line 44))
  Using cached retry-0.9.2-py2.py3-none-any.whl (8.0 kB)
Collecting rfc3986==1.5.0 (from -r requirements/default.txt (line 45))
  Using cached rfc3986-1.5.0-py2.py3-none-any.whl (31 kB)
Collecting rt==3.1.2 (from -r requirements/default.txt (line 48))
  Obtaining dependency information for rt==3.1.2 from https://files.pythonhosted.org/packages/34/04/27199a2715ff13e95bb57737861dbee1cd521315cc61da59c0fc56b814c3/rt-3.1.2-py3-none-any.whl.metadata
  Using cached rt-3.1.2-py3-none-any.whl.metadata (6.7 kB)
Collecting safetensors==0.3.1 (from -r requirements/default.txt (line 49))
  Using cached safetensors-0.3.1.tar.gz (34 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting sentence-transformers==2.2.2 (from -r requirements/default.txt (line 50))
  Using cached sentence-transformers-2.2.2.tar.gz (85 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting slack-sdk==3.20.2 (from -r requirements/default.txt (line 51))
  Using cached slack_sdk-3.20.2-py2.py3-none-any.whl (274 kB)
Collecting SQLAlchemy[mypy]==2.0.15 (from -r requirements/default.txt (line 52))
  Obtaining dependency information for SQLAlchemy[mypy]==2.0.15 from https://files.pythonhosted.org/packages/c5/d9/8a2d3eaba6fc295da102dacb39d695b94b7b7d1a02b9f8a9b3b2c73beada/SQLAlchemy-2.0.15-py3-none-any.whl.metadata
  Using cached SQLAlchemy-2.0.15-py3-none-any.whl.metadata (9.3 kB)
ERROR: Ignored the following versions that require a different python version: 0.8.43 Requires-Python >=3.8.1,<3.12; 0.8.43.post1 Requires-Python >=3.8.1,<3.12; 0.8.44 Requires-Python >=3.8.1,<3.12; 0.8.45 Requires-Python >=3.8.1,<3.12; 0.8.45.post1 Requires-Python >=3.8.1,<3.12; 0.8.46 Requires-Python >=3.8.1,<3.12; 0.8.47 Requires-Python >=3.8.1,<3.12; 0.8.48 Requires-Python >=3.8.1,<3.12; 0.8.49 Requires-Python >=3.8.1,<3.12; 0.8.50 Requires-Python >=3.8.1,<3.12; 0.8.51 Requires-Python >=3.8.1,<3.12; 0.8.51.post1 Requires-Python >=3.8.1,<3.12; 0.8.52 Requires-Python >=3.8.1,<3.12; 0.8.53 Requires-Python >=3.8.1,<3.12; 0.8.53.post3 Requires-Python >=3.8.1,<3.12; 0.8.54 Requires-Python >=3.8.1,<3.12; 0.8.55 Requires-Python >=3.8.1,<3.12; 0.8.56 Requires-Python >=3.8.1,<3.12; 0.8.57 Requires-Python >=3.8.1,<3.12; 0.8.58 Requires-Python >=3.8.1,<3.12; 0.8.59 Requires-Python >=3.8.1,<3.12; 0.8.61 Requires-Python >=3.8.1,<3.12; 0.8.62 Requires-Python >=3.8.1,<3.12; 0.8.63.post1 Requires-Python >=3.8.1,<3.12; 0.8.63.post2 Requires-Python >=3.8.1,<3.12; 0.8.64 Requires-Python >=3.8.1,<3.12; 0.8.64.post1 Requires-Python >=3.8.1,<3.12; 0.8.65 Requires-Python >=3.8.1,<3.12; 0.8.66 Requires-Python >=3.8.1,<3.12; 0.8.67 Requires-Python >=3.8.1,<3.12; 0.8.68 Requires-Python >=3.8.1,<3.12; 0.8.69 Requires-Python >=3.8.1,<3.12; 0.8.69.post1 Requires-Python >=3.8.1,<3.12; 0.8.69.post2 Requires-Python >=3.8.1,<3.12; 0.9.0 Requires-Python >=3.8.1,<3.12; 0.9.0.post1 Requires-Python >=3.8.1,<3.12; 0.9.0a1 Requires-Python >=3.8.1,<3.12; 0.9.0a2 Requires-Python >=3.8.1,<3.12; 0.9.0a3 Requires-Python >=3.8.1,<3.12; 0.9.1 Requires-Python >=3.8.1,<3.12; 0.9.2 Requires-Python >=3.8.1,<3.12; 0.9.3 Requires-Python >=3.8.1,<3.12; 0.9.3.post1 Requires-Python >=3.8.1,<3.12
ERROR: Could not find a version that satisfies the requirement tensorflow==2.13.0 (from versions: none)
ERROR: No matching distribution found for tensorflow==2.13.0

It might be needed to update the package versions or put up a disclaimer in the contributing.md

yuhongsun96 commented 8 months ago

Ah yes, thank you for pointing this out! I've made the changes to the CONTRIBUTING.md page.

We would love to hear from you about your use case and how Danswer has been performing for you! If you're open to it, we’d love to hear from you in our Slack or Discord! Alternatively if you want to have a quick chat with the maintainer (Chris and myself), you can just select a time on my Cal