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

agent have started ,but the website is empty,and in the gitpod env, it can not be installed and can not #7122

Open
1 task done
Iamasdf opened this issue May 4, 2024 · 1 comment

Comments

@Iamasdf
Copy link

Iamasdf commented May 4, 2024

⚠️ Search for existing issues first ⚠️

  • I have searched the existing issues, and there is no existing issue for my problem

Which Operating System are you using?

Linux

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?

Memory

Describe your issue.

I have installed on my server it successed to be runed ,then a visit the IP:8000/app/index.html agent service on browser. it is empty .the browser receive html code is

  | -- | --   |   |   |   |   |     |   |   |   |   |     |   |   |   |   |   |     |   |   |     | <title>auto_gpt_flutter_client</title>   |   |     | <script>   | // The value below is injected by flutter build, do not touch.   | const serviceWorkerVersion = "2777025953";   | </script>   |   | <script src="flutter.js" defer></script>   |     | <script type="module">   | // Import the functions you need from the SDKs you need   | import { initializeApp } from "https://www.gstatic.com/firebasejs/10.4.0/firebase-app.js";   | import { getAnalytics } from "https://www.gstatic.com/firebasejs/10.4.0/firebase-analytics.js";   | // TODO: Add SDKs for Firebase products that you want to use   | // https://firebase.google.com/docs/web/setup#available-libraries   |     | // Your web app's Firebase configuration   | // For Firebase JS SDK v7.20.0 and later, measurementId is optional   | const firebaseConfig = {   | apiKey: "AIzaSyBvYLAK_A0uhFuVPQbTxUdVWbb_Lsur9cg",   | authDomain: "prod-auto-gpt.firebaseapp.com",   | projectId: "prod-auto-gpt",   | storageBucket: "prod-auto-gpt.appspot.com",   | messagingSenderId: "387936576242",   | appId: "1:387936576242:web:7536e0c50dd81b4dd7a66b",   | measurementId: "G-8PRS69JJRL"   | };   |     | // Initialize Firebase   | const app = initializeApp(firebaseConfig);   | const analytics = getAnalytics(app);   | </script>   |   |   | <script>   | window.addEventListener('load', function(ev) {   | // Download main.dart.js   | _flutter.loader.loadEntrypoint({   | serviceWorker: {   | serviceWorkerVersion: serviceWorkerVersion,   | },   | onEntrypointLoaded: function(engineInitializer) {   | engineInitializer.initializeEngine().then(function(appRunner) {   | appRunner.runApp();   | });   | }   | });   | });   | </script>   |   |   |   <title>auto_gpt_flutter_client</title> <script> // The value below is injected by flutter build, do not touch. const serviceWorkerVersion = "2777025953"; </script> <script src="[flutter.js](http://43.201.154.199:8000/app/flutter.js)" defer></script> <script type="module"> // Import the functions you need from the SDKs you need import { initializeApp } from "https://www.gstatic.com/firebasejs/10.4.0/firebase-app.js"; import { getAnalytics } from "https://www.gstatic.com/firebasejs/10.4.0/firebase-analytics.js"; // TODO: Add SDKs for Firebase products that you want to use // https://firebase.google.com/docs/web/setup#available-libraries // Your web app's Firebase configuration // For Firebase JS SDK v7.20.0 and later, measurementId is optional const firebaseConfig = { apiKey: "AIzaSyBvYLAK_A0uhFuVPQbTxUdVWbb_******", authDomain: "prod-auto-gpt.firebaseapp.com", projectId: "prod-auto-gpt", storageBucket: "prod-auto-gpt.appspot.com", messagingSenderId: "387936576242", appId: "1:387936576242:web:7536e0c50dd81********", measurementId: "G-8PRS69JJRL" }; // Initialize Firebase const app = initializeApp(firebaseConfig); const analytics = getAnalytics(app); </script> <script> window.addEventListener('load', function(ev) { // Download main.dart.js _flutter.loader.loadEntrypoint({ serviceWorker: { serviceWorkerVersion: serviceWorkerVersion, }, onEntrypointLoaded: function(engineInitializer) { engineInitializer.initializeEngine().then(function(appRunner) { appRunner.runApp(); }); } }); }); </script>

it display nothing on the page.

then I try to install on gitpod.io:
the agent server can not run.there are some error in it

Installing onnxruntime (1.16.3): Failed

RuntimeError

Unable to find installation candidates for onnxruntime (1.16.3)

at ~/.local/share/pypoetry/venv/lib/python3.12/site-packages/poetry/installation/chooser.py:74 in choose_for
70│
71│ links.append(link)
72│
73│ if not links:
→ 74│ raise RuntimeError(f"Unable to find installation candidates for {package}")
75│
76│ # Get the best link
77│ chosen = max(links, key=lambda link: self._sort_key(package, link))
78│

Cannot install onnxruntime.

⌛ (Re)starting benchmark server...
INFO: Started server process [12459]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:8080 (Press CTRL+C to quit)

⌛ (Re)starting agent 'testing'...
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "/workspace/AutoGPT/autogpts/testing/forge/main.py", line 6, in
import forge.sdk.forge_log
File "/workspace/AutoGPT/autogpts/testing/forge/sdk/init.py", line 5, in
from ..llm import chat_completion_request, create_embedding_request, transcribe_audio
File "/workspace/AutoGPT/autogpts/testing/forge/llm.py", line 3, in
from litellm import AuthenticationError, InvalidRequestError, ModelResponse, acompletion
ModuleNotFoundError: No module named 'litellm'
Traceback (most recent call last):
File "/workspace/AutoGPT/cli.py", line 933, in
cli()
File "/home/gitpod/.pyenv/versions/3.12.3/lib/python3.12/site-packages/click/core.py", line 1157, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/gitpod/.pyenv/versions/3.12.3/lib/python3.12/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/home/gitpod/.pyenv/versions/3.12.3/lib/python3.12/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/gitpod/.pyenv/versions/3.12.3/lib/python3.12/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/gitpod/.pyenv/versions/3.12.3/lib/python3.12/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/gitpod/.pyenv/versions/3.12.3/lib/python3.12/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/AutoGPT/cli.py", line 294, in start
wait_until_conn_ready(8000)
File "/workspace/AutoGPT/cli.py", line 929, in wait_until_conn_ready
raise TimeoutError(f"Port {port} did not open within {timeout} seconds")
TimeoutError: Port 8000 did not open within 30 seconds
gitpod /workspace/AutoGPT (master) $

may be the onnxruntime module can not installed due to it can not create 8000 agent server. but I have tried pip install onnxruntime ,it have installed. there are some error on ./run agent start agentname. it can not success to be runed

Upload Activity Log Content

Installing onnxruntime (1.16.3): Failed

RuntimeError

Unable to find installation candidates for onnxruntime (1.16.3)

at ~/.local/share/pypoetry/venv/lib/python3.12/site-packages/poetry/installation/chooser.py:74 in choose_for
70│
71│ links.append(link)
72│
73│ if not links:
→ 74│ raise RuntimeError(f"Unable to find installation candidates for {package}")
75│
76│ # Get the best link
77│ chosen = max(links, key=lambda link: self._sort_key(package, link))
78│

Cannot install onnxruntime.

⌛ (Re)starting benchmark server...
INFO: Started server process [12459]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:8080 (Press CTRL+C to quit)

⌛ (Re)starting agent 'testing'...
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "/workspace/AutoGPT/autogpts/testing/forge/main.py", line 6, in
import forge.sdk.forge_log
File "/workspace/AutoGPT/autogpts/testing/forge/sdk/init.py", line 5, in
from ..llm import chat_completion_request, create_embedding_request, transcribe_audio
File "/workspace/AutoGPT/autogpts/testing/forge/llm.py", line 3, in
from litellm import AuthenticationError, InvalidRequestError, ModelResponse, acompletion
ModuleNotFoundError: No module named 'litellm'
Traceback (most recent call last):
File "/workspace/AutoGPT/cli.py", line 933, in
cli()
File "/home/gitpod/.pyenv/versions/3.12.3/lib/python3.12/site-packages/click/core.py", line 1157, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/gitpod/.pyenv/versions/3.12.3/lib/python3.12/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/home/gitpod/.pyenv/versions/3.12.3/lib/python3.12/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/gitpod/.pyenv/versions/3.12.3/lib/python3.12/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/gitpod/.pyenv/versions/3.12.3/lib/python3.12/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/gitpod/.pyenv/versions/3.12.3/lib/python3.12/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/AutoGPT/cli.py", line 294, in start
wait_until_conn_ready(8000)
File "/workspace/AutoGPT/cli.py", line 929, in wait_until_conn_ready
raise TimeoutError(f"Port {port} did not open within {timeout} seconds")
TimeoutError: Port 8000 did not open within 30 seconds
gitpod /workspace/AutoGPT (master) $

Upload Error Log Content

Installing onnxruntime (1.16.3): Failed

RuntimeError

Unable to find installation candidates for onnxruntime (1.16.3)

at ~/.local/share/pypoetry/venv/lib/python3.12/site-packages/poetry/installation/chooser.py:74 in choose_for
70│
71│ links.append(link)
72│
73│ if not links:
→ 74│ raise RuntimeError(f"Unable to find installation candidates for {package}")
75│
76│ # Get the best link
77│ chosen = max(links, key=lambda link: self._sort_key(package, link))
78│

Cannot install onnxruntime.

⌛ (Re)starting benchmark server...
INFO: Started server process [12459]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:8080 (Press CTRL+C to quit)

⌛ (Re)starting agent 'testing'...
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "/workspace/AutoGPT/autogpts/testing/forge/main.py", line 6, in
import forge.sdk.forge_log
File "/workspace/AutoGPT/autogpts/testing/forge/sdk/init.py", line 5, in
from ..llm import chat_completion_request, create_embedding_request, transcribe_audio
File "/workspace/AutoGPT/autogpts/testing/forge/llm.py", line 3, in
from litellm import AuthenticationError, InvalidRequestError, ModelResponse, acompletion
ModuleNotFoundError: No module named 'litellm'
Traceback (most recent call last):
File "/workspace/AutoGPT/cli.py", line 933, in
cli()
File "/home/gitpod/.pyenv/versions/3.12.3/lib/python3.12/site-packages/click/core.py", line 1157, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/gitpod/.pyenv/versions/3.12.3/lib/python3.12/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/home/gitpod/.pyenv/versions/3.12.3/lib/python3.12/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/gitpod/.pyenv/versions/3.12.3/lib/python3.12/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/gitpod/.pyenv/versions/3.12.3/lib/python3.12/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/gitpod/.pyenv/versions/3.12.3/lib/python3.12/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/AutoGPT/cli.py", line 294, in start
wait_until_conn_ready(8000)
File "/workspace/AutoGPT/cli.py", line 929, in wait_until_conn_ready
raise TimeoutError(f"Port {port} did not open within {timeout} seconds")
TimeoutError: Port 8000 did not open within 30 seconds
gitpod /workspace/AutoGPT (master) $

@tbrodbeck
Copy link

I have a similar error with the TimeoutError:

(base) ➜  AutoGPT git:(master) ✗ ./run agent start Helper
⌛ Running setup for agent 'Helper'...
dyld[9084]: Library not loaded: /opt/homebrew/Cellar/python@3.11/3.11.7_1/Frameworks/Python.framework/Versions/3.11/Python
  Referenced from: <4709693B-C0D0-35B6-8474-59BC545EEFC6> /Users/Till_Brodbeck/Library/Application Support/pypoetry/venv/bin/python
  Reason: tried: '/opt/homebrew/Cellar/python@3.11/3.11.7_1/Frameworks/Python.framework/Versions/3.11/Python' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/python@3.11/3.11.7_1/Frameworks/Python.framework/Versions/3.11/Python' (no such file), '/opt/homebrew/Cellar/python@3.11/3.11.7_1/Frameworks/Python.framework/Versions/3.11/Python' (no such file)
No poetry environment found.
dyld[9085]: Library not loaded: /opt/homebrew/Cellar/python@3.11/3.11.7_1/Frameworks/Python.framework/Versions/3.11/Python
  Referenced from: <4709693B-C0D0-35B6-8474-59BC545EEFC6> /Users/Till_Brodbeck/Library/Application Support/pypoetry/venv/bin/python
  Reason: tried: '/opt/homebrew/Cellar/python@3.11/3.11.7_1/Frameworks/Python.framework/Versions/3.11/Python' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/python@3.11/3.11.7_1/Frameworks/Python.framework/Versions/3.11/Python' (no such file), '/opt/homebrew/Cellar/python@3.11/3.11.7_1/Frameworks/Python.framework/Versions/3.11/Python' (no such file)
./setup: line 11:  9085 Abort trap: 6           poetry install --extras benchmark
Setup completed successfully.

⌛ (Re)starting benchmark server...
dyld[9089]: Library not loaded: /opt/homebrew/Cellar/python@3.11/3.11.7_1/Frameworks/Python.framework/Versions/3.11/Python
  Referenced from: <4709693B-C0D0-35B6-8474-59BC545EEFC6> /Users/Till_Brodbeck/Library/Application Support/pypoetry/venv/bin/python
  Reason: tried: '/opt/homebrew/Cellar/python@3.11/3.11.7_1/Frameworks/Python.framework/Versions/3.11/Python' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/python@3.11/3.11.7_1/Frameworks/Python.framework/Versions/3.11/Python' (no such file), '/opt/homebrew/Cellar/python@3.11/3.11.7_1/Frameworks/Python.framework/Versions/3.11/Python' (no such file)
./run_benchmark: line 9:  9089 Abort trap: 6           poetry run agbenchmark "$@"
Traceback (most recent call last):
  File "/Users/Till_Brodbeck/Library/CloudStorage/Box-Box/1 Projekte/AI/AutoGPT/cli.py", line 493, in <module>
    cli()
  File "/opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/Till_Brodbeck/Library/CloudStorage/Box-Box/1 Projekte/AI/AutoGPT/cli.py", line 149, in start
    wait_until_conn_ready(8080)
  File "/Users/Till_Brodbeck/Library/CloudStorage/Box-Box/1 Projekte/AI/AutoGPT/cli.py", line 489, in wait_until_conn_ready
    raise TimeoutError(f"Port {port} did not open within {timeout} seconds")
TimeoutError: Port 8080 did not open within 30 seconds

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

No branches or pull requests

2 participants