https://pulumi.com logo
Title
k

kind-napkin-54965

05/05/2023, 2:59 PM
File "<...>/lib/python3.11/site-packages/pulumi/automation/_local_workspace.py", line 463, in _run_pulumi_cmd_sync
    return _run_pulumi_cmd(args, self.work_dir, envs, on_output)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "<...>/lib/python3.11/site-packages/pulumi/automation/_cmd.py", line 55, in _run_pulumi_cmd
    with subprocess.Popen(
         ^^^^^^^^^^^^^^^^^

  File "<...>/.pyenv/versions/3.11.3/lib/python3.11/subprocess.py", line 1024, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,

  File "<..>/.pyenv/versions/3.11.3/lib/python3.11/subprocess.py", line 1917, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)

FileNotFoundError: [Errno 2] No such file or directory: 'pulumi'
Checkout out older repo that worked fine and am getting such error - any ideas what might be going wrong here?
m

millions-furniture-75402

05/05/2023, 4:10 PM
Sounds like you don't have a python environment, you aren't in a venv, or you haven't installed the dependencies.
w

worried-rain-74420

05/06/2023, 2:56 AM
Yes, I think this error is indicating that you’re using the Automation API without having the Pulumi binary in your path. You must first install Pulumi before using Automation API; unfortunately it’s not enough to install the @pulumi/pulumi Python package.
k

kind-napkin-54965

05/08/2023, 7:05 AM
Thanks folks! Installed pulumi through brew - works like a charm now!
w

worried-rain-74420

05/09/2023, 3:13 PM
Glad to help, friend!