Giter Site home page Giter Site logo

Comments (11)

FatStinkyPanda avatar FatStinkyPanda commented on May 29, 2024 1

I'm still getting the message "error: attempted to access outside of working directory". I have saved a .py file to the workspace directory and have tasked auto-gpt with completing the code. I've given auto-gpt the location of the directory "C:auto_gpt\auto_gpt_workspace" for it's goals and description prompts and "C:auto_gpt" is where I run auto-gpt in powershell. With a blank .py file or a .py program template with descriptions and context it continues to have the error message. I've seen people have auto-gpt write code and I'm very excited to try it out myself.

from auto-gpt.

styks1987 avatar styks1987 commented on May 29, 2024 1

Using a symlink works for me.

ln -s /path/to/my/app ./auto_gpt_workspace

Then in your goals you could write something like

Write documentation for all the functions in app/functions/stripe-hook/stripe.js

from auto-gpt.

Torantulino avatar Torantulino commented on May 29, 2024

Yeah, it's an interesting option.

I think the major concern from that though would be that it could, and would easily delete/overwrite files.

I have been playing about with the same approach as you, cloning the repo into the AI's working directory! 😆

from auto-gpt.

Torantulino avatar Torantulino commented on May 29, 2024

Thank you so much for the kind words 😊 I'm glad you're enjoying it!

from auto-gpt.

alwinraju avatar alwinraju commented on May 29, 2024

What exactly is the working directory for this? I have put my file in the same folder as the main.py file and it still gives me an error saying it's outside the Working Directory. I am working on an M1 Mac, is there other permissions I need to grant for it to have access?

from auto-gpt.

xcreateadmin avatar xcreateadmin commented on May 29, 2024

What exactly is the working directory for this? I have put my file in the same folder as the main.py file and it still gives me an error saying it's outside the Working Directory. I am working on an M1 Mac, is there other permissions I need to grant for it to have access?

same issue on my M1 Mac

from auto-gpt.

JacobFV avatar JacobFV commented on May 29, 2024

I tried making a link to the workspace from inside the AutoGPT dir:

~/github/Auto-GPT on master! ⌚ 9:42:38
$ ln -s ~/code/<my_repo>

(Note: From my use, the search_files always returns an empty list, regardless of whether accessing an inode actually under AutoGPT or just a link.)

from auto-gpt.

Nonary avatar Nonary commented on May 29, 2024

What exactly is the working directory for this? I have put my file in the same folder as the main.py file and it still gives me an error saying it's outside the Working Directory. I am working on an M1 Mac, is there other permissions I need to grant for it to have access?

It's the "auto_gpt_workspace" folder.

from auto-gpt.

findlestick avatar findlestick commented on May 29, 2024

It's the "auto_gpt_workspace" folder.

So, putting the file that you want it to read, inside of "auto_gpt_workspace" should let the program access it?

from auto-gpt.

vvp3 avatar vvp3 commented on May 29, 2024

I have my files in project folders. it is really cumbersome to move them around.
Also another big issue is that files have references to other files in the project folder, so auto-gpt should be optimised to read the referenced files as well, isn't it ?

from auto-gpt.

vvp3 avatar vvp3 commented on May 29, 2024

I am trying to search in the code where is this folder, but i think it should be like an option in the begining to choose the working folder .

Also, another suggestion would be to really do something about the agents like you wrote here ;)

# Soon this will go in a folder where it remembers more stuff about the run(s)
SAVE_FILE = os.path.join(os.path.dirname(__file__), '..', 'ai_settings.yaml')

workaround is to save each yaml file as a backup

from auto-gpt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.