Comments (7)
Great thread, thanks
Seems like the issue is related to a recent typing_extensions
update
pip3 install typing_extensions==4.5.0
fixes the issue for me
from qdrant-client.
@gaurav274 we will set typing-extensions = ">=4.0.0,<4.6.0"
in the upcoming release
from qdrant-client.
Hello @gaurav274
Could you please provide qdrant-client version and full log?
from qdrant-client.
Hello @gaurav274 Could you please provide qdrant-client version and full log?
Yes, @joein
Name: qdrant-client
Version: 1.1.4
Summary: Client library for the Qdrant vector search engine
Home-page: https://github.com/qdrant/qdrant-client
Author: Andrey Vasnetsov
Author-email: [email protected]
License:
Location: /test38/lib/python3.8/site-packages
Requires: grpcio, grpcio-tools, httpx, numpy, pydantic, typing-extensions, urllib3
Logs:
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Cell In[1], line 1
----> 1 import qdrant_client
File /test38/lib/python3.8/site-packages/qdrant_client/__init__.py:1
----> 1 from .qdrant_client import QdrantClient as QdrantClient
File /test38/lib/python3.8/site-packages/qdrant_client/qdrant_client.py:4
1 from typing import Any, Dict, Iterable, List, Mapping, Optional, Sequence, Tuple, Union
3 from qdrant_client import grpc as grpc
----> 4 from qdrant_client.client_base import QdrantBase
5 from qdrant_client.conversions import common_types as types
6 from qdrant_client.http import ApiClient, SyncApis
File /test38/lib/python3.8/site-packages/qdrant_client/client_base.py:3
1 from typing import Any, Dict, Iterable, List, Mapping, Optional, Sequence, Tuple, Union
----> 3 from qdrant_client.conversions import common_types as types
4 from qdrant_client.http import models
7 class QdrantBase:
File /test38/lib/python3.8/site-packages/qdrant_client/conversions/common_types.py:13
10 from typing import List, Union
12 from qdrant_client import grpc as grpc
---> 13 from qdrant_client.http import models as rest
15 Filter = Union[rest.Filter, grpc.Filter]
16 SearchParams = Union[rest.SearchParams, grpc.SearchParams]
File /test38/lib/python3.8/site-packages/qdrant_client/http/__init__.py:4
1 import inspect
3 from pydantic import BaseModel
----> 4 from qdrant_client.http.api_client import ( # noqa F401
5 ApiClient as ApiClient,
6 AsyncApis as AsyncApis,
7 SyncApis as SyncApis,
8 )
9 from qdrant_client.http.models import models as models # noqa F401
11 for model in inspect.getmembers(models, inspect.isclass):
File /test38/lib/python3.8/site-packages/qdrant_client/http/api_client.py:7
5 from httpx import AsyncClient, Client, Request, Response
6 from pydantic import ValidationError
----> 7 from qdrant_client.http.api.cluster_api import AsyncClusterApi, SyncClusterApi
8 from qdrant_client.http.api.collections_api import AsyncCollectionsApi, SyncCollectionsApi
9 from qdrant_client.http.api.points_api import AsyncPointsApi, SyncPointsApi
File /test38/lib/python3.8/site-packages/qdrant_client/http/api/cluster_api.py:9
7 from pydantic.json import ENCODERS_BY_TYPE
8 from pydantic.main import BaseModel
----> 9 from qdrant_client.http.models import *
10 from qdrant_client.http.models import models as m
12 SetIntStr = Set[Union[int, str]]
File /test38/lib/python3.8/site-packages/qdrant_client/http/models/__init__.py:1
----> 1 from .models import *
File /test38/lib/python3.8/site-packages/qdrant_client/http/models/models.py:63
59 p2p: "P2pConfigTelemetry" = Field(..., description="")
60 consensus: "ConsensusConfigTelemetry" = Field(..., description="")
---> 63 class ClusterStatusOneOf(BaseModel):
64 status: Literal[
65 "disabled",
66 ] = Field(..., description="")
69 class ClusterStatusOneOf1(BaseModel):
File /test38/lib/python3.8/site-packages/pydantic/main.py:197, in pydantic.main.ModelMetaclass.__new__()
File /test38/lib/python3.8/site-packages/pydantic/fields.py:506, in pydantic.fields.ModelField.infer()
File /test38/lib/python3.8/site-packages/pydantic/fields.py:436, in pydantic.fields.ModelField.__init__()
File /test38/lib/python3.8/site-packages/pydantic/fields.py:552, in pydantic.fields.ModelField.prepare()
File /test38/lib/python3.8/site-packages/pydantic/fields.py:668, in pydantic.fields.ModelField._type_analysis()
File /usr/local/lib/python3.8/typing.py:774, in _GenericAlias.__subclasscheck__(self, cls)
772 if self._special:
773 if not isinstance(cls, _GenericAlias):
--> 774 return issubclass(cls, self.__origin__)
775 if cls._special:
776 return issubclass(cls.__origin__, self.__origin__)
TypeError: issubclass() arg 1 must be a class```
from qdrant-client.
Found a related issue - langchain-ai/langchain#5113
from qdrant-client.
Great thread, thanks
Seems like the issue is related to a recent
typing_extensions
update
pip3 install typing_extensions==4.5.0
fixes the issue for me
iIt works for me too!
from qdrant-client.
should be fixed in 1.2.0
from qdrant-client.
Related Issues (20)
- Unable to close grpc_channel. Connection was interrupted on the server side HOT 12
- grpc options are not parsed correctly when https is set
- PointStruct is very slow HOT 8
- update scoring in local mode in discovery api HOT 1
- Missing import statement in documentation (Get Started) HOT 2
- Local Qdrant db Error on loading: KeyError: '__pydantic_fields_set__' HOT 4
- query_text param not working for qdrant_client.search HOT 8
- Upgrade fastembed version from 0.1.1 to 0.2.1 (latest) HOT 3
- Deleting points by ID not working HOT 3
- Trigger nighly tests against latest qdrant dev build
- Tracking issue: local mode for Qdrant v1.8 HOT 3
- Feature Request: Progress bar for batch upload_points function HOT 2
- Check vectors for NaN in local mode HOT 2
- qdrant_client.get_fastembed_vector_params() with upload_collection HOT 4
- Python Application Crashes on Attempting to Retrieve Non-existent Collection via QdrantClient in GRPC Mode HOT 2
- Add note about batching into README.md HOT 1
- grpc.PointStruct.PayloadEntry errror HOT 2
- How to upload collection asynchronous HOT 2
- Feature Request: Add ability to have properties/metadata for a collection
- qdrant_client.QdrantClient never returns HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qdrant-client.