Git Product home page Git Product logo

Comments (4)

MixoMax avatar MixoMax commented on July 23, 2024 1

I fixed it by downgrading the server version to 1.8.0 by using docker run qdrant/qdrant:v1.8.0 instead of running qdrant/qdrant:latest

from qdrant-client.

generall avatar generall commented on July 23, 2024

Hey @MixoMax, please make sure that minor version of the client matches minor version of the server

from qdrant-client.

MixoMax avatar MixoMax commented on July 23, 2024

that could be the problem:

server: Version: 1.8.3, build: acb04d5f
client: 1.8.0

when i run pip install qdrant-client==1.8.3 i get:

ERROR: Could not find a version that satisfies the requirement qdrant-client==1.8.3 (from versions: 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.2.0, 0.3.0, 0.3.1, 0.3.2, 0.3.3, 0.3.4, 0.3.5, 0.3.6, 0.3.7, 0.3.8, 0.3.9, 0.3.10, 0.3.11, 0.3.12, 0.4.1, 0.5.0, 0.6.0, 0.6.1, 0.7.0, 0.7.1, 0.7.2, 0.7.3, 0.8.0, 0.8.3, 0.8.4, 0.8.5, 0.8.6, 0.8.7, 0.9.0, 0.9.1, 0.9.2, 0.9.3, 0.9.4, 0.9.5, 0.9.7, 0.10.0, 0.10.1, 0.10.2, 0.10.3, 0.11.0, 0.11.1, 0.11.3, 0.11.4, 0.11.5, 0.11.6, 0.11.7, 0.11.8, 0.11.9, 0.11.10, 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.1.0, 1.1.1, 1.1.2, 1.1.3, 1.1.4, 1.1.5, 1.1.6, 1.1.7, 1.2.0, 1.3.0, 1.3.1, 1.3.2, 1.4.0, 1.5.0, 1.5.1, 1.5.2, 1.5.3, 1.5.4, 1.6.0, 1.6.1, 1.6.2, 1.6.3, 1.6.4, 1.6.5, 1.6.6, 1.6.7, 1.6.8, 1.6.9, 1.7.0, 1.7.1, 1.7.2, 1.7.3, 1.8.0) ERROR: No matching distribution found for qdrant-client==1.8.3

python version 3.10.11, newest version of pip
I also tried for python version 3.12.2 but that could anso not find qdrant-client==1.8.3.

so how do i either upgrade my qdrant client version to 1.8.3 or downgrade the qdrant server running in docker (docker pull qdrant/qdrant && docker run -p 6333:6333 qdrant/qdrant)

from qdrant-client.

joein avatar joein commented on July 23, 2024

Hi @MixoMax

There is no qdrant-client==1.8.3, qdrant version 1.8.x should be used with qdrant-client 1.8.x, as of now qdrant-client latest is 1.8.0.

I tried to reproduce the issue

I was using python3.10.7

Here is my pip3 freeze output:

annotated-types==0.6.0
anyio==4.3.0
certifi==2024.2.2
exceptiongroup==1.2.0
grpcio==1.62.1
grpcio-tools==1.62.1
h11==0.14.0
h2==4.1.0
hpack==4.0.0
httpcore==1.0.4
httpx==0.27.0
hyperframe==6.0.1
idna==3.6
numpy==1.26.4
portalocker==2.8.2
protobuf==4.25.3
pydantic==2.6.4
pydantic_core==2.16.3
qdrant-client==1.8.0
sniffio==1.3.1
typing_extensions==4.10.0
urllib3==2.2.1

I launched qdrant as

docker run -it -p 6333:6333 -p 6334:6334 -e QDRANT__CLUSTER__ENABLED=true --name qdrant qdrant/qdrant:latest ./qdrant --uri "http://localhost:6335"

However, the code snippet you provided worked without an exception from pydantic

I ran it 2 times
First time it just created the collection
The second time I had the following output:

Collection already exists
Unexpected Response: 409 (Conflict)
Raw response content:
b'{"status":{"error":"Wrong input: Collection `xyz` already exists!"},"time":0.007603988}'

We've seen the error you encounters, it happened when qdrant-client was 1.7.x
Could you double-check if you are using the correct interpreter? And if you are using a virtualenv, then could you please check that it is enabled and you are actually activated the correct venv?

from qdrant-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.