tortoise / aerich

A database migrations tool for TortoiseORM, ready to production.
https://github.com/tortoise/aerich
Apache License 2.0
804 stars 90 forks source link

UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 84: character maps to <undefined> #349

Open xD1rty opened 1 week ago

xD1rty commented 1 week ago

Hi! Windows 11, Poetry

` def get_config() -> Config: return Config( TELEGRAM_TOKEN=os.getenv("TELEGRAM_TOKEN"), YANDEX_OAUTH_TOKEN=os.getenv("YANDEX_OAUTH_TOKEN"), YANDEX_TRACKER_ID=os.getenv("YANDEX_TRACKER_ID"), DB_URL=os.getenv("DB_URL", "sqlite://test.sqlite3") )

TORTOISE_ORM = { "connections": {"default": get_config().DB_URL}, "apps": { "models": { "models": ["db.tickets.models", "aerich.models"], "default_connection": "default", }, }, }` My config

UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 84: character maps to

cp1252