carlaKC / attackathon

utilities and instructions to run a lightning jamming attackathon
0 stars 6 forks source link

getting `warcli` command not found #59

Open PurpleTimez opened 3 months ago

PurpleTimez commented 3 months ago

Testing the whole bunch of scripts, start_warnet.sh and thenstart_network.sh yield the following error.

hello@jamming-test:~$ ./attackathon/scripts/start_network.sh attackathon/data/ln_10/
error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
    python3-xyz, where xyz is the package you are trying to
    install.

    If you wish to install a non-Debian-packaged Python package,
    create a virtual environment using python3 -m venv path/to/venv.
    Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
    sure you have python3-full installed.

    If you wish to install a non-Debian packaged Python application,
    it may be easiest to use pipx install xyz, which will manage a
    virtual environment for you. Make sure you have pipx installed.

    See /usr/share/doc/python3.11/README.venv for more information.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
💣 Bringing up warnet 💣
./attackathon/scripts/start_network.sh: line 25: warcli: command not found
Waiting for L1 p2p connections
./attackathon/scripts/start_network.sh: line 30: warcli: command not found
Opening channels and syncing gossip
./attackathon/scripts/start_network.sh: line 35: warcli: command not found
Waiting for gossip to sync
./attackathon/scripts/start_network.sh: line 38: warcli: command not found
Mining blocks every 5 minutes
./attackathon/scripts/start_network.sh: line 43: warcli: command not found
Generating random payment activity
cat: /home/hello/attackathon/data/attackathon/data/ln_10//target.txt: No such file or directory
./attackathon/scripts/start_network.sh: line 48: warcli: command not found

Note start_warnet.sh works well in parallel and warnet repository has been well download. I don't know if it's an issue with host system (debian 12.5) or command run, will look more into that.

pinheadmz commented 3 months ago

I think newer versions of python are more annoying about virtual environments.

https://github.com/bitcoin-dev-project/warnet/blob/main/docs/install.md#optional-use-a-virtual-python-environment-such-as-venv