bitcoin-dev-project / warnet

Monitor and analyze the emergent behaviors of Bitcoin networks
https://warnet.dev
MIT License
93 stars 35 forks source link

warnet windows support #655

Open 2Fast2BCn opened 1 month ago

2Fast2BCn commented 1 month ago

I'm trying to get warnet to work on my windows (with latest docker desktop installed). I followed the install tutorial. Then, I'm running: .\.venv\Scripts\Activate.ps1 in powershell Followed by

warnet --help
Usage: warnet [OPTIONS] COMMAND [ARGS]...
...

all good so far, even warnet status tells me:

Total Tanks: 0 | Active Scenarios: 0
Network connected

but then I try to deploy my own project folder twn with warnet deploy .\network\networks\twn\ and I get:

[WinError 2] The system cannot find the file specified
It looks like kubectl is not installed. Please install it to continue: https://kubernetes.io/docs/tasks/tools/

however in the same shell I can run

(.venv) PS C:\development\warnet> kubectl
kubectl controls the Kubernetes cluster manager.
willcl-ark commented 3 weeks ago

Thanks for this report.

I don't know much about windows, but I am wondering if this works under WSL? (or is this how you were trying to run it here?)