I was trying to create RAG with Weaviate local server by langchain documentation but bumped into next error while downloading library
pip install langchain-weaviate
Collecting langchain-weaviate
Using cached langchain_weaviate-0.0.3-py3-none-any.whl.metadata (2.7 kB)
Requirement already satisfied: langchain-core<0.4,>=0.1.33 in d:\ds\venv\lib\site-packages (from langchain-weaviate) (0.3.31)
Collecting numpy<2.0.0,>=1.26.2 (from langchain-weaviate)
Using cached numpy-1.26.4.tar.gz (15.8 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... done
Collecting simsimd<5.0.0,>=3.6.1 (from langchain-weaviate)
Using cached simsimd-4.4.0.tar.gz (33 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [20 lines of output]
Traceback (most recent call last):
File "D:\DS\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 389, in <module>
main()
~~~~^^
File "D:\DS\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 373, in main
json_out["return_val"] = hook(**hook_input["kwargs"])
~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\DS\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 143, in get_requires_for_build_wheel
return hook(config_settings)
File "C:\Users\User\AppData\Local\Temp\pip-build-env-z_l8tv83\overlay\Lib\site-packages\setuptools\build_meta.py", line 334, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User\AppData\Local\Temp\pip-build-env-z_l8tv83\overlay\Lib\site-packages\setuptools\build_meta.py", line 304, in _get_build_requires
self.run_setup()
~~~~~~~~~~~~~~^^
File "C:\Users\User\AppData\Local\Temp\pip-build-env-z_l8tv83\overlay\Lib\site-packages\setuptools\build_meta.py", line 320, in run_setup
exec(code, locals())
~~~~^^^^^^^^^^^^^^^^
File "<string>", line 6, in <module>
FileNotFoundError: [Errno 2] No such file or directory: 'VERSION'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
PS D:\DS\rag\backend>
The error itself is to long to insert here.
Tried to install simsimd and then install langchain-weaviate but it didn't help, actually made it even worse, before an error wasn't so long, haven't found anything about that in internet maybe somebody had the same problem?
Would appreciate your help!
Duda from Weaviate here.
Edit: version 0.0.4 of langchain-weaviate was released and it fixes this issue.
There seems to be an update that was not yet released to pypi that is preventing on using simsimd on python3.13, as per this issue: https://github.com/langchain-ai/langchain-weaviate/issues/212
Meanwhile, if for development, you can install it directly from source with
pip install -e "git+https://github.com/langchain-ai/langchain-weaviate.git/#egg=langchain-weaviate&subdirectory=libs/weaviate"
or you can run Python3.12
Hope we can have that released soon.
Thanks!