kaxil / airflowctl

A CLI tool to streamline getting started with Apache Airflow™ and managing multiple Airflow projects
Apache License 2.0
187 stars 12 forks source link

Error with Airflow Cmd Forwarding #21

Closed anthonysocks closed 11 months ago

anthonysocks commented 11 months ago

I suspect that this line is raising an exception where none should be raised. The error I get is: Key 'venv_path' not found in settings file. But I believe the venv_path is optional and should fall back on None if the project hasn't configured one (if I understand the code correctly).

kaxil commented 11 months ago

Could you give me the commands to reproduce it

anthonysocks commented 11 months ago

Sorry, I should have included them before:

airflowctl init my_project
airflowclt start my_project
kaxil commented 11 months ago

Cool, thanks, I can reproduce it, will fix it and release a new version in few minutes

kaxil commented 11 months ago

I cut 0.2.9 but the thing that you are missing is the build command, and if you want to use existing account, pass --venv-path to the init command or update settings.yaml as below:

# Path to a virtual environment to be used for the project
mode:
  virtualenv:
    venv_path: "PROJECT_DIR/.venv"