# First time caller trying to get this to work, but stuck in the console on what to do

**URL:** <https://community.pinecone.io/t/first-time-caller-trying-to-get-this-to-work-but-stuck-in-the-console-on-what-to-do/1418>\
**Category:** Support\
**Created:** [April 21, 2023, 11:53am UTC](https://community.pinecone.io/t/first-time-caller-trying-to-get-this-to-work-but-stuck-in-the-console-on-what-to-do/1418 "2023-04-21T11:53:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![herojig](https://sea2.discourse-cdn.com/flex020/user_avatar/community.pinecone.io/herojig/32/307_2.png) [@herojig](https://community.pinecone.io/u/herojig)\
**Post date:** [April 21, 2023, 11:53am UTC](https://community.pinecone.io/t/first-time-caller-trying-to-get-this-to-work-but-stuck-in-the-console-on-what-to-do/1418/1 "2023-04-21T11:53:03Z")

</div>

Hi all, I am using the starter plan (it’s a blank slate now) but I have written a python script locally to index certain docs on my hard drive. The script creates a valid output.json file, but the script dies when it tries to upload to Pinecone:

```auto
  File "/Users/jigsgaton/Documents/Python_Projects/Working scripts/pinecone2.py", line 22, in <module>
    api_key = os.environ["PINECONE_API_KEY"]
              ~~~~~~~~~~ ^^^^^^^^^^^^^^^^^^^^
  File "<frozen os>", line 679, in __getitem__
KeyError: 'PINECONE_API_KEY'

```

Here is the [script I am running](https://github.com/herojig/Python/blob/main/pinecone2.py).

I have keys, that’s all good, and it matches the one in the script, but still no go.

---

<div class="post-metadata">

**Author:** ![rschwabco](https://sea2.discourse-cdn.com/flex020/user_avatar/community.pinecone.io/rschwabco/32/1537_2.png) [@rschwabco](https://community.pinecone.io/u/rschwabco)\
**Post date:** [October 17, 2023, 5:42pm UTC](https://community.pinecone.io/t/first-time-caller-trying-to-get-this-to-work-but-stuck-in-the-console-on-what-to-do/1418/2 "2023-10-17T17:42:40Z")

</div>

Hi @herojig, and sorry for the late reply. I was unable to reproduce this issue since the script you linked isn’t available. Please reopen if you are still experiencing it.

---

<div class="post-metadata">

**Author:** ![rschwabco](https://sea2.discourse-cdn.com/flex020/user_avatar/community.pinecone.io/rschwabco/32/1537_2.png) [@rschwabco](https://community.pinecone.io/u/rschwabco)\
**Post date:** [October 17, 2023, 5:42pm UTC](https://community.pinecone.io/t/first-time-caller-trying-to-get-this-to-work-but-stuck-in-the-console-on-what-to-do/1418/3 "2023-10-17T17:42:45Z")

</div>

Closed on October 17, 2023, 5:42pm UTC


