# AttributeError: 'DataObject' object has no attribute 'items' in v4 Python Client

**URL:** <https://forum.weaviate.io/t/attributeerror-dataobject-object-has-no-attribute-items-in-v4-python-client/977>\
**Category:** Support\
**Created:** [November 17, 2023, 6:56pm UTC](https://forum.weaviate.io/t/attributeerror-dataobject-object-has-no-attribute-items-in-v4-python-client/977 "2023-11-17T18:56:45Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [November 17, 2023, 10:50pm UTC](https://forum.weaviate.io/t/attributeerror-dataobject-object-has-no-attribute-items-in-v4-python-client/977/2 "2023-11-17T22:50:02Z")

</div>

Hi @Maruthi !!

Thanks jumping in on our new V4 client!! 🤗

~I believe we have a bug 🪲 here!~ (or not)

consider the following code, based on your [previous thread](https://forum.weaviate.io/t/vectors-are-not-loading-into-the-local-db-using-python-client-v4/976/3):

```auto
import json
import requests
import weaviate
import weaviate.classes as wvc
from fastembed.embedding import FlagEmbedding as Embedding

client = weaviate.connect_to_local(
    port=8080,
    grpc_port=50051
)

embedding_model = Embedding(model_name="BAAI/bge-base-en", max_length=512)

if client.collections.exists("new"):
    client.collections.delete("new") 

questions = client.collections.create(
    name="new",
    vectorizer_config=None,
    generative_config=None,
)

resp = requests.get(
    "https://raw.githubusercontent.com/weaviate-tutorials/quickstart/main/data/jeopardy_tiny.json"
)
data = json.loads(resp.text)
question_objs = list()
for i, d in enumerate(data):
    vec = list(embedding_model.embed(d["Question"]))[0]
    print(f"importing question: {i+1}")
    question_objs.append(
        wvc.DataObject(
            properties={
                "answer": d["Answer"],
                "question": d["Question"],
                "category": d["Category"],
                "test": "test",
            },
            vector=vec
        )
    )

questions = client.collections.get("new")

# this doesn't work
#questions.data.insert(question_objs[0]) 
# this works
questions.data.insert_many([question_objs[0]]) 

```

I will poke about this internally. I was able to use `insert()` but only when I don’t provide the vectors.

Thanks for reporting this!

---

_[View the full topic](https://forum.weaviate.io/t/attributeerror-dataobject-object-has-no-attribute-items-in-v4-python-client/977)._
