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

Error loading ASGI app. Could not import module "forge.app". #7186

Closed
1 task done
fxgeoffrey opened this issue Jun 4, 2024 · 12 comments · Fixed by #7196
Closed
1 task done

Error loading ASGI app. Could not import module "forge.app". #7186

fxgeoffrey opened this issue Jun 4, 2024 · 12 comments · Fixed by #7196
Assignees
Labels
bug Something isn't working Forge

Comments

@fxgeoffrey
Copy link

⚠️ 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?

MacOS

Which version of AutoGPT are you using?

Latest Release

Do you use OpenAI GPT-3 or GPT-4?

GPT-4

Which area covers your issue best?

Installation and setup

Describe your issue.

when I run agent start my_agent, it throws following error:

2024-06-04 18:43:54,460 INFO Agent server starting on http://localhost:8000
ERROR: Error loading ASGI app. Could not import module "forge.app".

I checked the source codes , but seems that there is no app.py file in my agent directories.

Upload Activity Log Content

No response

Upload Error Log Content

No response

@fxgeoffrey
Copy link
Author

Anyone meet this error?

@Islati
Copy link

Islati commented Jun 4, 2024

Anyone meet this error?

I'm here too. Going to assume it's how I'm running the agent server at this point.

@yefengjie
Copy link

+1

1 similar comment
@Boy-Hoshi
Copy link

+1

@Swiftyos
Copy link
Contributor

Swiftyos commented Jun 5, 2024

Hi everyone, the forge is undergoing a refactor atm. It looks like this was missed @kcze

@Swiftyos Swiftyos added bug Something isn't working Forge labels Jun 5, 2024
@fxgeoffrey
Copy link
Author

Thanks .
May I ask when this issue could be fixed ?

@kcze
Copy link
Contributor

kcze commented Jun 6, 2024

In progress, should be merged in a few days: #7196

@kcze kcze linked a pull request Jun 10, 2024 that will close this issue
9 tasks
@dhuang329
Copy link

Is the issue solved? I still had the error when I first setup today

@Torantulino
Copy link
Member

Torantulino commented Jun 12, 2024

Fixed! Thanks for your patience 🎉

@dhuang329
Copy link

Fixed! Thanks for your patience 🎉

Hi, I still faced this error, what could be the problem?
2024-06-12 12:38:30,482 INFO Agent server starting on http://localhost:8000
ERROR: Error loading ASGI app. Could not import module "forge.app".

@kcze
Copy link
Contributor

kcze commented Jun 12, 2024

@dhuang329 Please try re-downloading (or cloning again) AutoGPT repository. If you created a custom agent you need to create a new one after that.

@dhuang329
Copy link

@dhuang329 Please try re-downloading (or cloning again) AutoGPT repository. If you created a custom agent you need to create a new one after that.

Hi, sorry to bother again! I deleted the whole folder and cloned AutoGPT again. Then I repeated these steps: added path environment variable so it can recognize the poetry package, changed the path of agbenchmark in pyproject.toml so it could find agbenchmark, set up OpenAI API key in .env. The error still happened. My device is a M1 Pro with macos Ventura 13.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Forge
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants