Description
Doc's are incorrect and need to be updated: https://sourcefuse.github.io/arc-docs/arc-iac-docs/modules/arc-lambda/
Several errors are encountered while trying to execute the provided instructions. Installation cannot be completed.
- Python is a requirement
- Visual Studio C++ Desktop runtime is required
Steps to Reproduce - Using Visual Studio Code (Windows and WSL Ubuntu)
- Follow the instructions at: https://sourcefuse.github.io/arc-docs/arc-iac-docs/modules/arc-lambda/
- Step 2 "run npm i" observe the following error:
...
npm ERR! gyp ERR! find Python **********************************************************
npm ERR! gyp ERR! find Python You need to install the latest version of Python.
npm ERR! gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
npm ERR! gyp ERR! find Python you can try one of the following options:
npm ERR! gyp ERR! find Python - Use the switch --python="C:\Path\To\python.exe"
npm ERR! gyp ERR! find Python (accepted by both node-gyp and npm)
npm ERR! gyp ERR! find Python - Set the environment variable PYTHON
npm ERR! gyp ERR! find Python - Set the npm configuration variable python:
npm ERR! gyp ERR! find Python npm config set python "C:\Path\To\python.exe"
npm ERR! gyp ERR! find Python For more information consult the documentation at:
npm ERR! gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
npm ERR! gyp ERR! find Python **********************************************************
...
- Install latest version of Python...
- Choose "Custom installation"
- Leave "Optional Features" default
- On "Advanced Options" choose:
- "Install for all users"
- "Add Python to env. variables"
- Click "Install"
- In a new terminal, run "run npm i" again and observe the following error:
...
npm ERR! Traceback (most recent call last):
npm ERR! File "C:\Development\SF\arc-lambda\node_modules\node-gyp\gyp\gyp_main.py", line 42, in
npm ERR! import gyp # noqa: E402
npm ERR! ^^^^^^^^^^
npm ERR! File "C:\Development\SF\arc-lambda\node_modules\node-gyp\gyp\pylib\gyp_init_.py", line 9, in
npm ERR! import gyp.input
npm ERR! File "C:\Development\SF\arc-lambda\node_modules\node-gyp\gyp\pylib\gyp\input.py", line 19, in
npm ERR! from distutils.version import StrictVersion
npm ERR! ModuleNotFoundError: No module named 'distutils'
...
NOTE: I also received a "Visual Studio C++ Desktop runtime is required" error, but was unable to reproduce even after uninstalling via the VS 2022 installer so I do not have a stack trace from npm.
Expected behavior
The instructions work.
Description
Doc's are incorrect and need to be updated: https://sourcefuse.github.io/arc-docs/arc-iac-docs/modules/arc-lambda/
Several errors are encountered while trying to execute the provided instructions. Installation cannot be completed.
Steps to Reproduce - Using Visual Studio Code (Windows and WSL Ubuntu)
...
npm ERR! gyp ERR! find Python **********************************************************
npm ERR! gyp ERR! find Python You need to install the latest version of Python.
npm ERR! gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
npm ERR! gyp ERR! find Python you can try one of the following options:
npm ERR! gyp ERR! find Python - Use the switch --python="C:\Path\To\python.exe"
npm ERR! gyp ERR! find Python (accepted by both node-gyp and npm)
npm ERR! gyp ERR! find Python - Set the environment variable PYTHON
npm ERR! gyp ERR! find Python - Set the npm configuration variable python:
npm ERR! gyp ERR! find Python npm config set python "C:\Path\To\python.exe"
npm ERR! gyp ERR! find Python For more information consult the documentation at:
npm ERR! gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
npm ERR! gyp ERR! find Python **********************************************************
...
...
npm ERR! Traceback (most recent call last):
npm ERR! File "C:\Development\SF\arc-lambda\node_modules\node-gyp\gyp\gyp_main.py", line 42, in
npm ERR! import gyp # noqa: E402
npm ERR! ^^^^^^^^^^
npm ERR! File "C:\Development\SF\arc-lambda\node_modules\node-gyp\gyp\pylib\gyp_init_.py", line 9, in
npm ERR! import gyp.input
npm ERR! File "C:\Development\SF\arc-lambda\node_modules\node-gyp\gyp\pylib\gyp\input.py", line 19, in
npm ERR! from distutils.version import StrictVersion
npm ERR! ModuleNotFoundError: No module named 'distutils'
...
NOTE: I also received a "Visual Studio C++ Desktop runtime is required" error, but was unable to reproduce even after uninstalling via the VS 2022 installer so I do not have a stack trace from npm.
Expected behavior
The instructions work.