Closed shaunkhoo closed 2 weeks ago
Does this tool install for Windows environment?
python 3.11.9 node v20.16.0 npm 10.8.1
everytime I run, I am getting the error below.
---error snippet
Generating static pages (0/25) [ ]TypeError: fetch failed at node:internal/deps/undici/undici:13178:13 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) ...
Export encountered errors on following paths: /benchmarking/cookbooks/page: /benchmarking/cookbooks Traceback (most recent call last): File "
", line 198, in _run_module_as_main File " ", line 88, in _run_code
@imda-benedictlee can you take a look at this
hi @hingsoon it should work with windows environment. is it possible for you to share your logs so that we can better debug this issue?
Not sure how to get the logs but I will attach all the pip install instructions and whatever I see on screen here.
moonshot_installation_log.txt moonshot_install.txt pip_install.txt
Does this tool install for Windows environment?
python 3.11.9 node v20.16.0 npm 10.8.1
everytime I run, I am getting the error below.
---error snippet
Generating static pages (0/25) [ ]TypeError: fetch failed at node:internal/deps/undici/undici:13178:13 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) ...
Export encountered errors on following paths: /benchmarking/cookbooks/page: /benchmarking/cookbooks Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code
Hi @hingsoon This PR should resolve the issue. Will let you know when it's merged. PR - https://github.com/aiverify-foundation/moonshot-ui/pulls
Description
python -m moonshot web
doesn't work ifnode
andnpm
were not installed prior to runningpython -m moonshot -i moonshot-data -i moonshot-ui
. When re-runningpython -m moonshot -i moonshot-ui
to reinstall the web interface, it checks that themoonshot-ui
directory is set up and thus skips the setup, butlocalhost:3000
doesn't return the web interface.Steps to Reproduce
node
andnpm
installed on your computer.node
andnpm
after getting the error.python -m moonshot -i moonshot-ui
again to see that it reportsDirectory moonshot-ui already exists, skipping installation.
.python -m moonshot web
to see an empty web page loaded.Workarounds
You can delete the
moonshot-ui
folder and re-runpython -m moonshot -i moonshot-ui
after installingnode
andnpm
.Suggestions
Although both
node
andnpm
were included as installation requirements, it would be better to check them upfront before running the installation script to avoid a half-complete installation. Another option is to delete the entiremoonshot-ui
folder if any error is discovered during themoonshot-ui
setup process.