Closed dilzilla closed 1 year ago
Could you give us some more info about your operating system and your development environment?
At the moment there is some compatibility problem with the Faiss module and windows and we are working to resolve it. If you can't get it started locally we have created a colab Notebook that allows you to work on the online repository without having to install anything.
We have found the problem.
You need to copy new requiriments.txt :
requests
langchain
streamlit
streamlit-chat-media
numpy
retry
revChatGPT
duckduckgo-search
transformers
tabulate
wikipedia
faiss-gpu # if u have a GPU
#faiss-cpu # if u dont have a GPU
nest_asyncio
torch
# tensorflow >= 2.0 -- For other future models
# flax -- For other future models
pytest-playwright
and comment the faiss-gpu
line , and remove the comment to faiss-cpu
line . Your requiriments.txt must be this :
requests
langchain
streamlit
streamlit-chat-media
numpy
retry
revChatGPT
duckduckgo-search
transformers
tabulate
wikipedia
#faiss-gpu # if u have a GPU
faiss-cpu # if u dont have a GPU
nest_asyncio
torch
# tensorflow >= 2.0 -- For other future models
# flax -- For other future models
pytest-playwright
tell us if now work .
Thank you guys so much for all the effort and work you put in!!! Cant put it in words!
Not sure why this wont work. I also couldn't get the collar to work. A simple instruction video would be helpful.
`Requirement already satisfied: requests in /Users/dylanwhite/miniconda3/lib/python3.10/site-packages (from -r requirements.txt (line 1)) (2.28.2) Collecting langchain Using cached langchain-0.0.153-py3-none-any.whl (696 kB) Collecting streamlit Using cached streamlit-1.22.0-py2.py3-none-any.whl (8.9 MB) Collecting streamlit-chat-media Using cached streamlit_chat_media-0.0.4-py3-none-any.whl (2.7 MB) Requirement already satisfied: numpy in /Users/dylanwhite/miniconda3/lib/python3.10/site-packages (from -r requirements.txt (line 5)) (1.24.2) Collecting retry Using cached retry-0.9.2-py2.py3-none-any.whl (8.0 kB) Collecting revChatGPT Using cached revChatGPT-5.0.0-py3-none-any.whl (32 kB) Collecting duckduckgo-search Using cached duckduckgo_search-2.9.1-py3-none-any.whl (30 kB) Requirement already satisfied: transformers in /Users/dylanwhite/miniconda3/lib/python3.10/site-packages (from -r requirements.txt (line 9)) (4.27.4) Collecting tabulate Using cached tabulate-0.9.0-py3-none-any.whl (35 kB) Collecting wikipedia Using cached wikipedia-1.4.0.tar.gz (27 kB) Preparing metadata (setup.py) ... done Collecting faiss-gpu Using cached faiss-gpu-1.7.1.post2.tar.gz (40 kB) Preparing metadata (setup.py) ... done WARNING: Generating metadata for package faiss-gpu produced metadata for project name faiss-cpu. Fix your #egg=faiss-gpu fragments. Discarding https://files.pythonhosted.org/packages/17/76/47d0cc8161f4bf988583a2839bb1e56baf09d6b80cfa472b9eba4d5f543b/faiss-gpu-1.7.1.post2.tar.gz (from https://pypi.org/simple/faiss-gpu/): Requested faiss-cpu from https://files.pythonhosted.org/packages/17/76/47d0cc8161f4bf988583a2839bb1e56baf09d6b80cfa472b9eba4d5f543b/faiss-gpu-1.7.1.post2.tar.gz (from -r requirements.txt (line 12)) has inconsistent name: expected 'faiss-gpu', but metadata has 'faiss-cpu' Using cached faiss-gpu-1.7.1.post1.tar.gz (41 kB) Preparing metadata (setup.py) ... done WARNING: Generating metadata for package faiss-gpu produced metadata for project name faiss-cpu. Fix your #egg=faiss-gpu fragments. Discarding https://files.pythonhosted.org/packages/39/8d/b62bc92c8dd4b2a99d4a06b8804280f6445748b6d698eabb037e111080c7/faiss-gpu-1.7.1.post1.tar.gz (from https://pypi.org/simple/faiss-gpu/): Requested faiss-cpu from https://files.pythonhosted.org/packages/39/8d/b62bc92c8dd4b2a99d4a06b8804280f6445748b6d698eabb037e111080c7/faiss-gpu-1.7.1.post1.tar.gz (from -r requirements.txt (line 12)) has inconsistent name: expected 'faiss-gpu', but metadata has 'faiss-cpu' Using cached faiss-gpu-1.7.1.tar.gz (40 kB) Preparing metadata (setup.py) ... done WARNING: Generating metadata for package faiss-gpu produced metadata for project name faiss-cpu. Fix your #egg=faiss-gpu fragments. Discarding https://files.pythonhosted.org/packages/51/85/7a7490dbecaea9272953b88e236a45fe8c47571a069bc28b352f0b224ea3/faiss-gpu-1.7.1.tar.gz (from https://pypi.org/simple/faiss-gpu/): Requested faiss-cpu from https://files.pythonhosted.org/packages/51/85/7a7490dbecaea9272953b88e236a45fe8c47571a069bc28b352f0b224ea3/faiss-gpu-1.7.1.tar.gz (from -r requirements.txt (line 12)) has inconsistent name: expected 'faiss-gpu', but metadata has 'faiss-cpu' Using cached faiss-gpu-1.7.0.tar.gz (34 kB) Preparing metadata (setup.py) ... done WARNING: Generating metadata for package faiss-gpu produced metadata for project name faiss-cpu. Fix your #egg=faiss-gpu fragments. Discarding https://files.pythonhosted.org/packages/63/15/289ecf5d23f209c4c6f2f5f4db1d2b4a2be22d1fc49619354363e9367c19/faiss-gpu-1.7.0.tar.gz (from https://pypi.org/simple/faiss-gpu/): Requested faiss-cpu from https://files.pythonhosted.org/packages/63/15/289ecf5d23f209c4c6f2f5f4db1d2b4a2be22d1fc49619354363e9367c19/faiss-gpu-1.7.0.tar.gz (from -r requirements.txt (line 12)) has inconsistent name: expected 'faiss-gpu', but metadata has 'faiss-cpu' Using cached faiss-gpu-1.6.5.tar.gz (28 kB) Preparing metadata (setup.py) ... done WARNING: Generating metadata for package faiss-gpu produced metadata for project name faiss-cpu. Fix your #egg=faiss-gpu fragments. Discarding https://files.pythonhosted.org/packages/9c/27/3477c856ea3d678619c33ae72f89ede4fbe08e9c5ba3b89a5feb3d9938b0/faiss-gpu-1.6.5.tar.gz (from https://pypi.org/simple/faiss-gpu/): Requested faiss-cpu from https://files.pythonhosted.org/packages/9c/27/3477c856ea3d678619c33ae72f89ede4fbe08e9c5ba3b89a5feb3d9938b0/faiss-gpu-1.6.5.tar.gz (from -r requirements.txt (line 12)) has inconsistent name: expected 'faiss-gpu', but metadata has 'faiss-cpu' Using cached faiss-gpu-1.6.4.post2.tar.gz (25 kB) Preparing metadata (setup.py) ... done WARNING: Generating metadata for package faiss-gpu produced metadata for project name faiss-cpu. Fix your #egg=faiss-gpu fragments. Discarding https://files.pythonhosted.org/packages/7d/00/b3aaad408a44e4f5d87ebfcd75d0b14eeaed9fe9bc7a9f5e185ff1d503d6/faiss-gpu-1.6.4.post2.tar.gz (from https://pypi.org/simple/faiss-gpu/): Requested faiss-cpu from https://files.pythonhosted.org/packages/7d/00/b3aaad408a44e4f5d87ebfcd75d0b14eeaed9fe9bc7a9f5e185ff1d503d6/faiss-gpu-1.6.4.post2.tar.gz (from -r requirements.txt (line 12)) has inconsistent name: expected 'faiss-gpu', but metadata has 'faiss-cpu' Using cached faiss-gpu-1.6.4.tar.gz (3.4 kB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [7 lines of output] running egginfo creating /private/var/folders/s/8x1nm6wx53z2m0478zhgrc6r0000gn/T/pip-pip-egg-info-1k89xptk/faisscpu.egg-info writing /private/var/folders/s/8x1nm6wx53z2m0478zhgrc6r0000gn/T/pip-pip-egg-info-1k89xptk/faiss_cpu.egg-info/PKG-INFO writing dependencylinks to /private/var/folders/s/8x1nm6wx53z2m0478zhgrc6r0000gn/T/pip-pip-egg-info-1k89xptk/faiss_cpu.egg-info/dependencylinks.txt writing top-level names to /private/var/folders/s/8x1nm6wx53z2m0478zhgrc6r0000gn/T/pip-pip-egg-info-1k89xptk/faiss_cpu.egg-info/toplevel.txt writing manifest file '/private/var/folders/s/8x1nm6wx53z2m0478zhgrc6r0000gn/T/pip-pip-egg-info-1k89xptk/faisscpu.egg-info/SOURCES.txt' error: package directory '/private/var/folders/s/8x1nm6wx53z2m0478zhgrc6r0000gn/T/pip-install-l74xplyc/faiss-gpu_cb43f56646c24c099baca5c7609e68d1/faiss/faiss/python' does not exist [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed
× Encountered error while generating package metadata. ╰─> See above for output.
note: This is an issue with the package mentioned above, not pip. hint: See above for details.`