'Program run without the Pulumi engine available` error using Automation API? #9021
-
Hello! I'm writing a Flask app (inside a docker container) to provision scaleway instances. I'm using Pulumi Automation API, and I keep getting a root@4aab168725c7:/code-provisioning# pulumi version I'm new to pulumi so I might be doing things very wrong, but I thought the Automation API uses the CLI on its own? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi @CyrineG! Any chance you could share some of your program code? And maybe a portion of the Dockerfile you're working with? The code in the repo you linked to works for me (with a minor adjustment to fix what looks like a recent change in one of the program's transitive dependencies): $ python3 -m venv venv
$ venv/bin/python3 -m pip install --upgrade pip
$ venv/bin/pip install -r requirements.txt
$ venv/bin/pip install markupsafe==2.0.1
$ source venv/bin/activate
...
$ FLASK_RUN_PORT=1337 FLASK_ENV=development FLASK_APP=app PULUMI_ORG=cnunciato flask run
* Serving Flask app "app" (lazy loading)
* Environment: development
* Debug mode: on
* Running on http://127.0.0.1:1337/ (Press CTRL+C to quit)
... ... so I suspect it may have something to do with your Docker configuration. |
Beta Was this translation helpful? Give feedback.
-
(note that I can't select comments in a thread as an answer, so please check the thread!) |
Beta Was this translation helpful? Give feedback.
Hi @CyrineG! Any chance you could share some of your program code? And maybe a portion of the Dockerfile you're working with? The code in the repo you linked to works for me (with a minor adjustment to fix what looks like a recent change in one of the program's transitive dependencies):