Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pinecone API Key Bug Fix #440

Merged

Conversation

keenborder786
Copy link
Contributor

Background

  • This PR provides fix to issue Traceback Error #433
  • The issue is basically if you don't provide Pinecone API or Pinecone ENV then the main.py module raises an error.
  • Therefore Pinecone is necessary for the main.py module to work.

Changes

  • I added an exception in main.py before initializing the Pinecone Memory instance. The exception is raised if either pinecone_api_key or pinecone_region is not provided in env.
  • Consequently, I also update the README.md as well to reflect the updated requirements.

No new tests were needed.

@keenborder786 keenborder786 mentioned this pull request Apr 7, 2023
@Torantulino Torantulino merged commit c0aacac into Significant-Gravitas:master Apr 8, 2023
@keenborder786 keenborder786 deleted the pinecone_bug_fix branch April 8, 2023 00:22
@bigsk1 bigsk1 mentioned this pull request Apr 8, 2023
1 task
@chrismjim
Copy link

I'm still receiving an error.

Traceback (most recent call last):
File "/Users/c/Auto-GPT/scripts/main.py", line 285, in
if not cfg.pinecone_api_key or not cfg.pinecone_region: raise Exception("Please provide pinecone_api_key and pinecone_region")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Exception: Please provide pinecone_api_key and pinecone_region

Though I am certain that I have correctly input the API key and region into the .env file.

@2tYfX8sgnrx
Copy link

Also still receiving the same error.

@MrArthurFleck
Copy link

Same....
Exception: Please provide pinecone_api_key and pinecone_region
Confirmed correct API key and region into the .env file.

@MrArthurFleck
Copy link

Figured it out on MacOS:
My .env file was actually named ".env.txt" (I have extensions hidden).
removed .txt from name. Works now.

@mreatwell
Copy link

Screenshot 2023-04-08 at 9 16 21 PM
I'm still running into Pinecone issues, but it looks like it might be because of an index initialization issue on Pinecone's side for my region.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants