Skip to content

CLI Init failing on Windows 11 #4666

@Anupieslice

Description

@Anupieslice

I'm trying to set up Skyvern locally on Windows using Docker Desktop, but skyvern init is failing during the database migration phase.

Environment:
OS: Windows 11
Python: 3.11 (Microsoft Store version)
Setup: Local installation in .venv

The Issue: The CLI successfully starts the Postgres container and creates the DB, but crashes during "Running database migrations...". I noticed the CLI tried to switch the driver to asyncpg for Windows compatibility, but the connection still drops.

Primary Errors:
RuntimeError: no running event loop
ConnectionDoesNotExistError: connection was closed in the middle of operation
ConnectionResetError: [WinError 64]

It looks like a conflict between the Windows asyncio Proactor loop and Alembic. Has anyone seen a workaround for this on Windows? Full traceback attached.

skyvern_windows11_error.sh

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