Significant-Gravitas / AutoGPT

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
https://agpt.co
MIT License
166.69k stars 44.1k forks source link

github_access_token #5751

Closed aboda28 closed 9 months ago

aboda28 commented 11 months ago

⚠️ Search for existing issues first ⚠️

Which Operating System are you using?

MacOS

Which version of AutoGPT are you using?

Latest Release

Do you use OpenAI GPT-3 or GPT-4?

GPT-3.5

Which area covers your issue best?

Installation and setup

Describe your issue.

  1. Open the '.github_access_token' file in the same directory as this script and paste the token into this file.
    1. Save the file and run the setup command again.

where is github acces token file ? idid make new token

Screen Shot 2023-10-15 at 4 45 14 PM

Upload Activity Log Content

No response

Upload Error Log Content

No response

BarneyChambers commented 11 months ago

Just to sanity check:

Are you saving the github token inside the file .github_access_token, and are you making sure there isnt any new lines or whitespace or other character being added to the file?

aboda28 commented 11 months ago

Where i can find the file or im who will creat it ?

aboda28 commented 11 months ago

Just to sanity check:

Are you saving the github token inside the file .github_access_token, and are you making sure there isnt any new lines or whitespace or other character being added to the file?

Where i can find the file or im who will creat it ?

BarneyChambers commented 11 months ago

If there's no file at the root, just type in your terminal (assuming mac/linux)

touch .github_access_token

Then you can add your key in the file

aboda28 commented 11 months ago

its Mac and will try now

aboda28 commented 11 months ago

If there's no file at the root, just type in your terminal (assuming mac/linux)

touch .github_access_token

Then you can add your key in the file

idid do what you say and its working but I get other problem

Last login: Tue Oct 17 16:31:34 on ttys001 abdallah@Korbas-MBP ~ % cd auto-gpt cd: no such file or directory: auto-gpt abdallah@Korbas-MBP ~ % cd autogpt abdallah@Korbas-MBP autogpt % ./run setup

   d8888          888             .d8888b.  8888888b. 88888888888 
  d88888          888            d88P  Y88b 888   Y88b    888     
 d88P888          888            888    888 888    888    888     
d88P 888 888  888 888888 .d88b.  888        888   d88P    888     

d88P 888 888 888 888 d88""88b 888 88888 8888888P" 888
d88P 888 888 888 888 888 888 888 888 888 888
d8888888888 Y88b 888 Y88b. Y88..88P Y88b d88P 888 888
d88P 888 "Y88888 "Y888 "Y88P" "Y8888P88 888 888

🚀 Setup initiated...

poetry could not be found Installing poetry... Retrieving Poetry metadata Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py", line 1348, in do_open h.request(req.get_method(), req.selector, req.data, headers, File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/http/client.py", line 1286, 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 1332, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/http/client.py", line 1281, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/http/client.py", line 1041, in _send_output self.send(msg) File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/http/client.py", line 979, in send self.connect() File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/http/client.py", line 1458, in connect self.sock = self._context.wrap_socket(self.sock, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/ssl.py", line 517, in wrap_socket return self.sslsocket_class._create( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/ssl.py", line 1075, in _create self.do_handshake() File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/ssl.py", line 1346, in do_handshake self._sslobj.do_handshake() ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1002)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "", line 945, in File "", line 923, in main File "", line 524, in run File "", line 786, in get_version File "", line 847, in _get File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py", line 216, in urlopen return opener.open(url, data, timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py", line 519, in open response = self._open(req, data) ^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py", line 536, in _open result = self._call_chain(self.handle_open, protocol, protocol + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py", line 496, in _call_chain result = func(args) ^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py", line 1391, in https_open return self.do_open(http.client.HTTPSConnection, req, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py", line 1351, in do_open raise URLError(err) urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1002)> ❌ There was an issue with the installation. ✅ GitHub account is configured with username: aboda28 and email: aboda28@gmail.com ✅ GitHub access token loaded successfully. Traceback (most recent call last): File "/Users/abdallah/AutoGPT/cli.py", line 891, in cli() File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/click/core.py", line 1130, in call return self.main(args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/click/core.py", line 1055, in main rv = self.invoke(ctx) ^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/click/core.py", line 1657, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/click/core.py", line 1404, in invoke return ctx.invoke(self.callback, ctx.params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/click/core.py", line 760, in invoke return __callback(*args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/abdallah/AutoGPT/cli.py", line 126, in setup response = requests.get("https://api.github.com/user", headers=headers) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/requests/api.py", line 73, in get return request("get", url, params=params, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/requests/api.py", line 59, in request return session.request(method=method, url=url, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/requests/sessions.py", line 573, in request prep = self.prepare_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/requests/sessions.py", line 484, in prepare_request p.prepare( File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/requests/models.py", line 369, in prepare self.prepare_headers(headers) File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/requests/models.py", line 491, in prepare_headers check_header_validity(header) File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/requests/utils.py", line 1043, in check_header_validity _validate_header_part(value, "value", HEADER_VALIDATORS[type(value)][1]) File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/requests/utils.py", line 1048, in _validate_header_part raise InvalidHeader( requests.exceptions.InvalidHeader: Invalid leading whitespace, reserved character(s), or returncharacter(s) in header value: 'token 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\n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' abdallah@Korbas-MBP autogpt %

aboda28 commented 11 months ago
Screen Shot 2023-10-17 at 4 43 16 PM
WanlinLi2021 commented 11 months ago

I'm having the same problem. Need help. Thanks a lot.

image

WanlinLi2021 commented 11 months ago

After using Python 3.9, the problem is solved.

aboda28 commented 11 months ago

After using Python 3.9, the problem is solved.

u mean install latest version and install 3.9 ?

WanlinLi2021 commented 11 months ago

After using Python 3.9, the problem is solved.

u mean install latest version and install 3.9 ?

I actually created an environment with Conda and installed Python in it. Maybe not necessarily using 3.9, I tried Python 3.9, and it works here.

https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-python.html

zhwongbo commented 11 months ago

If there's no file at the root, just type in your terminal (assuming mac/linux) touch .github_access_token Then you can add your key in the file

idid do what you say and its working but I get other problem

Last login: Tue Oct 17 16:31:34 on ttys001 abdallah@Korbas-MBP ~ % cd auto-gpt cd: no such file or directory: auto-gpt abdallah@Korbas-MBP ~ % cd autogpt abdallah@Korbas-MBP autogpt % ./run setup

   d8888          888             .d8888b.  8888888b. 88888888888 
  d88888          888            d88P  Y88b 888   Y88b    888     
 d88P888          888            888    888 888    888    888     
d88P 888 888  888 888888 .d88b.  888        888   d88P    888     

d88P 888 888 888 888 d88""88b 888 88888 8888888P" 888 d88P 888 888 888 888 888 888 888 888 888 888 d8888888888 Y88b 888 Y88b. Y88..88P Y88b d88P 888 888 d88P 888 "Y88888 "Y888 "Y88P" "Y8888P88 888 888

🚀 Setup initiated...

poetry could not be found Installing poetry... Retrieving Poetry metadata Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py", line 1348, in do_open h.request(req.get_method(), req.selector, req.data, headers, File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/http/client.py", line 1286, 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 1332, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/http/client.py", line 1281, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/http/client.py", line 1041, in _send_output self.send(msg) File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/http/client.py", line 979, in send self.connect() File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/http/client.py", line 1458, in connect self.sock = self._context.wrap_socket(self.sock, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/ssl.py", line 517, in wrap_socket return self.sslsocket_class._create( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/ssl.py", line 1075, in _create self.do_handshake() File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/ssl.py", line 1346, in do_handshake self._sslobj.do_handshake() ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1002)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "", line 945, in File "", line 923, in main File "", line 524, in run File "", line 786, in get_version File "", line 847, in _get File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py", line 216, in urlopen return opener.open(url, data, timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py", line 519, in open response = self._open(req, data) ^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py", line 536, in _open result = self._call_chain(self.handle_open, protocol, protocol + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py", line 496, in _call_chain result = func(args) ^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py", line 1391, in https_open return self.do_open(http.client.HTTPSConnection, req, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py", line 1351, in do_open raise URLError(err) urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1002)> ❌ There was an issue with the installation. ✅ GitHub account is configured with username: aboda28 and email: aboda28@gmail.com ✅ GitHub access token loaded successfully. Traceback (most recent call last): File "/Users/abdallah/AutoGPT/cli.py", line 891, in cli() File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/click/core.py", line 1130, in call return self.main(args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/click/core.py", line 1055, in main rv = self.invoke(ctx) ^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/click/core.py", line 1657, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/click/core.py", line 1404, in invoke return ctx.invoke(self.callback, ctx.params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/click/core.py", line 760, in invoke return __callback(*args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/abdallah/AutoGPT/cli.py", line 126, in setup response = requests.get("https://api.github.com/user", headers=headers) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/requests/api.py", line 73, in get return request("get", url, params=params, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/requests/api.py", line 59, in request return session.request(method=method, url=url, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/requests/sessions.py", line 573, in request prep = self.prepare_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/requests/sessions.py", line 484, in prepare_request p.prepare( File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/requests/models.py", line 369, in prepare self.prepare_headers(headers) File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/requests/models.py", line 491, in prepare_headers check_header_validity(header) File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/requests/utils.py", line 1043, in check_header_validity _validate_header_part(value, "value", HEADER_VALIDATORS[type(value)][1]) File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/requests/utils.py", line 1048, in _validate_header_part raise InvalidHeader( requests.exceptions.InvalidHeader: Invalid leading whitespace, reserved character(s), or returncharacter(s) in header value: 'token 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\n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' abdallah@Korbas-MBP autogpt %

You can install poetry manually by executing "pip3 install poetry“

aboda28 commented 11 months ago

If there's no file at the root, just type in your terminal (assuming mac/linux) touch .github_access_token Then you can add your key in the file

idid do what you say and its working but I get other problem Last login: Tue Oct 17 16:31:34 on ttys001 abdallah@Korbas-MBP ~ % cd auto-gpt cd: no such file or directory: auto-gpt abdallah@Korbas-MBP ~ % cd autogpt abdallah@Korbas-MBP autogpt % ./run setup

   d8888          888             .d8888b.  8888888b. 88888888888 
  d88888          888            d88P  Y88b 888   Y88b    888     
 d88P888          888            888    888 888    888    888     
d88P 888 888  888 888888 .d88b.  888        888   d88P    888     

d88P 888 888 888 888 d88""88b 888 88888 8888888P" 888 d88P 888 888 888 888 888 888 888 888 888 888 d8888888888 Y88b 888 Y88b. Y88..88P Y88b d88P 888 888 d88P 888 "Y88888 "Y888 "Y88P" "Y8888P88 888 888 🚀 Setup initiated... poetry could not be found Installing poetry... Retrieving Poetry metadata Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py", line 1348, in do_open h.request(req.get_method(), req.selector, req.data, headers, File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/http/client.py", line 1286, 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 1332, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/http/client.py", line 1281, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/http/client.py", line 1041, in _send_output self.send(msg) File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/http/client.py", line 979, in send self.connect() File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/http/client.py", line 1458, in connect self.sock = self._context.wrap_socket(self.sock, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/ssl.py", line 517, in wrap_socket return self.sslsocket_class._create( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/ssl.py", line 1075, in _create self.do_handshake() File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/ssl.py", line 1346, in do_handshake self._sslobj.do_handshake() ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1002) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "", line 945, in File "", line 923, in main File "", line 524, in run File "", line 786, in get_version File "", line 847, in _get File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py", line 216, in urlopen return opener.open(url, data, timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py", line 519, in open response = self._open(req, data) ^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py", line 536, in _open result = self._call_chain(self.handle_open, protocol, protocol + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py", line 496, in _call_chain result = func(args) ^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py", line 1391, in https_open return self.do_open(http.client.HTTPSConnection, req, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py", line 1351, in do_open raise URLError(err) urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1002)> ❌ There was an issue with the installation. ✅ GitHub account is configured with username: aboda28 and email: aboda28@gmail.com ✅ GitHub access token loaded successfully. Traceback (most recent call last): File "/Users/abdallah/AutoGPT/cli.py", line 891, in cli() File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/click/core.py", line 1130, in call return self.main(args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/click/core.py", line 1055, in main rv = self.invoke(ctx) ^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/click/core.py", line 1657, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/click/core.py", line 1404, in invoke return ctx.invoke(self.callback, ctx.params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/click/core.py", line 760, in invoke return __callback(*args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/abdallah/AutoGPT/cli.py", line 126, in setup response = requests.get("https://api.github.com/user", headers=headers) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/requests/api.py", line 73, in get return request("get", url, params=params, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/requests/api.py", line 59, in request return session.request(method=method, url=url, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/requests/sessions.py", line 573, in request prep = self.prepare_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/requests/sessions.py", line 484, in prepare_request p.prepare( File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/requests/models.py", line 369, in prepare self.prepare_headers(headers) File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/requests/models.py", line 491, in prepare_headers check_header_validity(header) File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/requests/utils.py", line 1043, in check_header_validity _validate_header_part(value, "value", HEADER_VALIDATORS[type(value)][1]) File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/requests/utils.py", line 1048, in _validate_header_part raise InvalidHeader( requests.exceptions.InvalidHeader: Invalid leading whitespace, reserved character(s), or returncharacter(s) in header value: 'token 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\n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' abdallah@Korbas-MBP autogpt %

You can install poetry manually by executing "pip3 install poetry“

its working .. but after that will run setup again ?

aboda28 commented 11 months ago

Setup completed successfully. Benchmark Server starting please wait... Agent 'aboda28' starting please wait... kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec] abdallah@Korbas-MacBook-Pro AutoGPT % Command not found: agbenchmark Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/Users/abdallah/Desktop/AutoGPT/autogpts/aboda28/forge/main.py", line 3, in import uvicorn ModuleNotFoundError: No module named 'uvicorn'

Screen Shot 2023-10-23 at 9 36 10 PM
zhwongbo commented 11 months ago

Setup completed successfully. Benchmark Server starting please wait... Agent 'aboda28' starting please wait... kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec] abdallah@Korbas-MacBook-Pro AutoGPT % Command not found: agbenchmark Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/Users/abdallah/Desktop/AutoGPT/autogpts/aboda28/forge/main.py", line 3, in import uvicorn ModuleNotFoundError: No module named 'uvicorn' Screen Shot 2023-10-23 at 9 36 10 PM

You need to install “uvicorn”

github-actions[bot] commented 9 months ago

This issue has automatically been marked as stale because it has not had any activity in the last 50 days. You can unstale it by commenting or removing the label. Otherwise, this issue will be closed in 10 days.

github-actions[bot] commented 9 months ago

This issue was closed automatically because it has been stale for 10 days with no activity.

asilvy90 commented 9 months ago

i cant figure out how to input my github token. how do i open the '.github_access_token' file in the same directory as this script and paste the token into this file.?

orkeven commented 8 months ago

If there's no file at the root, just type in your terminal (assuming mac/linux)

touch .github_access_token

Then you can add your key in the file

Thank you for this suggestion. I have done this but it isn't working. I created the file in the AutoGPT folder in my fork and then cloned everything all over again to my pc, just to be sure, then I ran the setup but got the same error "Failed to validate GitHub access token. Please ensure it is correct." after "Github access token loaded successfully". I am using a Linux system. On Windows, it is a whole different ball game of errors, that is why I switched to Linux.

ocken commented 6 months ago

If there's no file at the root, just type in your terminal (assuming mac/linux) touch .github_access_token Then you can add your key in the file

idid do what you say and its working but I get other problem Last login: Tue Oct 17 16:31:34 on ttys001 abdallah@Korbas-MBP ~ % cd auto-gpt cd: no such file or directory: auto-gpt abdallah@Korbas-MBP ~ % cd autogpt abdallah@Korbas-MBP autogpt % ./run setup

   d8888          888             .d8888b.  8888888b. 88888888888 
  d88888          888            d88P  Y88b 888   Y88b    888     
 d88P888          888            888    888 888    888    888     
d88P 888 888  888 888888 .d88b.  888        888   d88P    888     

d88P 888 888 888 888 d88""88b 888 88888 8888888P" 888 d88P 888 888 888 888 888 888 888 888 888 888 d8888888888 Y88b 888 Y88b. Y88..88P Y88b d88P 888 888 d88P 888 "Y88888 "Y888 "Y88P" "Y8888P88 888 888 🚀 Setup initiated... poetry could not be found Installing poetry... Retrieving Poetry metadata Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py", line 1348, in do_open h.request(req.get_method(), req.selector, req.data, headers, File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/http/client.py", line 1286, 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 1332, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/http/client.py", line 1281, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/http/client.py", line 1041, in _send_output self.send(msg) File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/http/client.py", line 979, in send self.connect() File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/http/client.py", line 1458, in connect self.sock = self._context.wrap_socket(self.sock, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/ssl.py", line 517, in wrap_socket return self.sslsocket_class._create( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/ssl.py", line 1075, in _create self.do_handshake() File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/ssl.py", line 1346, in do_handshake self._sslobj.do_handshake() ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1002) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "", line 945, in File "", line 923, in main File "", line 524, in run File "", line 786, in get_version File "", line 847, in _get File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py", line 216, in urlopen return opener.open(url, data, timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py", line 519, in open response = self._open(req, data) ^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py", line 536, in _open result = self._call_chain(self.handle_open, protocol, protocol + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py", line 496, in _call_chain result = func(args) ^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py", line 1391, in https_open return self.do_open(http.client.HTTPSConnection, req, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py", line 1351, in do_open raise URLError(err) urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1002)> ❌ There was an issue with the installation. ✅ GitHub account is configured with username: aboda28 and email: aboda28@gmail.com ✅ GitHub access token loaded successfully. Traceback (most recent call last): File "/Users/abdallah/AutoGPT/cli.py", line 891, in cli() File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/click/core.py", line 1130, in call return self.main(args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/click/core.py", line 1055, in main rv = self.invoke(ctx) ^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/click/core.py", line 1657, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/click/core.py", line 1404, in invoke return ctx.invoke(self.callback, ctx.params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/click/core.py", line 760, in invoke return __callback(*args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/abdallah/AutoGPT/cli.py", line 126, in setup response = requests.get("https://api.github.com/user", headers=headers) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/requests/api.py", line 73, in get return request("get", url, params=params, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/requests/api.py", line 59, in request return session.request(method=method, url=url, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/requests/sessions.py", line 573, in request prep = self.prepare_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/requests/sessions.py", line 484, in prepare_request p.prepare( File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/requests/models.py", line 369, in prepare self.prepare_headers(headers) File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/requests/models.py", line 491, in prepare_headers check_header_validity(header) File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/requests/utils.py", line 1043, in check_header_validity _validate_header_part(value, "value", HEADER_VALIDATORS[type(value)][1]) File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/requests/utils.py", line 1048, in _validate_header_part raise InvalidHeader( requests.exceptions.InvalidHeader: Invalid leading whitespace, reserved character(s), or returncharacter(s) in header value: 'token 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\n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' abdallah@Korbas-MBP autogpt %

You can install poetry manually by executing "pip3 install poetry“

thank you very much!