AutoGPT: strange error after pulling latest commits a few minutes ago.

Duplicates

  • I have searched the existing issues

Steps to reproduce 🕹

run main.py. It doesn’t matter whether I use --speach or --continuous.

Current behavior 😯

I receive the following errors.: Welcome back! Would you like me to return to being Entrepreneur-GPT? Continue with the last settings? Name: Entrepreneur-GPT Role: an AI designed to autonomously develop and run businesses with the sole goal of increasing your net worth. Goals: [‘Increase net worth.’, ‘Develop and manage multiple businesses autonomously.’, ‘Play to your strengths as a Large Language Model.’]
Continue (y/n): Traceback (most recent call last): File “/Users/jar/Auto-GPT/scripts/main.py”, line 286, in <module> memory = PineconeMemory() File “/Users/jar/Auto-GPT/scripts/config.py”, line 17, in call cls._instances[cls] = super( File “/Users/jar/Auto-GPT/scripts/memory.py”, line 30, in init if table_name not in pinecone.list_indexes(): File “/Users/jar/miniconda3/lib/python3.10/site-packages/pinecone/manage.py”, line 185, in list_indexes response = api_instance.list_indexes() File “/Users/jar/miniconda3/lib/python3.10/site-packages/pinecone/core/client/api_client.py”, line 776, in call return self.callable(self, *args, **kwargs) File “/Users/jar/miniconda3/lib/python3.10/site-packages/pinecone/core/client/api/index_operations_api.py”, line 1132, in __list_indexes return self.call_with_http_info(**kwargs) File “/Users/jar/miniconda3/lib/python3.10/site-packages/pinecone/core/client/api_client.py”, line 838, in call_with_http_info return self.api_client.call_api( File “/Users/jar/miniconda3/lib/python3.10/site-packages/pinecone/core/client/api_client.py”, line 413, in call_api return self.__call_api(resource_path, method, File “/Users/jar/miniconda3/lib/python3.10/site-packages/pinecone/core/client/api_client.py”, line 200, in __call_api response_data = self.request( File “/Users/jar/miniconda3/lib/python3.10/site-packages/pinecone/core/client/api_client.py”, line 439, in request return self.rest_client.GET(url, File “/Users/jar/miniconda3/lib/python3.10/site-packages/pinecone/core/client/rest.py”, line 236, in GET return self.request(“GET”, url, File “/Users/jar/miniconda3/lib/python3.10/site-packages/pinecone/core/client/rest.py”, line 202, in request r = self.pool_manager.request(method, url, File “/Users/jar/miniconda3/lib/python3.10/site-packages/urllib3/request.py”, line 74, in request return self.request_encode_url( File “/Users/jar/miniconda3/lib/python3.10/site-packages/urllib3/request.py”, line 96, in request_encode_url return self.urlopen(method, url, **extra_kw) File “/Users/jar/miniconda3/lib/python3.10/site-packages/urllib3/poolmanager.py”, line 376, in urlopen response = conn.urlopen(method, u.request_uri, **kw) File “/Users/jar/miniconda3/lib/python3.10/site-packages/urllib3/connectionpool.py”, line 703, in urlopen httplib_response = self._make_request( File “/Users/jar/miniconda3/lib/python3.10/site-packages/urllib3/connectionpool.py”, line 398, in _make_request conn.request(method, url, **httplib_request_kw) File “/Users/jar/miniconda3/lib/python3.10/site-packages/urllib3/connection.py”, line 239, in request super(HTTPConnection, self).request(method, url, body=body, headers=headers) File “/Users/jar/miniconda3/lib/python3.10/http/client.py”, line 1282, in request self._send_request(method, url, body, headers, encode_chunked) File “/Users/jar/miniconda3/lib/python3.10/http/client.py”, line 1323, in _send_request self.putheader(hdr, value) File “/Users/jar/miniconda3/lib/python3.10/site-packages/urllib3/connection.py”, line 224, in putheader _HTTPConnection.putheader(self, header, *values) File “/Users/jar/miniconda3/lib/python3.10/http/client.py”, line 1259, in putheader if _is_illegal_header_value(values[i]): TypeError: expected string or bytes-like object

Expected behavior 🤔

Auto-gpt should run. I wanted to make sure I didn’t accidentally make a change that broke everything, so I re-cloned the repo and ran it from scratch. I also made sure all dependencies are installed and they seem to be working. It was working perfectly when I first cloned the repo about two days ago.

Your prompt 📝

# Paste your prompt here
```Name:  Entrepreneur-GPT
Role:  an AI designed to autonomously develop and run businesses with the sole goal of increasing your net worth.
Goals: ['Increase net worth.', 'Develop and manage multiple businesses autonomously.', 'Play to your strengths as a Large Language Model.']  

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 1
  • Comments: 19 (1 by maintainers)

Most upvoted comments

@stmcculloch is using pinecone mandatory now? I’m getting the same error and I’m not trying to use Pinecone and have left its’ API key blank.

Yes, the old memory implementation was removed.

Hey everyone. I’ve tried all of the above but still receive the 'TypeError: expected string or bytes-like object, got ‘NoneType’.

I’ve tried pip requirement.txt hoping that would do it but unfortunately didn’t happen. I have the Pinecone API and openai API in the .env file - Any help would be greatly appreciated. My dev knowledge is Novice so apologies if this is a rudimentary problem to fix.

The readout i get is as follows:

File "/Users/apple/Downloads/ai/Auto-GPT/scripts/main.py", line 286, in <module> memory = PineconeMemory() ^^^^^^^^^^^^^^^^ File "/Users/apple/Downloads/ai/Auto-GPT/scripts/config.py", line 17, in __call__ cls._instances[cls] = super( ^^^^^^ File "/Users/apple/Downloads/ai/Auto-GPT/scripts/memory.py", line 30, in __init__ if table_name not in pinecone.list_indexes(): ^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pinecone/manage.py", line 185, in list_indexes response = api_instance.list_indexes() ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pinecone/core/client/api_client.py", line 776, in __call__ return self.callable(self, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pinecone/core/client/api/index_operations_api.py", line 1132, in __list_indexes return self.call_with_http_info(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pinecone/core/client/api_client.py", line 838, in call_with_http_info return self.api_client.call_api( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pinecone/core/client/api_client.py", line 413, in call_api return self.__call_api(resource_path, method, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pinecone/core/client/api_client.py", line 200, in __call_api response_data = self.request( ^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pinecone/core/client/api_client.py", line 439, in request return self.rest_client.GET(url, ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pinecone/core/client/rest.py", line 236, in GET return self.request("GET", url, ^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pinecone/core/client/rest.py", line 202, in request r = self.pool_manager.request(method, url, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/urllib3/request.py", line 74, in request return self.request_encode_url( ^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/urllib3/request.py", line 96, in request_encode_url return self.urlopen(method, url, **extra_kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/urllib3/poolmanager.py", line 376, in urlopen response = conn.urlopen(method, u.request_uri, **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/urllib3/connectionpool.py", line 703, in urlopen httplib_response = self._make_request( ^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/urllib3/connectionpool.py", line 398, in _make_request conn.request(method, url, **httplib_request_kw) File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/urllib3/connection.py", line 244, in request super(HTTPConnection, self).request(method, url, body=body, headers=headers) File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/http/client.py", line 1282, in request self._send_request(method, url, body, headers, encode_chunked) File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/http/client.py", line 1323, in _send_request self.putheader(hdr, value) File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/urllib3/connection.py", line 224, in putheader _HTTPConnection.putheader(self, header, *values) File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/http/client.py", line 1259, in putheader if _is_illegal_header_value(values[i]): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: expected string or bytes-like object, got 'NoneType'

looks like a missing module do pip install Pillow

Ha funny, same! on MacOS despite me removing the .template it apparently didn’t remove it. Thanks a lot!

After waiting a few minutes… It’s working!!!

Only when there’s changes to that requirements.txt file. But when you see module not found errors like that generally that’s you’d want to start.

@postmrtm You’ll want to install requirements.txt again via pip.

Use the new .env.template file and add a pinecone api key: https://github.com/Torantulino/Auto-GPT#-pinecone-api-key-setup

Checkout the new .env.template