Python 3.12 import error for weaviate

Description

I am running in a conda env python 3.12 on linux and installed weaviate via pip
NAME=“Red Hat Enterprise Linux”
VERSION=“8.10 (Ootpa)”

this worked fine on Windows but here I get
File “/home/fbernard/.conda/envs/llmao_m4py_DALE/lib/python3.12/site-packages/weaviate/init.py”, line 3, in
from . import classes
ImportError: cannot import name ‘classes’ from partially initialized module ‘weaviate’ (most likely due to a circular import)

This is a simple script using only the one file and this fails at the top of the script when it tries to import weaviate…

Server Setup Information

  • Weaviate Server Version:
  • Deployment Method:
  • Multi Node? Number of Running Nodes:
  • Client Language and Version:
  • Multitenancy?:

Any additional Information

hi @fbernard !! Welcome to our community :hugs:

Can you provide those?

Also, can you provide a reproducible example?

Preferably, by creating a new python environment and running the code you have there.

Thanks!

I think the problem was that I needed to do ‘pip install weaviate-client’ instead of ‘pip install weaviate’ (which for some reason seemed ok on windows)
When I did this things worked fine.