No entrypoint file found && failed to create new program: No such project #701
-
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 First situationI have the folder structure as below When I run Second situationChanged folder structure as below And got this error: 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? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
https://docs.deta.sh/docs/cli/commands/#notes
So your first situation showed And for the second situation iirc new users need to create their first project at deta dashboard after creating an account. |
Beta Was this translation helpful? Give feedback.
https://docs.deta.sh/docs/cli/commands/#notes
So your first situation showed
No entrypoint file found in '/path/sabiduria-tool'. Please, provide a name or path to create a new micro elsewhere. See "deta new --help".'
cause it's missing the entrypoint file (main.py) in the root/path/sabiduria-tool/
path. In your case you need to rundeta new
in the/path/sabiduria-tool/sabiduria_tool_api
directory.And for the second situation iirc new users need to create their first project at deta dashboard after creating…