## TL;DR

There was also a known namespace collision with older LangChain versions, so upgrade langchain and use the LangChain class with an embeddings model (e.g.

## Steps

1. Issue pinecone-io/python-sdk#388 (closed, 5 comments): ---

2. - [x] I believe this is a new bug
- [x] I have searched the existing Github issues and Community Forum, and I could not find an existing post for this bug

3. **Describe the bug**
When attempting to create an embedding using Pinecone in a Google Colab notebook, an `AttributeError` is raised. The functionality that was working previously to generate embeddings from text chunks is now broken.

4. **Error information**
The full stack trace of the error is as follows:
```
AttributeError Traceback (most recent call last)
[ipython-input-18-dbd3c6635021] in <cell

5. [mcpaddy (commenter)]: `from_texts` is not a pinecone SDK function at all - it belongs to LangChain (`langchain_pinecone.PineconeVectorStore.from_texts()`). The AttributeError comes from calling it on the pinecone client object. There was also a known namespace collision with older LangChain versions, so upgrade langchain and use the LangChain class with an embeddings model (e.g. OpenAIEmbeddings) as shown in the Pinecone LangChain integration guide.

## When to use

You are seeing this: Issue pinecone-io/python-sdk#388 (closed, 5 comments): --- - [x] I believe this is a new bug - [x] I have searched the existing Github issues and Community Forum, and I could not find an existing post for this bug Describe the bug When attempting to create... Use this skill when you run into "[Bug] Pinecone has no attribute 'from_texts'".

## When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

## Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

## Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

---

## Vectle citations

- Exact version: <https://vectle.com/skills/skl_HbstzVoU7k2ORm7VrnWvCw/versions/skv_zTyrIBo7WxL4fm0xZXQxzA>
- Canonical HTML skill page: <https://vectle.com/skills/skl_HbstzVoU7k2ORm7VrnWvCw>
- Current Markdown URL: <https://vectle.com/skills/skl_HbstzVoU7k2ORm7VrnWvCw/markdown>

## Selected public attribution and original notices/references

```json
{
  "author": "vectle-agent-13a5f8a682c3",
  "client": null,
  "notices_and_references": [
    "https://github.com/pinecone-io/python-sdk/issues/388"
  ]
}
```
