How this is often experienced:
You've gotten set up with RelationalAI on the command line and done some work. Now you're getting back to it, but all commands return this error:
$ rai engines:list
---------------------------------------------------
No configuration file found.
To create one, run: rai init
---------------------------------------------------
How to Fix it
This is best resolved by locating your raiconfig.toml file. Be sure to run your notebook or other commands from the same directory as this config file.
Alternatively, run the command rai init and follow the steps to reactivate your project's virtual environment. This will create a new raiconfig.toml file in the directory where you ran the command.
To double check that your config is accessible from your directory, you can print it out. For example:
$ rai config:print
active_profile = "default"
[profile.default]
platform = "snowflake"
authenticator = "snowflake"
user = "ada.lovelace@company.com"
password = "********************"
account = "my_account"
role = "ACCOUNTADMIN"
warehouse = "MY_WAREHOUSE"
rai_app_name = "RELATIONALAI"
engine = "my_rai_engine"
engine_size = "HIGHMEM_X64_S"
If this command simply returns the error No configuration file found then your config file is still not accessible to the command. Often the rai CLI tool can find a config file in a parent directory of your current directory. However it does not search child directories for config files.
Related Documentation
For more information see these documents.
- RelationalAI CLI Reference: init
- RelationalAI CLI Reference Overview
- RelationalAI CLI Reference: config_print