Skip to content

[feature] nao sync should auto-install (or prompt for) missing database driver extras, like nao init #1184

Description

@ClaireGz

Problem

When a user installs nao-core, do a nao init on one warehouse, and then nao sync on another warehouse, it fails with an error telling them to install the extra manually:

✗ Failed to sync main: The 'ibis-framework[clickhouse]' package is required to connect to clickhouse databases.
Install it with:
  pip install 'nao-core[clickhouse]'
or:
  uv pip install 'nao-core[clickhouse]'

nao init already auto-installs the required database driver extras, but nao sync does not.

Expected behavior

When nao sync (or a connection attempt) hits a missing database driver extra, it should install it automatically - or prompt the user to install it - the same way nao init does, instead of only printing an error and stopping.

Slack Conversation

https://naolabs.slack.com/archives/C08CSM9LYD9/p1783083480844399

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions