# V4 client.close() does not exist?

**URL:** <https://forum.weaviate.io/t/v4-client-close-does-not-exist/1450>\
**Category:** Support\
**Created:** [February 11, 2024, 8:35am UTC](https://forum.weaviate.io/t/v4-client-close-does-not-exist/1450 "2024-02-11T08:35:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rjalex](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/rjalex/32/807_2.png) [@rjalex](https://forum.weaviate.io/u/rjalex)\
**Post date:** [February 11, 2024, 8:35am UTC](https://forum.weaviate.io/t/v4-client-close-does-not-exist/1450/1 "2024-02-11T08:35:13Z")

</div>

### Description

```auto
v4client = weaviate.connect_to_local(
    host = "localhost",
    port = 8077) 

try:
    collection = v4client.collections.get(schema_name)
    
    response = collection.query.near_vector(
        near_vector=searchvector,
        distance=0.75,
        limit=5
    )
    
    for o in response.objects:
        print(o.properties)
finally:
    v4client.close()

```

`--------------------------------------------------------------------------- AttributeError Traceback (most recent call last) Cell In[11], [line 17](vscode-notebook-cell:?execution_count=11&line=17) [15](vscode-notebook-cell:?execution_count=11&line=15) print(o.properties) [16](vscode-notebook-cell:?execution_count=11&line=16) finally: ---> [17](vscode-notebook-cell:?execution_count=11&line=17) v4client.close() AttributeError: 'WeaviateClient' object has no attribute 'close'`

### Server Setup Information

- Weaviate Server Version: image: semitechnologies/weaviate:1.23.2
- Deployment: docker
- Multi Node? no
- Client Language and Version: python - v4.4b6

### Any additional Information

Following the V4 example on page:  
https://weaviate.io/developers/weaviate/api/graphql/search-operators#example

---

<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:** [February 12, 2024, 4:30am UTC](https://forum.weaviate.io/t/v4-client-close-does-not-exist/1450/2 "2024-02-12T04:30:07Z")

</div>

you are on an old beta - please update to the latest version.

---

<div class="post-metadata">

**Author:** ![rjalex](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/rjalex/32/807_2.png) [@rjalex](https://forum.weaviate.io/u/rjalex)\
**Post date:** [February 12, 2024, 7:45am UTC](https://forum.weaviate.io/t/v4-client-close-does-not-exist/1450/3 "2024-02-12T07:45:52Z")

</div>

Thank you @Dirk, which meant upgrading the python client to 4.4.4 which in turn meant upgrading the server to 1.23.7 and also change my custom vectorizing function so that it returned a List and not a numpy array like it silently did until now.
