Код: Выделить всё
import json
import logging
import multiprocessing
import os
import sys
import time
from pathlib import Path
from typing import Union
from fastapi import FastAPI
from pydantic import BaseModel
from watchfiles import watch, Change
from .ota import check_for_updates
Код: Выделить всё
DAPclientManager/
├── app/
│ ├── __init__.py
│ ├── main.py
│ └── ota.py
Код: Выделить всё
> uv run fastapi dev --reload
FastAPI Starting development server 🚀
Searching for package file structure from directories with __init__.py files
ERROR Import error: No module named 'app.ota'
WARNING Ensure all the package directories have an __init__.py file
...
ModuleNotFoundError: No module named 'app.ota'
Подробнее здесь: https://stackoverflow.com/questions/797 ... ed-app-ota