OpenAdapt
OpenAdapt copied to clipboard
[Bug]: `python -m openadapt.app.dashboard.run` broken
Describe the bug
(openadapt-py3.10) abrichr@MacBook-Pro-5 OpenAdapt % poetry run install-dashboard
N/A: version "N/A -> N/A" is not yet installed.
You need to run "nvm install N/A" to install it before using it.
v21.7.3 is already installed.
Now using node v21.7.3 (npm v10.5.0)
Found '/Users/abrichr/oa/OpenAdapt/openadapt/app/dashboard/.nvmrc' with version <21>
Now using node v21.7.3 (npm v10.5.0)
added 1 package, and audited 460 packages in 2s
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.
npm notice
npm notice New minor version of npm available! 10.5.0 -> 10.8.1
npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.8.1
npm notice Run npm install -g [email protected] to update!
npm notice
(openadapt-py3.10) abrichr@MacBook-Pro-5 OpenAdapt % python -m openadapt.app.dashboard.run
Exception in thread Thread-1 (run_client):
Traceback (most recent call last):
File "/opt/homebrew/Cellar/[email protected]/3.10.14/Frameworks/Python.framework/Versions/3.10/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
self.run()
File "/opt/homebrew/Cellar/[email protected]/3.10.14/Frameworks/Python.framework/Versions/3.10/lib/python3.10/threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "/Users/abrichr/oa/OpenAdapt/openadapt/app/dashboard/run.py", line 35, in run_client
dashboard_process = subprocess.Popen(
File "/opt/homebrew/Cellar/[email protected]/3.10.14/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 971, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/opt/homebrew/Cellar/[email protected]/3.10.14/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 1863, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'node'
^C2024-06-06 16:49:01.663 | DEBUG | __main__:cleanup:59 - Terminating the dashboard client.
2024-06-06 16:49:01.664 | DEBUG | __main__:cleanup:64 - Dashboard client terminated.
^C
(openadapt-py3.10) abrichr@MacBook-Pro-5 OpenAdapt %
To Reproduce
See above