Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
3,526 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
$ python index.py "review data in csv "
Traceback (most recent call last):
File "C:\Users\LENOVO\Desktop\Nouveau dossier\env\lib\site-packages\langchain\vectorstores\chroma.py", line 80, in __init__
import chromadb
ModuleNotFoundError: No module named 'chromadb'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\LENOVO\Desktop\Nouveau dossier\index.py", line 17, in <module>
index = VectorstoreIndexCreator().from_loaders([loader])
File "C:\Users\LENOVO\Desktop\Nouveau dossier\env\lib\site-packages\langchain\indexes\vectorstore.py", line 82, in from_loaders return self.from_documents(docs)
File "C:\Users\LENOVO\Desktop\Nouveau dossier\env\lib\site-packages\langchain\indexes\vectorstore.py", line 87, in from_documents
vectorstore = self.vectorstore_cls.from_documents(
File "C:\Users\LENOVO\Desktop\Nouveau dossier\env\lib\site-packages\langchain\vectorstores\chroma.py", line 612, in from_documents
return cls.from_texts(
File "C:\Users\LENOVO\Desktop\Nouveau dossier\env\lib\site-packages\langchain\vectorstores\chroma.py", line 567, in from_texts
chroma_collection = cls(
File "C:\Users\LENOVO\Desktop\Nouveau dossier\env\lib\site-packages\langchain\vectorstores\chroma.py", line 83, in __init__
raise ImportError(
ImportError: Could not import chromadb python package. Please install it with `pip install chromadb`.
(env)
LENOVO@DESKTOP-EOI86NM MINGW64 ~/Desktop/Nouveau dossier
$ pip install chromadb
Collecting chromadb
Obtaining dependency information for chromadb from https://files.pythonhosted.org/packages/f2/30/0d767083adb204422e10a5529f57a8afa9dc921f76620f11693e67b23c3a/chromadb-0.4.8-py3-none-any.whl.metadata
Using cached chromadb-0.4.8-py3-none-any.whl.metadata (6.9 kB)
Requirement already satisfied: requests>=2.28 in c:\users\lenovo\desktop\nouveau dossier\env\lib\site-packages (from chromadb) (2.31.0)
Requirement already satisfied: pydantic<2.0,>=1.9 in c:\users\lenovo\desktop\nouveau dossier\env\lib\site-packages (from chromadb) (1.10.12)
Collecting chroma-hnswlib==0.7.2 (from chromadb)
Using cached chroma-hnswlib-0.7.2.tar.gz (31 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting fastapi<0.100.0,>=0.95.2 (from chromadb)
Obtaining dependency information for fastapi<0.100.0,>=0.95.2 from https://files.pythonhosted.org/packages/73/eb/03b691afa0b5ffa1e93ed34f97ec1e7855c758efbdcfb16c209af0b0506b/fastapi-0.99.1-py3-none-any.whl.metadata
Using cached fastapi-0.99.1-py3-none-any.whl.metadata (23 kB)
Collecting uvicorn[standard]>=0.18.3 (from chromadb)
Obtaining dependency information for uvicorn[standard]>=0.18.3 from https://files.pythonhosted.org/packages/79/96/b0882a1c3f7ef3dd86879e041212ae5b62b4bd352320889231cc735a8e8f/uvicorn-0.23.2-py3-none-any.whl.metadata
Using cached uvicorn-0.23.2-py3-none-any.whl.metadata (6.2 kB)
Requirement already satisfied: numpy>=1.21.6 in c:\users\lenovo\desktop\nouveau dossier\env\lib\site-packages (from chromadb) (1.25.2)
Collecting posthog>=2.4.0 (from chromadb)
Obtaining dependency information for posthog>=2.4.0 from https://files.pythonhosted.org/packages/a7/73/35758818228c70348be4c3c66a76653c62e894e0e3c3461453c5341ca926/posthog-3.0.2-py2.py3-none-any.whl.metadata
Using cached posthog-3.0.2-py2.py3-none-any.whl.metadata (2.0 kB)
Requirement already satisfied: typing-extensions>=4.5.0 in c:\users\lenovo\desktop\nouveau dossier\env\lib\site-packages (from chromadb) (4.7.1)
Collecting pulsar-client>=3.1.0 (from chromadb)
Obtaining dependency information for pulsar-client>=3.1.0 from https://files.pythonhosted.org/packages/5b/41/56f3028c94b1082ff7142ec33e5f2760c8ecc611186e82b27b80cf7f1d73/pulsar_client-3.3.0-cp310-cp310-win_amd64.whl.metadata
Using cached pulsar_client-3.3.0-cp310-cp310-win_amd64.whl.metadata (1.0 kB)
Collecting onnxruntime>=1.14.1 (from chromadb)
Obtaining dependency information for onnxruntime>=1.14.1 from https://files.pythonhosted.org/packages/aa/2a/9d7edd7a329a7f34e25af60a1e47468cbc864766898c7b9d3b540d0f1539/onnxruntime-1.15.1-cp310-cp310-win_amd64.whl.metadata
Using cached onnxruntime-1.15.1-cp310-cp310-win_amd64.whl.metadata (4.1 kB)
Requirement already satisfied: tokenizers>=0.13.2 in c:\users\lenovo\desktop\nouveau dossier\env\lib\site-packages (from chromadb) (0.13.3)
Collecting pypika>=0.48.9 (from chromadb)
Using cached PyPika-0.48.9-py2.py3-none-any.whl
Requirement already satisfied: tqdm>=4.65.0 in c:\users\lenovo\desktop\nouveau dossier\env\lib\site-packages (from chromadb) (4.66.1)
Collecting overrides>=7.3.1 (from chromadb)
Obtaining dependency information for overrides>=7.3.1 from https://files.pythonhosted.org/packages/da/28/3fa6ef8297302fc7b3844980b6c5dbc71cdbd4b61e9b2591234214d5ab39/overrides-7.4.0-py3-none-any.whl.metadata
Using cached overrides-7.4.0-py3-none-any.whl.metadata (5.7 kB)
Collecting importlib-resources (from chromadb)
Obtaining dependency information for importlib-resources from https://files.pythonhosted.org/packages/25/d4/592f53ce2f8dde8be5720851bd0ab71cc2e76c55978e4163ef1ab7e389bb/importlib_resources-6.0.1-py3-none-any.whl.metadata
Using cached importlib_resources-6.0.1-py3-none-any.whl.metadata (4.0 kB)
Collecting bcrypt>=4.0.1 (from chromadb)
Using cached bcrypt-4.0.1-cp36-abi3-win_amd64.whl (152 kB)
Collecting starlette<0.28.0,>=0.27.0 (from fastapi<0.100.0,>=0.95.2->chromadb)
Obtaining dependency information for starlette<0.28.0,>=0.27.0 from https://files.pythonhosted.org/packages/58/f8/e2cca22387965584a409795913b774235752be4176d276714e15e1a58884/starlette-0.27.0-py3-none-any.whl.metadata
Using cached starlette-0.27.0-py3-none-any.whl.metadata (5.8 kB)
Collecting coloredlogs (from onnxruntime>=1.14.1->chromadb)
Using cached coloredlogs-15.0.1-py2.py3-none-any.whl (46 kB)
Collecting flatbuffers (from onnxruntime>=1.14.1->chromadb)
Obtaining dependency information for flatbuffers from https://files.pythonhosted.org/packages/6f/12/d5c79ee252793ffe845d58a913197bfa02ae9a0b5c9bc3dc4b58d477b9e7/flatbuffers-23.5.26-py2.py3-none-any.whl.metadata
Using cached flatbuffers-23.5.26-py2.py3-none-any.whl.metadata (850 bytes)
Requirement already satisfied: packaging in c:\users\lenovo\desktop\nouveau dossier\env\lib\site-packages (from onnxruntime>=1.14.1->chromadb) (23.1)
Requirement already satisfied: protobuf in c:\users\lenovo\desktop\nouveau dossier\env\lib\site-packages (from onnxruntime>=1.14.1->chromadb) (4.24.2)
Collecting sympy (from onnxruntime>=1.14.1->chromadb)
Using cached sympy-1.12-py3-none-any.whl (5.7 MB)
Requirement already satisfied: six>=1.5 in c:\users\lenovo\desktop\nouveau dossier\env\lib\site-packages (from posthog>=2.4.0->chromadb) (1.16.0)
Collecting monotonic>=1.5 (from posthog>=2.4.0->chromadb)
Using cached monotonic-1.6-py2.py3-none-any.whl (8.2 kB)
Collecting backoff>=1.10.0 (from posthog>=2.4.0->chromadb)
Using cached backoff-2.2.1-py3-none-any.whl (15 kB)
Requirement already satisfied: python-dateutil>2.1 in c:\users\lenovo\desktop\nouveau dossier\env\lib\site-packages (from posthog>=2.4.0->chromadb) (2.8.2)
Requirement already satisfied: certifi in c:\users\lenovo\desktop\nouveau dossier\env\lib\site-packages (from pulsar-client>=3.1.0->chromadb) (2023.7.22)
Requirement already satisfied: charset-normalizer<4,>=2 in c:\users\lenovo\desktop\nouveau dossier\env\lib\site-packages (from requests>=2.28->chromadb) (3.2.0)
Requirement already satisfied: idna<4,>=2.5 in c:\users\lenovo\desktop\nouveau dossier\env\lib\site-packages (from requests>=2.28->chromadb) (3.4)
Requirement already satisfied: urllib3<3,>=1.21.1 in c:\users\lenovo\desktop\nouveau dossier\env\lib\site-packages (from requests>=2.28->chromadb) (1.26.16)
Requirement already satisfied: colorama in c:\users\lenovo\desktop\nouveau dossier\env\lib\site-packages (from tqdm>=4.65.0->chromadb) (0.4.6)
Requirement already satisfied: click>=7.0 in c:\users\lenovo\desktop\nouveau dossier\env\lib\site-packages (from uvicorn[standard]>=0.18.3->chromadb) (8.1.7)
Requirement already satisfied: h11>=0.8 in c:\users\lenovo\desktop\nouveau dossier\env\lib\site-packages (from uvicorn[standard]>=0.18.3->chromadb) (0.14.0)
Collecting httptools>=0.5.0 (from uvicorn[standard]>=0.18.3->chromadb)
Obtaining dependency information for httptools>=0.5.0 from https://files.pythonhosted.org/packages/d5/63/f1594d00b4ef9c137edc0ff202d84e684b6989f9b8b4d1475098ca320c9d/httptools-0.6.0-cp310-cp310-win_amd64.whl.metadata
Using cached httptools-0.6.0-cp310-cp310-win_amd64.whl.metadata (3.6 kB)
Collecting python-dotenv>=0.13 (from uvicorn[standard]>=0.18.3->chromadb)
Using cached python_dotenv-1.0.0-py3-none-any.whl (19 kB)
Requirement already satisfied: pyyaml>=5.1 in c:\users\lenovo\desktop\nouveau dossier\env\lib\site-packages (from uvicorn[standard]>=0.18.3->chromadb) (6.0.1)
Collecting watchfiles>=0.13 (from uvicorn[standard]>=0.18.3->chromadb)
Obtaining dependency information for watchfiles>=0.13 from https://files.pythonhosted.org/packages/87/79/098b1b1fcb6de16149d23283a2ab5dadce6a06b864e7a182d231f57a1f9e/watchfiles-0.20.0-cp37-abi3-win_amd64.whl.metadata
Using cached watchfiles-0.20.0-cp37-abi3-win_amd64.whl.metadata (5.0 kB)
Collecting websockets>=10.4 (from uvicorn[standard]>=0.18.3->chromadb)
Using cached websockets-11.0.3-cp310-cp310-win_amd64.whl (124 kB)
Requirement already satisfied: anyio<5,>=3.4.0 in c:\users\lenovo\desktop\nouveau dossier\env\lib\site-packages (from starlette<0.28.0,>=0.27.0->fastapi<0.100.0,>=0.95.2->chromadb) (4.0.0)
Collecting humanfriendly>=9.1 (from coloredlogs->onnxruntime>=1.14.1->chromadb)
Using cached humanfriendly-10.0-py2.py3-none-any.whl (86 kB)
Collecting mpmath>=0.19 (from sympy->onnxruntime>=1.14.1->chromadb)
Using cached mpmath-1.3.0-py3-none-any.whl (536 kB)
Requirement already satisfied: sniffio>=1.1 in c:\users\lenovo\desktop\nouveau dossier\env\lib\site-packages (from anyio<5,>=3.4.0->starlette<0.28.0,>=0.27.0->fastapi<0.100.0,>=0.95.2->chromadb) (1.3.0)
Requirement already satisfied: exceptiongroup>=1.0.2 in c:\users\lenovo\desktop\nouveau dossier\env\lib\site-packages (from anyio<5,>=3.4.0->starlette<0.28.0,>=0.27.0->fastapi<0.100.0,>=0.95.2->chromadb) (1.1.3)
Collecting pyreadline3 (from humanfriendly>=9.1->coloredlogs->onnxruntime>=1.14.1->chromadb)
Using cached pyreadline3-3.4.1-py3-none-any.whl (95 kB)
Using cached chromadb-0.4.8-py3-none-any.whl (418 kB)
Using cached fastapi-0.99.1-py3-none-any.whl (58 kB)
Using cached onnxruntime-1.15.1-cp310-cp310-win_amd64.whl (6.7 MB)
Using cached overrides-7.4.0-py3-none-any.whl (17 kB)
Using cached posthog-3.0.2-py2.py3-none-any.whl (37 kB)
Using cached pulsar_client-3.3.0-cp310-cp310-win_amd64.whl (3.4 MB)
Using cached importlib_resources-6.0.1-py3-none-any.whl (34 kB)
Using cached httptools-0.6.0-cp310-cp310-win_amd64.whl (145 kB)
Using cached starlette-0.27.0-py3-none-any.whl (66 kB)
Using cached watchfiles-0.20.0-cp37-abi3-win_amd64.whl (276 kB)
Using cached flatbuffers-23.5.26-py2.py3-none-any.whl (26 kB)
Using cached uvicorn-0.23.2-py3-none-any.whl (59 kB)
Building wheels for collected packages: chroma-hnswlib
Building wheel for chroma-hnswlib (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for chroma-hnswlib (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [12 lines of output]
running bdist_wheel
running build
running build_ext
building 'hnswlib' extension
creating build
creating build\temp.win-amd64-cpython-310
creating build\temp.win-amd64-cpython-310\Release
creating build\temp.win-amd64-cpython-310\Release\python_bindings
"C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.33.31629\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\LENOVO\AppData\Local\Temp\pip-build-env-l702pw9w\overlay\Lib\site-packages\pybind11\include -IC:\Users\LENOVO\AppData\Local\Temp\pip-build-env-l702pw9w\overlay\Lib\site-packages\numpy\core\include -I./hnswlib/ "-IC:\Users\LENOVO\Desktop\Nouveau dossier\env\include" -IC:\Users\LENOVO\AppData\Local\Programs\Python\Python310\include -IC:\Users\LENOVO\AppData\Local\Programs\Python\Python310\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.33.31629\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" /EHsc /Tp./python_bindings/bindings.cpp /Fobuild\temp.win-amd64-cpython-310\Release\./python_bindings/bindings.obj /EHsc /openmp /O2 /DVERSION_INFO=\\\"0.7.2\\\"
bindings.cpp
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.33.31629\include\yvals.h(12): fatal error C1083: Impossible d'ouvrir le fichier includeÿ: 'crtdbg.h'ÿ: No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.33.31629\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for chroma-hnswlib
Failed to build chroma-hnswlib
ERROR: Could not build wheels for chroma-hnswlib, which is required to install pyproject.toml-based projects
Hi Manel Alayet:
Pls see a working solution for overcoming this error in windows.
https://stackoverflow.com/a/76245995
Let me know if this works.
Please 'Upvote' and 'Accept' as answer if the reply was helpful. This will be benefitting other community members who face the same issue.