Comments (11)
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.
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.
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.
Thank you so much for the kind words 😊 I'm glad you're enjoying it!
from auto-gpt.
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.
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.
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.
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.
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.
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.
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)
- Fix bug in time comparison logic in reddit block
- Add WebScraper Block
- Add summariser block
- Add support for other LLM in AI Block
- Root directory should forward to Builder
- Add * to required fields
- Prevent agent execution when required fields are empty - outline in red.
- Censor "Secret" fields like API keys in the Builder until clicked on
- Add Jina WebSearch
- [Builder] Add support for Agent Templates
- Add CreateMediumPost Block
- Add YouTube Transcriber Block
- Azure endpoint not configured HOT 1
- can't load credentials error
- Where is the node? HOT 1
- [Builder] Add Pagination to Monitor Page
- Update node creation docs
- Move `renderInputField` to a React Component
- Getting 'group' was unexpected when trying to run poetry shell HOT 1
- Display type on block outputs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from auto-gpt.