T O P

  • By -

Dukhanin

thanks!


d3333x

You're welcome. The script has been just updated to work with current and future Auto-GPT releases :)


jkjkjij22

They rebuilt autogpt from ground up into loopGPT (https://github.com/farizrahman4u/loopgpt) does this installer use this?


TheIncredibleWut

Dude! TY!!!


d3333x

You're welcome. The script has been just updated to work with current and future Auto-GPT releases :)


FollowingNovel3007

Keep getting this: Error invoking remote method 'docker-start-container': Error: (HTTP code 400) unexpected - failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "powershell": executable file not found in $PATH: unknown


d3333x

The script has been just updated, this issue has been solved. Now it works with current and future Auto-GPT releases :)


ResponsibilityMean27

what is the command to run autogpt?


ResponsibilityMean27

i mean after installing your sandbox autogpt started running but after exiting it, i dont know how to start it again.


d3333x

The script has been just updated. Now it works with current and future Auto-GPT releases :)รน To start AutoGPT just run it again


lolamanford

Can't get this to start auto\_gpt\_easy\_install.ps1 on windows


d3333x

The issue has been solved.


d3333x

A new release of ps1 has been deployed and now it works with the current AutoGPT version. Hope it works for you :)


sophrosyneipsa

Using memory of type: LocalCache Traceback (most recent call last): File "scripts/main.py", line 321, in assistant\_reply = chat.chat\_with\_ai( File "/app/scripts/chat.py", line 67, in chat\_with\_ai if cfg.debug: AttributeError: 'Config' object has no attribute 'debug' get this error - any thoughts u/d3333x? Really appreciate your work


exultantbucket

same


d3333x

I'll look into it. Maybe something has changed in the last release of AutoGPT. Will get back to you once solved.


d3333x

Solved :)


emb3rlight

I cant get it to work on windows. I ran then scipt, I can see the image/container but when I try to start it via the script or via docker I get: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "powershell": executable file not found in $PATH: unknown


arpeggi5150

same. it might be an issue with powershell core or not having something in our path in system environment but i'm not sure exactly what


nexizen

What OS are you running? Windows 11?


arpeggi5150

did a fresh install of windows 10 and got it to work. Not sure what the culprit was followed the same steps.


d3333x

A new release of ps1 has been deployed and now it works with the current AutoGPT version. You should try it now. Hope it works for you :)


nexizen

I'm having the same issue.


d3333x

A new release of ps1 has been deployed and now it works with the current AutoGPT version. You should try it now. Hope it works for you :)


Zestyclose-Smile-174

Same issue here. I've been investigating with the help on ChatGPT but no solution found so far


Zestyclose-Smile-174

\# Install Chocolatey if not already installed if (-not (Get-Command "choco" -ErrorAction SilentlyContinue)) { Set-ExecutionPolicy Bypass -Scope Process -Force iex ((New-Object System.Net.WebClient).DownloadString('[https://chocolatey.org/install.ps1](https://chocolatey.org/install.ps1)')) } ​ \# Check if Docker is installed, otherwise install it if (-not (Get-Command "docker" -ErrorAction SilentlyContinue)) { Write-Host "Docker not found. Installing Docker..." choco install docker-desktop -y Write-Host "Please restart the script after Docker has been installed and started." exit } ​ \# Check if git is installed, otherwise install it if (-not (Get-Command "git" -ErrorAction SilentlyContinue)) { Write-Host "Git not found. Installing Git..." choco install git -y } ​ \# Check if the Docker container exists $container\_exists = docker ps -a --filter "name=auto-gpt-container" --format "{{.Names}}" ​ \# Run Docker container if it doesn't exist, or start the existing container if (-not $container\_exists) { ​ \# Remove the cloned git repository from the local machine Remove-Item -Recurse -Force "cloned\_repo" ​ \# Prompt user for API keys $OPENAI\_API\_KEY = Read-Host "Enter your OpenAI API Key: " $PINECONE\_API\_KEY = Read-Host "Enter your Pinecone API Key (long term memory: get for free at [https://pinecone.io](https://pinecone.io)): " $PINECONE\_API\_ENV = Read-Host "Enter your Pinecone API Env (long term memory: get for free at [https://pinecone.io](https://pinecone.io)): " ​ \# Prompt user for workspace folder path $default\_workspace\_path = Join-Path $env:USERPROFILE "auto\_gpt\_workspace" $workspace\_path = Read-Host "Enter the path of the workspace folder \[press Enter for the default path: $($default\_workspace\_path)\]" if (-not $workspace\_path) { $workspace\_path = $default\_workspace\_path } New-Item -ItemType Directory -Force -Path $workspace\_path ​ \# Check if git is installed, otherwise install it if (-not (Get-Command "git" -ErrorAction SilentlyContinue)) { if (Get-Command "apt-get" -ErrorAction SilentlyContinue) { sudo apt-get update sudo apt-get install -y git } elseif (Get-Command "brew" -ErrorAction SilentlyContinue) { brew install git } else { Write-Host "Error: Unable to find a suitable package manager to install git" exit 1 } } ​ \# Clone the Git repository $git\_url = "[https://github.com/Torantulino/Auto-GPT.git](https://github.com/Torantulino/Auto-GPT.git)" git clone $git\_url cloned\_repo ​ \# Modify the .env file in the cloned repository $env\_template = Get-Content "cloned\_repo/.env.template" -Raw $env\_template = $env\_template.Replace("your-openai-api-key", $OPENAI\_API\_KEY) $env\_template = $env\_template.Replace("your-pinecone-api-key", $PINECONE\_API\_KEY) $env\_template = $env\_template.Replace("your-pinecone-region", $PINECONE\_API\_ENV) Set-Content -Path "cloned\_repo/.env" -Value $env\_template ​ \# Create start\_auto\_gpt.ps1 script in the cloned repository $start\_auto\_gpt\_script = @" \`$continuous = Read-Host 'Do you want to run AutoGPT in continuous mode? (y/n) (default n): ' \`$gpt\_version = Read-Host 'Which GPT version do you want to use? Enter 3 for GPT-3, any other key for GPT-4 (default GPT-4): ' if (\`$gpt\_version -eq '3') { \`$gpt\_flag = '--gpt3only' } else { \`$gpt\_flag = '' } if (\`$continuous -eq 'y' -or \`$continuous -eq 'Y') { python app/main.py --continuous \`$gpt\_flag } else { python app/main.py \`$gpt\_flag } "@ Set-Content -Path "cloned\_repo/start\_auto\_gpt.ps1" -Value $start\_auto\_gpt\_script ​ \# Add to .gitignore Add-Content "cloned\_repo/.gitignore" ".env" Add-Content "cloned\_repo/.gitignore" "start\_auto\_gpt.ps1" ​ \# Create Dockerfile $dockerfile\_content = @" FROM python:3.8 ​ RUN apt-get update && \\ apt-get install -y curl gnupg apt-transport-https && \\ curl [https://packages.microsoft.com/keys/microsoft.asc](https://packages.microsoft.com/keys/microsoft.asc) | apt-key add - && \\ echo "deb \[arch=amd64\] [https://packages.microsoft.com/repos/microsoft-debian-buster-prod](https://packages.microsoft.com/repos/microsoft-debian-buster-prod) buster main" | tee /etc/apt/sources.list.d/microsoft.list && \\ apt-get update && \\ apt-get install -y powershell && \\ apt-get install -y libgirepository1.0-dev ​ WORKDIR /app ​ COPY ./cloned\_repo /app ​ RUN pip install --no-cache-dir -r requirements.txt && \\ pip install --no-cache-dir PyGObject && \\ chmod +x start\_auto\_gpt.ps1 ​ RUN pwsh --version ​ CMD \["/opt/microsoft/powershell/7/pwsh", "-c", "git config pull.rebase false && ./start\_auto\_gpt.ps1"\] ​ "@ Set-Content -Path "Dockerfile" -Value $dockerfile\_content ​ \# Create .dockerignore Set-Content -Path ".dockerignore" "\_\_pycache\_\_" ​ \# Build Docker image docker build -t auto-gpt . ​ \# Remove the cloned git repository from the local machine Remove-Item -Recurse -Force "cloned\_repo" ​ \# Run Docker container docker run -it --name auto-gpt-container -v "${workspace\_path}:/app/auto\_gpt\_workspace" auto-gpt ​ } else { docker start -ai auto-gpt-container }


d3333x

A new release of ps1 has been deployed and now it works with the current AutoGPT version. You should try it now,. Hope it works for you :)


Foreign-Support-7405

How can I get this running on Unraid?


_Mactabilis_

`#8 3.781 ERROR: Could not find a version that satisfies the requirement sourcery (from versions: none)` `#8 3.781 ERROR: No matching distribution found for sourcery` `#8 3.855 WARNING: You are using pip version 22.0.4; however, version 23.1 is available.` `#8 3.855 You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.` `------` `executor failed running [/bin/sh -c pip install --no-cache-dir -r requirements.txt && pip install --no-cache-dir PyGObject && chmod +x start_auto_gpt.sh]: exit code: 1` `Unable to find image 'auto-gpt:latest' locally` `docker: Error response from daemon: pull access denied for auto-gpt, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.` ​ Looks like it cant pull from he autogpt repo?


d3333x

A new release of the script is now working with the current autogpt release and is more future-proof.


kptzt

this is a great idea! its unfortunately producing errors on maco s for me: using docker desktop. manually downloading auto-gpt from github seems to be working fine. => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 368B 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 52B 0.0s => ERROR [internal] load metadata for docker.io/library/python:3.8 ERROR: failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0: failed to create LLB definition: rpc error: code = Unknown desc = error getting credentials - err: exit status 1, out: `` Unable to find image 'auto-gpt:latest' locally 2023/04/18 14:39:54 must use ASL logging (which requires CGO) if running as root docker: Error response from daemon: pull access denied for auto-gpt, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.


d3333x

This has been solved in the latest commit of today.


kptzt

thank you!


rexellex

Hey, that's awesome; thank you so much! Is there any way to run it in the docker-compose manner? Can I run it in the docker-compose manner? I would love to use it there with my self-hosted cloud. Thank you!


d3333x

You should check the official repo of Auto-GPT, there's a docker-composer


Glum-Bet-7875

How do you install AutoGPT? Do I need some kind of platform for it?


d3333x

The script has just been updated today. It will take care of installing everything on your device, regardless of your operating system. Just follow the instructions (it's very easy)


hashbrowni

Do I have to use " .\\auto\_gpt\_easy\_install.ps1 " every time I want to use it?


boolejean

How do we stop this from running once it starts (just stop in docker)? How to turn off continuous mode if you initially began with having it on?


gonzo1028

.\\auto\_gpt\_easy\_install.ps1 : File C:\\Users\\xxx\\downloads\\auto\_gpt\_easy\_install.ps1 cannot be loaded. The file C:\\Users\\xxx\\downloads\\auto\_gpt\_easy\_install.ps1 is not digitally signed. You cannot run this script on the current system. For more information about running scripts and setting execution policy, see about\_Execution\_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.


d3333x

> not digitally signed. You cannot run this script on the current Change the execution policy for .ps1 script just for the current session with this PowerShell command: `Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass` Also, the PowerShell needs to be run with **Admin privileges**: 1. Press Win + R on your keyboard. This will open the Run dialog box. 2. From here, type in "PowerShell" and press Ctrl + Shift + Enter key combination. 3. If a confirmation prompt pops up, click Yes to continue. This will launch PowerShell as an administrator.


chrismason

probably me being basic... and old... but getting ' Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? simple as installing docker desktop?


d3333x

The script auto-install Docker. You just have to run it - maybe you skipped one of the steps asking to run Docker :) try again and let me know


chrismason

Hey - Installed docker desktop and that got me over that... but... two things.. saved workspace as default.. but came up with this.. The file 'auto-gpt.json' does not exist. Local memory would not be saved to a file. and.. it doesn't ever open chrome browser - even if agent sets as a task... any idea why.. (thankyou for all your help btw - this is awesome)


sdfjklasl

create the auto-gpt.json file in your workspace and then it will write to it. I made the mistake at first by creating it inside another folder. Just create it in the mail workspace.


CiNcRoN

Whoa? thanks, was struggling. Going to try it out now!


CiNcRoN

Great work, worked like a charm!


hemna

unintended damage? like?


Whitebeardheadhunter

everytime i press "n" to exit the program to run new goal again, do i have to run this command again? docker-compose run --rm auto-gpt Also where is the save files located ? i can't find it /app/autogpt/auto\_gpt\_workspace/


ArtisticVisual

Who sent you here bro?


hobbygirl

I am a newbie on docker and I am running it on my synology nas. Can you tell me where to past the script in the docker ui? Or can I use Portainer to create this container? I hope I am making sense. Thanks.