Open dandv opened 1 year ago
Breakage still present in v2.2.0, albeit in a different form - #64.
Facing same issue.
I just installed the cli today to test on an M2 Mac running 13.5.2 (22G91)
and have the same issue, although my config is defined correctly:
Note that I also encountered the issue in #64 but manually creating the directory was a workaround until that fix is released.
$ weaviate version
2.2.0
$ weaviate config view
{
"url": "https://{sub-domain}.weaviate.network",
"auth": {
"type": "client_secret",
"secret": "{secret-key}"
}
}
$ weaviate ping
Traceback (most recent call last):
File "/opt/homebrew/bin/weaviate", line 8, in <module>
sys.exit(main())
^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/click/decorators.py", line 21, in new_func
return f(get_current_context(), *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/semi/misc.py", line 21, in main_ping
ping(get_client_from_context(ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/semi/utils.py", line 16, in get_client_from_context
return ctx.obj["config"].get_client()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/semi/config/commands.py", line 103, in get_client
return weaviate.Client(self.config["url"], cred)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/weaviate/client.py", line 150, in __init__
self._connection = Connection(
^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/weaviate/connect/connection.py", line 165, in __init__
self._create_session(auth_client_secret)
File "/opt/homebrew/lib/python3.11/site-packages/weaviate/connect/connection.py", line 222, in _create_session
self._session = _auth.get_auth_session()
^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/weaviate/connect/authentication.py", line 76, in get_auth_session
session = self._get_session_client_credential(self._credentials)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/weaviate/connect/authentication.py", line 127, in _get_session_client_credential
raise MissingScopeException
weaviate.exceptions.MissingScopeException
I get the error below on every
weaviate
command, includingweaviate version
:This happened after
pip install weaviate-cli
followed byweaviate version
, which claimed "Config creation was complete":