weaviate / weaviate-cli

CLI tool for Weaviate
https://weaviate.io/developers/weaviate/client-libraries/cli
BSD 3-Clause "New" or "Revised" License
11 stars 11 forks source link

No module named 'weaviate.tools' when running `weaviate data delete` #49

Closed bobvanluijt closed 3 years ago

bobvanluijt commented 3 years ago

When running weaviate data delete with the latest version of the CLI I get the error message:

Traceback (most recent call last):
  File "/opt/homebrew/bin/weaviate", line 5, in <module>
    from cli import main
  File "/opt/homebrew/lib/python3.9/site-packages/cli.py", line 5, in <module>
    from semi.commands.data import delete_all_data, import_data_from_file
  File "/opt/homebrew/lib/python3.9/site-packages/semi/commands/data.py", line 4, in <module>
    import weaviate.tools
ModuleNotFoundError: No module named 'weaviate.tools'
StefanBogdan commented 3 years ago

The error is thrown because the CLI is not compatible with weaviate-client version 3.0.0. I fixed it with a patch so now it should be fine if you use weaviate-cli version 2.1.2: https://pypi.org/project/weaviate-cli/2.1.2/