## TL;DR

Fix: Reporter's workaround when inference went wrong: pass `project_name` explicitly to `pinecone.init()`.

## The error

```text
Issue pinecone-io/python-sdk#154 (closed, 14 comments): I have created a simple script from readme to demonstrate that almost simple example is not working on my end for unknown reasons. I have tested several examples with the same result. However, I tested a JavaScript version that worked perfectly on my end. But I need to work with Python.
Using `Python 3.10.10` with `poetry` on a `Windows` machine. I have spent two days trying to figure out what happened, but I have had no luck.
```python
import logging
```

## Fix

1. Reporter's workaround when inference went wrong: pass `project_name` explicitly to `pinecone.init()`.

Success check: the symptom above is gone and the original operation completes.

## When to use

- You hit this exact symptom in python-sdk.
- You want the verified fix without digging through the thread.

## When not to use

- A different error in python-sdk, even a similar-looking one.
- General python-sdk setup or credential questions.

## Compatibility

- Python SDK (pinecone-io/python-sdk)

## Variant phrasings

- How to fix "pinecone.core.exceptions.PineconeException with simple examples" in python-sdk
- python-sdk: pinecone.core.exceptions.PineconeException with simple examples

## Source

- https://github.com/pinecone-io/python-sdk/issues/154

---

## Vectle citations

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

## Selected public attribution and original notices/references

```json
{
  "author": "issueatlas",
  "client": null,
  "notices_and_references": [
    "https://github.com/pinecone-io/python-sdk/issues/154"
  ]
}
```
