Backend startup fails due to mixed Weaviate client APIs (v3 vs v4)
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
Start with the reported entry point, python backend/main, in a fresh virtual environment and inspect the backend's Weaviate imports and dependency declarations. A maintainer must first decide whether to standardize on client v3 or v4. Done means the chosen version is consistently referenced and the backend starts without the reported import or attribute errors.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
While setting up and running the backend locally as a contributor, I encountered runtime errors related to the Weaviate Python client that appear to stem from mixed usage of different major Weaviate client APIs within the codebase.
Specifically:
Some modules rely on v3-style imports (e.g. from weaviate import classes)
Other modules expect v4-style APIs (e.g. WeaviateClient)
Because of this, the backend fails to start consistently in a clean environment:
Installing a v3 client resolves classes imports but breaks WeaviateClient
Installing a v4 client resolves WeaviateClient but breaks classes
Steps to Reproduce :
1.Create a fresh Python virtual environment
2.Install backend dependencies
3.Run python backend/main.
4.Observe import / attribute errors related to the Weaviate client
5.Observed Errors
- ImportError: cannot import name 'classes' from weaviate
- AttributeError: module 'weaviate' has no attribute 'WeaviateClient'
Expected Behavior
The backend should consistently target a single Weaviate client major version, with aligned imports and dependency pinning, so that it can start successfully in a clean setup.
Notes :
Resolving this likely requires a maintainer decision on whether to standardize the backend on:
Weaviate client v3 (legacy), or
Weaviate client v4 (current).
Happy to help further once the preferred direction is clarified.
- Lingua principale
- Python
- Stelle
- 103
- Fork
- 143
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di AOSSIE-Org/Devr.AI
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 95/100
AOSSIE-Org/Devr.AI#315 · 1 commento ·
-
Bump Weaviate image to 1.39.13 (Go 1.26.10 / CVE-2026-111943)Forse già presa @dudanogueira l’ha presa 38 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
AOSSIE-Org/Devr.AI#309 · 1 commento ·
-
DOCS UPDATE: Incorrect Flask command path in backend installation guideForse già presa @Ashwin-Pillai-22 l’ha presa 321 giorni fa. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 68/100
AOSSIE-Org/Devr.AI#229 · 3 commenti ·
-
BUG:Devr.AI Agent loses user_profile for returning users and fails to persist conversation summaries & cumulative interaction countsForse già presa @shubhumre777 l’ha presa 34 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
AOSSIE-Org/Devr.AI#311 · 2 commenti ·
-
BUG: Local pytest suite fails to collect due to deprecated imports and mock schemasForse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 25/100
AOSSIE-Org/Devr.AI#307 · 1 commento ·
Tutte le issue di AOSSIE-Org/Devr.AI
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
pimutils/vdirsyncer#1242 ·
-
priority:P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
QuantConnect/lean-cli#792 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
open-webui/open-webui#35360 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
-
Suggest link: Destiny Verify (MIT zero-dependency pre-commit security, citation & link hygiene CLI)Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 68/100