# ‘weaviate.client.WeaviateClient use with pydantic

**URL:** <https://forum.weaviate.io/t/weaviate-client-weaviateclient-use-with-pydantic/4779>\
**Category:** Support\
**Created:** [October 11, 2024, 7:36am UTC](https://forum.weaviate.io/t/weaviate-client-weaviateclient-use-with-pydantic/4779 "2024-10-11T07:36:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lakshman\_Krishnamurt](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/lakshman_krishnamurt/32/1790_2.png) [@Lakshman\_Krishnamurt](https://forum.weaviate.io/u/Lakshman_Krishnamurt)\
**Post date:** [October 11, 2024, 7:36am UTC](https://forum.weaviate.io/t/weaviate-client-weaviateclient-use-with-pydantic/4779/1 "2024-10-11T07:36:02Z")

</div>

### Description

Trtying to pydantic and running into this error

pydantic.errors.PydanticSchemaGenerationError: Unable to generate pydantic-core schema for \<class ‘weaviate.client.WeaviateClient’

Is there any class imports that will resolve this?

I already have these

import weaviate  
import weaviate.classes as wvc

---

<div class="post-metadata">

**Author:** ![DudaNogueira](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dudanogueira/32/7846_2.png) [@DudaNogueira](https://forum.weaviate.io/u/DudaNogueira)\
**Post date:** [October 11, 2024, 8:46pm UTC](https://forum.weaviate.io/t/weaviate-client-weaviateclient-use-with-pydantic/4779/2 "2024-10-11T20:46:29Z")

</div>

hi!

Can you share the versions of the client you are using?

I cannot reproduce this.

This is the version I am using:

```bash
$ pip freeze | grep weaviate
weaviate-client==4.8.1

```

---

<div class="post-metadata">

**Author:** ![Lakshman\_Krishnamurt](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/lakshman_krishnamurt/32/1790_2.png) [@Lakshman\_Krishnamurt](https://forum.weaviate.io/u/Lakshman_Krishnamurt)\
**Post date:** [October 12, 2024, 5:02pm UTC](https://forum.weaviate.io/t/weaviate-client-weaviateclient-use-with-pydantic/4779/3 "2024-10-12T17:02:24Z")

</div>

> [@DudaNogueira](#):
>
> `pip freeze | grep weaviate`

langchain-weaviate==0.0.3  
weaviate==0.1.0  
weaviate-client==4.8.1

I worked around by disabling pydantic check for now. ☹ for this class. Not ideal

---

<div class="post-metadata">

**Author:** ![Dirk](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dirk/32/46_2.png) [@Dirk](https://forum.weaviate.io/u/Dirk)\
**Post date:** [October 13, 2024, 7:46am UTC](https://forum.weaviate.io/t/weaviate-client-weaviateclient-use-with-pydantic/4779/4 "2024-10-13T07:46:02Z")

</div>

Hi, can you please post a full example?
