OpenAdapt
OpenAdapt copied to clipboard
[Bug]: windows install command
Describe the bug
On a Windows 11 VM, the install command fails silently when checking for NVM (i.e. the window closes).
Workaround: install nvm with winget:
winget install -e --id CoreyButler.NVMforWindows
When trying again after installing NVM:
Success: Run `pip install poetry`
Installing dependencies from lock file
No dependencies to install or update
Installing the current project: openadapt (0.25.3)
Success: Run `poetry install`
Version 21.7.3 is already installed.
Now using node v21.7.3 (64-bit)
added 457 packages, and audited 458 packages in 46s
173 packages are looking for funding
run `npm fund` for details
3 moderate severity vulnerabilities
To address issues that do not require attention, run:
npm audit fix
To address all issues, run:
npm audit fix --force
Run `npm audit` for details.
Success: Install dashboard dependencies
cmdlet RunAndCheck at command pipeline position 1
Supply values for the following parameters:
Desc:
Typing any string allows the installation to continue.
To Reproduce
Run the install command:
Start-Process powershell -Verb RunAs -ArgumentList '-NoExit', '-ExecutionPolicy', 'Bypass', '-Command', "iwr -UseBasicParsing -Uri 'https://raw.githubusercontent.com/OpenAdaptAI/OpenAdapt/main/install/install_openadapt.ps1' | Invoke-Expression"
(openadapt-py3.10) PS C:\Users\abrichr\oa\openadapt> npm
npm <command>
Usage:
npm install install all the dependencies in your project
npm install <foo> add the <foo> dependency to your project
npm test run this project's tests
npm run <foo> run the script named <foo>
npm <command> -h quick help on <command>
npm -l display usage info for all commands
npm help <term> search for help on <term> (in a browser)
npm help npm more involved overview (in a browser)
All commands:
access, adduser, audit, bugs, cache, ci, completion,
config, dedupe, deprecate, diff, dist-tag, docs, doctor,
edit, exec, explain, explore, find-dupes, fund, get, help,
help-search, hook, init, install, install-ci-test,
install-test, link, ll, login, logout, ls, org, outdated,
owner, pack, ping, pkg, prefix, profile, prune, publish,
query, rebuild, repo, restart, root, run-script, sbom,
search, set, shrinkwrap, star, stars, start, stop, team,
test, token, uninstall, unpublish, unstar, update, version,
view, whoami
Specify configs in the ini-formatted file:
C:\Users\abrichr\.npmrc
or on the command line via: npm <command> --key=value
More configuration info: npm help config
Configuration fields: npm help 7 config
[email protected] C:\Users\abrichr\AppData\Roaming\nvm\v21.7.3\node_modules\npm
(openadapt-py3.10) PS C:\Users\abrichr\oa\openadapt> poetry run postinstall
Collecting git+https://github.com/facebookresearch/detectron2.git
Cloning https://github.com/facebookresearch/detectron2.git to c:\users\abrichr\appdata\local\temp\pip-req-build-7lnw0ai0
Running command git clone --filter=blob:none --quiet https://github.com/facebookresearch/detectron2.git 'C:\Users\abrichr\AppData\Local\Temp\pip-req-build-7lnw0ai0'
Resolved https://github.com/facebookresearch/detectron2.git to commit 70f454304e1a38378200459dd2dbca0f0f4a5ab4
Preparing metadata (setup.py) ... done
Requirement already satisfied: Pillow>=7.1 in c:\users\abrichr\appdata\local\pypoetry\cache\virtualenvs\openadapt-r03zoz2s-py3.10\lib\site-packages (from detectron2==0.6) (9.5.0)
Requirement already satisfied: matplotlib in c:\users\abrichr\appdata\local\pypoetry\cache\virtualenvs\openadapt-r03zoz2s-py3.10\lib\site-packages (from detectron2==0.6) (3.6.2)
Requirement already satisfied: pycocotools>=2.0.2 in c:\users\abrichr\appdata\local\pypoetry\cache\virtualenvs\openadapt-r03zoz2s-py3.10\lib\site-packages (from detectron2==0.6) (2.0.8)
Requirement already satisfied: termcolor>=1.1 in c:\users\abrichr\appdata\local\pypoetry\cache\virtualenvs\openadapt-r03zoz2s-py3.10\lib\site-packages (from detectron2==0.6) (2.4.0)
Requirement already satisfied: yacs>=0.1.8 in c:\users\abrichr\appdata\local\pypoetry\cache\virtualenvs\openadapt-r03zoz2s-py3.10\lib\site-packages (from detectron2==0.6) (0.1.8)
Requirement already satisfied: tabulate in c:\users\abrichr\appdata\local\pypoetry\cache\virtualenvs\openadapt-r03zoz2s-py3.10\lib\site-packages (from detectron2==0.6) (0.9.0)
Requirement already satisfied: cloudpickle in c:\users\abrichr\appdata\local\pypoetry\cache\virtualenvs\openadapt-r03zoz2s-py3.10\lib\site-packages (from detectron2==0.6) (3.0.0)
Requirement already satisfied: tqdm>4.29.0 in c:\users\abrichr\appdata\local\pypoetry\cache\virtualenvs\openadapt-r03zoz2s-py3.10\lib\site-packages (from detectron2==0.6) (4.64.0)
Requirement already satisfied: tensorboard in c:\users\abrichr\appdata\local\pypoetry\cache\virtualenvs\openadapt-r03zoz2s-py3.10\lib\site-packages (from detectron2==0.6) (2.17.0)
Requirement already satisfied: fvcore<0.1.6,>=0.1.5 in c:\users\abrichr\appdata\local\pypoetry\cache\virtualenvs\openadapt-r03zoz2s-py3.10\lib\site-packages (from detectron2==0.6) (0.1.5.post20221221)
Requirement already satisfied: iopath<0.1.10,>=0.1.7 in c:\users\abrichr\appdata\local\pypoetry\cache\virtualenvs\openadapt-r03zoz2s-py3.10\lib\site-packages (from detectron2==0.6) (0.1.9)
Requirement already satisfied: omegaconf<2.4,>=2.1 in c:\users\abrichr\appdata\local\pypoetry\cache\virtualenvs\openadapt-r03zoz2s-py3.10\lib\site-packages (from detectron2==0.6) (2.3.0)
Requirement already satisfied: hydra-core>=1.1 in c:\users\abrichr\appdata\local\pypoetry\cache\virtualenvs\openadapt-r03zoz2s-py3.10\lib\site-packages (from detectron2==0.6) (1.3.2)
Requirement already satisfied: black in c:\users\abrichr\appdata\local\pypoetry\cache\virtualenvs\openadapt-r03zoz2s-py3.10\lib\site-packages (from detectron2==0.6) (23.7.0)
Requirement already satisfied: packaging in c:\users\abrichr\appdata\local\pypoetry\cache\virtualenvs\openadapt-r03zoz2s-py3.10\lib\site-packages (from detectron2==0.6) (24.0)
Requirement already satisfied: numpy in c:\users\abrichr\appdata\local\pypoetry\cache\virtualenvs\openadapt-r03zoz2s-py3.10\lib\site-packages (from fvcore<0.1.6,>=0.1.5->detectron2==0.6) (1.24.4)
Requirement already satisfied: pyyaml>=5.1 in c:\users\abrichr\appdata\local\pypoetry\cache\virtualenvs\openadapt-r03zoz2s-py3.10\lib\site-packages (from fvcore<0.1.6,>=0.1.5->detectron2==0.6) (6.0.1)
Requirement already satisfied: antlr4-python3-runtime==4.9.* in c:\users\abrichr\appdata\local\pypoetry\cache\virtualenvs\openadapt-r03zoz2s-py3.10\lib\site-packages (from hydra-core>=1.1->detectron2==0.6) (4.9.3)
Requirement already satisfied: portalocker in c:\users\abrichr\appdata\local\pypoetry\cache\virtualenvs\openadapt-r03zoz2s-py3.10\lib\site-packages (from iopath<0.1.10,>=0.1.7->detectron2==0.6) (2.10.0)
Requirement already satisfied: contourpy>=1.0.1 in c:\users\abrichr\appdata\local\pypoetry\cache\virtualenvs\openadapt-r03zoz2s-py3.10\lib\site-packages (from matplotlib->detectron2==0.6) (1.2.1)
Requirement already satisfied: cycler>=0.10 in c:\users\abrichr\appdata\local\pypoetry\cache\virtualenvs\openadapt-r03zoz2s-py3.10\lib\site-packages (from matplotlib->detectron2==0.6) (0.12.1)
Requirement already satisfied: fonttools>=4.22.0 in c:\users\abrichr\appdata\local\pypoetry\cache\virtualenvs\openadapt-r03zoz2s-py3.10\lib\site-packages (from matplotlib->detectron2==0.6) (4.51.0)
Requirement already satisfied: kiwisolver>=1.0.1 in c:\users\abrichr\appdata\local\pypoetry\cache\virtualenvs\openadapt-r03zoz2s-py3.10\lib\site-packages (from matplotlib->detectron2==0.6) (1.4.5)
Requirement already satisfied: pyparsing>=2.2.1 in c:\users\abrichr\appdata\local\pypoetry\cache\virtualenvs\openadapt-r03zoz2s-py3.10\lib\site-packages (from matplotlib->detectron2==0.6) (3.1.2)
Requirement already satisfied: python-dateutil>=2.7 in c:\users\abrichr\appdata\local\pypoetry\cache\virtualenvs\openadapt-r03zoz2s-py3.10\lib\site-packages (from matplotlib->detectron2==0.6) (2.9.0.post0)
Requirement already satisfied: colorama in c:\users\abrichr\appdata\local\pypoetry\cache\virtualenvs\openadapt-r03zoz2s-py3.10\lib\site-packages (from tqdm>4.29.0->detectron2==0.6) (0.4.6)
Requirement already satisfied: click>=8.0.0 in c:\users\abrichr\appdata\local\pypoetry\cache\virtualenvs\openadapt-r03zoz2s-py3.10\lib\site-packages (from black->detectron2==0.6) (8.1.7)
Requirement already satisfied: mypy-extensions>=0.4.3 in c:\users\abrichr\appdata\local\pypoetry\cache\virtualenvs\openadapt-r03zoz2s-py3.10\lib\site-packages (from black->detectron2==0.6) (1.0.0)
Requirement already satisfied: pathspec>=0.9.0 in c:\users\abrichr\appdata\local\pypoetry\cache\virtualenvs\openadapt-r03zoz2s-py3.10\lib\site-packages (from black->detectron2==0.6) (0.12.1)
Requirement already satisfied: platformdirs>=2 in c:\users\abrichr\appdata\local\pypoetry\cache\virtualenvs\openadapt-r03zoz2s-py3.10\lib\site-packages (from black->detectron2==0.6) (4.2.0)
Requirement already satisfied: tomli>=1.1.0 in c:\users\abrichr\appdata\local\pypoetry\cache\virtualenvs\openadapt-r03zoz2s-py3.10\lib\site-packages (from black->detectron2==0.6) (2.0.1)
Requirement already satisfied: absl-py>=0.4 in c:\users\abrichr\appdata\local\pypoetry\cache\virtualenvs\openadapt-r03zoz2s-py3.10\lib\site-packages (from tensorboard->detectron2==0.6) (2.1.0) Requirement already satisfied: grpcio>=1.48.2 in c:\users\abrichr\appdata\local\pypoetry\cache\virtualenvs\openadapt-r03zoz2s-py3.10\lib\site-packages (from tensorboard->detectron2==0.6) (1.62.1) Requirement already satisfied: markdown>=2.6.8 in c:\users\abrichr\appdata\local\pypoetry\cache\virtualenvs\openadapt-r03zoz2s-py3.10\lib\site-packages (from tensorboard->detectron2==0.6) (3.6)
Requirement already satisfied: protobuf!=4.24.0,<5.0.0,>=3.19.6 in c:\users\abrichr\appdata\local\pypoetry\cache\virtualenvs\openadapt-r03zoz2s-py3.10\lib\site-packages (from tensorboard->detectron2==0.6) (4.25.3)
Requirement already satisfied: setuptools>=41.0.0 in c:\users\abrichr\appdata\local\pypoetry\cache\virtualenvs\openadapt-r03zoz2s-py3.10\lib\site-packages (from tensorboard->detectron2==0.6) (69.5.1)
Requirement already satisfied: six>1.9 in c:\users\abrichr\appdata\local\pypoetry\cache\virtualenvs\openadapt-r03zoz2s-py3.10\lib\site-packages (from tensorboard->detectron2==0.6) (1.16.0)
Requirement already satisfied: tensorboard-data-server<0.8.0,>=0.7.0 in c:\users\abrichr\appdata\local\pypoetry\cache\virtualenvs\openadapt-r03zoz2s-py3.10\lib\site-packages (from tensorboard->detectron2==0.6) (0.7.2)
Requirement already satisfied: werkzeug>=1.0.1 in c:\users\abrichr\appdata\local\pypoetry\cache\virtualenvs\openadapt-r03zoz2s-py3.10\lib\site-packages (from tensorboard->detectron2==0.6) (3.0.3)
Requirement already satisfied: MarkupSafe>=2.1.1 in c:\users\abrichr\appdata\local\pypoetry\cache\virtualenvs\openadapt-r03zoz2s-py3.10\lib\site-packages (from werkzeug>=1.0.1->tensorboard->detectron2==0.6) (2.1.5)
Requirement already satisfied: pywin32>=226 in c:\users\abrichr\appdata\local\pypoetry\cache\virtualenvs\openadapt-r03zoz2s-py3.10\lib\site-packages (from portalocker->iopath<0.1.10,>=0.1.7->detectron2==0.6) (306)
[notice] A new release of pip is available: 24.0 -> 24.1
[notice] To update, run: python.exe -m pip install --upgrade pip
Original directory: C:\Users\abrichr\oa\OpenAdapt
Dashboard directory: C:\Users\abrichr\oa\OpenAdapt\openadapt\app\dashboard
Changed directory to: C:\Users\abrichr\oa\OpenAdapt\openadapt\app\dashboard
Version 21.7.3 is already installed.
Now using node v21.7.3 (64-bit)
npm : The term 'npm' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Users\abrichr\oa\OpenAdapt\openadapt\app\dashboard\entrypoint.ps1:3 char:1
+ npm install
+ ~~~
+ CategoryInfo : ObjectNotFound: (npm:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Reverted to original directory: C:\Users\abrichr\oa\OpenAdapt
@KIRA009 any ideas?