Closed lukezx3 closed 1 week ago
@lukezx3 The uri you passing in is not a valid uri, so PyMilvus thought you're trying to connecting to Milvus-lite.
Try call ls
in the running dir, you'll find a localhost
file, which means you're using Milvus-lite. And Milvus-lite doesn't support partition yet.
Try to connect to Milvus using correct uri with scheme like: uri="http://localhost:19530"
, for host only, just use host: host="localhost"
/assign @lukezx3
closing idle questions
Is there an existing issue for this?
Describe the bug
I am new to Milvus so I'm getting familiar with syntax and functions. I tried to create_partition but I run into an error:
grpc RpcError: [create_partition], <_MultiThreadedRendezvous: StatusCode.UNIMPLEMENTED, >, <Time:{'RPC start': '2024-07-15 23:45:59.373525', 'gRPC error': '2024-07-15 23:45:59.375271'}> Traceback (most recent call last): File "/var/www/html/milvus-docker-test/milvus_docker_intro.py", line 60, in <module> client.create_partition( File "/home/vagrant/.local/lib/python3.10/site-packages/pymilvus/milvus_client/milvus_client.py", line 776, in create_partition conn.create_partition(collection_name, partition_name, timeout=timeout, **kwargs) File "/home/vagrant/.local/lib/python3.10/site-packages/pymilvus/decorators.py", line 161, in handler raise e from e File "/home/vagrant/.local/lib/python3.10/site-packages/pymilvus/decorators.py", line 143, in handler return func(*args, **kwargs) File "/home/vagrant/.local/lib/python3.10/site-packages/pymilvus/decorators.py", line 182, in handler return func(self, *args, **kwargs) File "/home/vagrant/.local/lib/python3.10/site-packages/pymilvus/decorators.py", line 91, in handler raise e from e File "/home/vagrant/.local/lib/python3.10/site-packages/pymilvus/decorators.py", line 87, in handler return func(*args, **kwargs) File "/home/vagrant/.local/lib/python3.10/site-packages/pymilvus/client/grpc_handler.py", line 403, in create_partition response = rf.result() File "/home/vagrant/.local/lib/python3.10/site-packages/grpc/_channel.py", line 883, in result raise self grpc._channel._MultiThreadedRendezvous: <_MultiThreadedRendezvous of RPC that terminated with: status = StatusCode.UNIMPLEMENTED details = "" debug_error_string = "UNKNOWN:Error received from peer {created_time:"2024-07-15T23:45:59.374735814+00:00", grpc_status:12, grpc_message:""}"
My code: