AutoGPT: Pinecone Error
Duplicates
- I have searched the existing issues
Steps to reproduce 🕹
Traceback (most recent call last): File "scripts/main.py", line 286, in <module> memory = PineconeMemory() File "/Users/areebpasha/Desktop/Auto GPT copy/Auto-GPT/scripts/config.py", line 17, in __call__ cls._instances[cls] = super( File "/Users/areebpasha/Desktop/Auto GPT copy/Auto-GPT/scripts/memory.py", line 30, in __init__ if table_name not in pinecone.list_indexes(): File "/opt/anaconda3/lib/python3.8/site-packages/pinecone/manage.py", line 185, in list_indexes response = api_instance.list_indexes() File "/opt/anaconda3/lib/python3.8/site-packages/pinecone/core/client/api_client.py", line 776, in __call__ return self.callable(self, *args, **kwargs) File "/opt/anaconda3/lib/python3.8/site-packages/pinecone/core/client/api/index_operations_api.py", line 1132, in __list_indexes return self.call_with_http_info(**kwargs) File "/opt/anaconda3/lib/python3.8/site-packages/pinecone/core/client/api_client.py", line 838, in call_with_http_info return self.api_client.call_api( File "/opt/anaconda3/lib/python3.8/site-packages/pinecone/core/client/api_client.py", line 413, in call_api return self.__call_api(resource_path, method, File "/opt/anaconda3/lib/python3.8/site-packages/pinecone/core/client/api_client.py", line 200, in __call_api response_data = self.request( File "/opt/anaconda3/lib/python3.8/site-packages/pinecone/core/client/api_client.py", line 439, in request return self.rest_client.GET(url, File "/opt/anaconda3/lib/python3.8/site-packages/pinecone/core/client/rest.py", line 236, in GET return self.request("GET", url, File "/opt/anaconda3/lib/python3.8/site-packages/pinecone/core/client/rest.py", line 202, in request r = self.pool_manager.request(method, url, File "/opt/anaconda3/lib/python3.8/site-packages/urllib3/request.py", line 74, in request return self.request_encode_url( File "/opt/anaconda3/lib/python3.8/site-packages/urllib3/request.py", line 96, in request_encode_url return self.urlopen(method, url, **extra_kw) File "/opt/anaconda3/lib/python3.8/site-packages/urllib3/poolmanager.py", line 376, in urlopen response = conn.urlopen(method, u.request_uri, **kw) File "/opt/anaconda3/lib/python3.8/site-packages/urllib3/connectionpool.py", line 703, in urlopen httplib_response = self._make_request( File "/opt/anaconda3/lib/python3.8/site-packages/urllib3/connectionpool.py", line 398, in _make_request conn.request(method, url, **httplib_request_kw) File "/opt/anaconda3/lib/python3.8/site-packages/urllib3/connection.py", line 239, in request super(HTTPConnection, self).request(method, url, body=body, headers=headers) File "/opt/anaconda3/lib/python3.8/http/client.py", line 1255, in request self._send_request(method, url, body, headers, encode_chunked) File "/opt/anaconda3/lib/python3.8/http/client.py", line 1296, in _send_request self.putheader(hdr, value) File "/opt/anaconda3/lib/python3.8/site-packages/urllib3/connection.py", line 224, in putheader _HTTPConnection.putheader(self, header, *values) File "/opt/anaconda3/lib/python3.8/http/client.py", line 1232, in putheader if _is_illegal_header_value(values[i]): TypeError: expected string or bytes-like object
Current behavior 😯
Does not produce output.
Expected behavior 🤔
Should work as shown in the demo. Any assistance is greatly appreciated.
Your prompt 📝
# Paste your prompt here
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 4
- Comments: 22 (6 by maintainers)
Pinecone is a hard requirement at the moment - you can’t run autogpt without it
Here’s the issue and what I did to solve it.
Solution:
Once the .env file is setup, the actual index file that Auto-GPT uses takes about 5-10 to be usable, check the Pinecone website to see when the auto-gpt index has been initialized before trying the main.py again.
Same issue as OP on a fresh install, like brand new 30 min ago, never used – Pinecone API and ENV are all in .env.template from the jump and saw a bunch of fixes here that said to run requirements again, re-name .env again, – did all this multiple times – but still getting this…
I think all the threads on this indicate something more than user error at this point.