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

Files do not exist! #14

Open
nasko94 opened this issue Apr 19, 2024 · 3 comments
Open

Files do not exist! #14

nasko94 opened this issue Apr 19, 2024 · 3 comments

Comments

@nasko94
Copy link

nasko94 commented Apr 19, 2024

I followed this guide https://www.youtube.com/watch?v=BEpDRj9H3zE to the T, but when I try to run the agency.py for the CodeSolutionAgency inside Docker I get this error:

2024-04-19 15:57:08 seluser@6678e9414e7c:/app/CodeSolutionAgency$ python agency.py
Files folder '/app/CodeSolutionAgency/PlannerAgent/files' is not a directory. Skipping...
2024-04-19 15:57:09 Schemas folder path is not a directory. Skipping... /app/CodeSolutionAgency/PlannerAgent/schemas
2024-04-19 15:57:09 Files folder '/app/CodeSolutionAgency/Devid/files' is not a directory. Skipping...
2024-04-19 15:57:09 Schemas folder path is not a directory. Skipping... /app/CodeSolutionAgency/Devid/schemas
2024-04-19 15:57:09 Files folder '/app/CodeSolutionAgency/BrowsingAgent/files' is not a directory. Skipping...
2024-04-19 15:57:09 Schemas folder path is not a directory. Skipping... /app/CodeSolutionAgency/BrowsingAgent/schemas

Those file are not presented even here in the repo, why?

@josedandrade
Copy link

Are you using windows? I got the same issue. I even created the folders manually. Nothing.

@josedandrade
Copy link

(agents) PS D:\GitHub_Windows\agency-swarm-lab\CodeSolutionAgency> python agency.py  
Files folder 'D:\GitHub_Windows\agency-swarm-lab\CodeSolutionAgency\Devid\files' is not a directory. Skipping...
Schemas folder path is not a directory. Skipping...  D:\GitHub_Windows\agency-swarm-lab\CodeSolutionAgency\Devid\schemas
Files folder 'D:\GitHub_Windows\agency-swarm-lab\CodeSolutionAgency\BrowsingAgent\files' is not a directory. Skipping...
Schemas folder path is not a directory. Skipping...  D:\GitHub_Windows\agency-swarm-lab\CodeSolutionAgency\BrowsingAgent\schemas
Updating agent... PlannerAgent
Updating agent... Devid
Updating agent... BrowsingAgent
Running on local URL:  http://0.0.0.0:7860

To create a public link, set `share=True` in `launch()`.

Browser:

Hmmm… can't reach this pageIt looks like the webpage at http://0.0.0.0:7860/ might be having issues, or it may have moved permanently to a new web address.

@ArtemShatokhin
Copy link

To answer the inital issue raised here, the prints you see are not errors but rather just warnings. If you specify the tools, files or schemas folder folder in the agent's init function, it'll automatically try to import those files. Since those folders do not exist (and they were not meant to be there), it simply skips them and gives you a warning print.
Regarding opening a Gradio page, if you specify the 0.0.0.0 address, you still need to access it through the usual localhost or 127.0.0.1. The 0.0.0.0 address is a special one that allows users to access the page from any IP address that the machine is accessible from.

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

3 participants