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

blender_Addon error: Generation failed: {"detail":"Not Found"} #61

Open
Ilaner2000 opened this issue Jan 30, 2025 · 4 comments
Open

blender_Addon error: Generation failed: {"detail":"Not Found"} #61

Ilaner2000 opened this issue Jan 30, 2025 · 4 comments

Comments

@Ilaner2000
Copy link

http://localhost:8080 works and can generate 3d model correctly. However, blender addon installed successfully but gave : Generation failed: {"detail":"Not Found"} after clicking generating 3D mode button in blender

@ZipFear
Copy link

ZipFear commented Jan 30, 2025

++

Image

@DanielScapulatempo
Copy link
Contributor

++

Image

At the end of the api_server.py file, change this:

parser.add_argument("--port", type=str, default="8081")

to this:

parser.add_argument("--port", type=int, default=8081)

This happens because uvicorn.run (last line) expects an integer port (int) and is being passed a string.

@Ilaner2000
Copy link
Author

Ilaner2000 commented Feb 1, 2025

Image

Image

Here is the new error. It appears that the generation completes successfully, but the process fails when trying to write the file due to a permission denied error. I have tried various methods to ensure that the folder permissions are not an issue, but the error persists.

@kelheor
Copy link

kelheor commented Feb 2, 2025

++
Image

At the end of the api_server.py file, change this:

parser.add_argument("--port", type=str, default="8081")

to this:

parser.add_argument("--port", type=int, default=8081)

This happens because uvicorn.run (last line) expects an integer port (int) and is being passed a string.

For me it didn't fix issue and I'm still getting the same error. Maybe you also did something else?

UPD: it seems I forgot to use this command: python api_server.py --host 0.0.0.0 --port 8080 instead of this python3 gradio_app.py

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

4 participants