Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

No entrypoint file found && failed to create new program: No such project #695

@serdarakyol

Description

@serdarakyol

Hello, I just discovered DETA. I was trying to follow the FastAPI documentation. Created an account, installed deta cli, and login successfully. But I failed on the deta new command. I had 2 situation

First situation

I have the folder structure as below

image

When I run deta new, I got No entrypoint file found in '/path/sabiduria-tool'. Please, provide a name or path to create a new micro elsewhere. See "deta new --help".' error.

Second situation

Changed folder structure as below

image

And got this error: Error: failed to create new program: No such project

Here is my main file

from fastapi import FastAPI

from sabiduria_tool_api.core.config import API_PREFIX, APP_NAME, APP_VERSION, IS_DEBUG
from sabiduria_tool_api.core.event_handler import start_app_handler, stop_app_handler
from sabiduria_tool_api.api.routes.router_sabiduria_tool import router

def get_app() -> FastAPI:
    fast_app = FastAPI(title=APP_NAME, version=APP_VERSION, debug=IS_DEBUG)
    fast_app.include_router(router, prefix=API_PREFIX)

    fast_app.add_event_handler("startup", start_app_handler(fast_app))
    fast_app.add_event_handler("shutdown", stop_app_handler(fast_app))

    return fast_app


app = get_app()

I used the app variable as the documentation mentioned. Can anyone tell me what is wrong here, please?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions