-
Notifications
You must be signed in to change notification settings - Fork 439
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PYTHON: Depends on node.js installation #3620
Comments
Node is a prerequisite for CDKTF whichever language you are writing in, as stated in the docs. |
Interesting. I assumed that the language-specific libraries were all 100% transpiled and didn't require pulling in another language ecosystem (which I'd like to avoid if possible). It's clear that the |
The |
Expected Behavior
When executing a cdktf stack script written in Python directly, it should run without requiring any dependencies besides the cdktf Python modules and precompiled providers.
Actual Behavior
The script fails with a
FileNotFoundError: [Errno 2] No such file or directory: 'node'
error, indicating that the Python modules will always try to spawn an external Node.js interpreter.Steps to Reproduce
Versions
language: Python 3.11
cdktf-cli: N/A
node: N/A
cdktf: 0.20.7
constructs: 10.3.0
jsii: 1.98.0
terraform: 1.5.7
arch: amd64
os: Debian trixie
Providers
N/A, problem occurs without any providers.
Gist
https://gist.github.com/srgoni/3f1882ad95b2587c41b1e85ac0c65809
Possible Solutions
No response
Workarounds
No response
Anything Else?
I believe that this scenario used to work with previous cdktf versions, but I don't have a reproducible setup at hand.
Full stack trace:
References
No response
Help Wanted
Community Note
The text was updated successfully, but these errors were encountered: