C-Otto / rebalance-lnd

A script that can be used to balance lightning channels of a lnd node
MIT License
343 stars 82 forks source link

Failure to install / run rebalance.py #306

Closed diskawrs closed 1 year ago

diskawrs commented 1 year ago

First off thank you for yet another tool!

I tried to follow the guide on raspi boltz website and I am not familiar with python in anyway so my apologizes upfront. Any advise on how to fix this, much appreciated.

rebalance-lnd@raspberrypi:~/rebalance-lnd $ pip install -r requirements.txt Defaulting to user installation because normal site-packages is not writeable Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Requirement already satisfied: googleapis-common-protos==1.58.0 in /home/rebalance-lnd/.local/lib/python3.9/site-packages (from -r requirements.txt (line 1)) (1.58.0) Requirement already satisfied: grpcio==1.51.1 in /home/rebalance-lnd/.local/lib/python3.9/site-packages (from -r requirements.txt (line 2)) (1.51.1) Requirement already satisfied: protobuf==3.20.2 in /home/rebalance-lnd/.local/lib/python3.9/site-packages (from -r requirements.txt (line 3)) (3.20.2) Requirement already satisfied: six==1.16.0 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 4)) (1.16.0) Requirement already satisfied: yachalk==0.1.5 in /home/rebalance-lnd/.local/lib/python3.9/site-packages (from -r requirements.txt (line 5)) (0.1.5) Requirement already satisfied: importlib-resources in /home/rebalance-lnd/.local/lib/python3.9/site-packages (from yachalk==0.1.5->-r requirements.txt (line 5)) (5.10.2) Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (from yachalk==0.1.5->-r requirements.txt (line 5)) (52.0.0) Requirement already satisfied: zipp>=3.1.0 in /home/rebalance-lnd/.local/lib/python3.9/site-packages (from importlib-resources->yachalk==0.1.5->-r requirements.txt (line 5)) (3.11.0) --- Logging error --- Traceback (most recent call last): File "/usr/local/lib/python3.9/dist-packages/pip/_internal/utils/logging.py", line 177, in emit self.console.print(renderable, overflow="ignore", crop=False, style=style) File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/rich/console.py", line 1752, in print extend(render(renderable, render_options)) File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/rich/console.py", line 1390, in render for render_output in iter_render: File "/usr/local/lib/python3.9/dist-packages/pip/_internal/utils/logging.py", line 134, in rich_console for line in lines: File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/rich/segment.py", line 245, in split_lines for segment in segments: File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/rich/console.py", line 1368, in render renderable = rich_cast(renderable) File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/rich/protocol.py", line 36, in rich_cast renderable = cast_method() File "/usr/local/lib/python3.9/dist-packages/pip/_internal/self_outdated_check.py", line 130, in rich__ pip_cmd = get_best_invocation_for_this_pip() File "/usr/local/lib/python3.9/dist-packages/pip/_internal/utils/entrypoints.py", line 58, in get_best_invocation_for_this_pip if found_executable and os.path.samefile( File "/usr/lib/python3.9/genericpath.py", line 101, in samefile s2 = os.stat(f2) FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/pip3.9' Call stack: File "/usr/local/bin/pip", line 8, in sys.exit(main()) File "/usr/local/lib/python3.9/dist-packages/pip/_internal/cli/main.py", line 70, in main return command.main(cmd_args) File "/usr/local/lib/python3.9/dist-packages/pip/_internal/cli/base_command.py", line 101, in main return self._main(args) File "/usr/local/lib/python3.9/dist-packages/pip/_internal/cli/base_command.py", line 223, in _main self.handle_pip_version_check(options) File "/usr/local/lib/python3.9/dist-packages/pip/_internal/cli/req_command.py", line 148, in handle_pip_version_check pip_self_version_check(session, options) File "/usr/local/lib/python3.9/dist-packages/pip/_internal/self_outdated_check.py", line 237, in pip_self_version_check logger.info("[present-rich] %s", upgrade_prompt) File "/usr/lib/python3.9/logging/init.py", line 1442, in info self._log(INFO, msg, args, **kwargs) File "/usr/lib/python3.9/logging/init.py", line 1585, in _log self.handle(record) File "/usr/lib/python3.9/logging/init.py", line 1595, in handle self.callHandlers(record) File "/usr/lib/python3.9/logging/init.py", line 1657, in callHandlers hdlr.handle(record) File "/usr/lib/python3.9/logging/init__.py", line 948, in handle self.emit(record) File "/usr/local/lib/python3.9/dist-packages/pip/_internal/utils/logging.py", line 179, in emit self.handleError(record) Message: '[present-rich] %s'

C-Otto commented 1 year ago

Looks like your pip/python installation is broken. With debian I'd try "apt install python" etc., but I don't know enough about your system to be more specific. No matter what, this isn't an issue with rebalance-lnd, which is why I'm closing this issue. Good luck and thanks for the kind words :)