I'm trying to upgrade my Core Lightning from v23.08 to v24.02.1, but when I run the 'make' command, it throws an error.
I checked with 'python3 -m pip list', and this is what I got:
I figured I shouldn't have to do this, but I attempted to run 'python3 -m pip install grpc-tools' anyway. That didn't work and gave me an error:
I'm using a Pi 4B, and when I checked with 'cat /etc/os-release', here's what came up:
Sorry if this comes off as a dumb or repeat question, but did I overlook something obvious?
I don't use Core Lightning. But looking at their repository, i think your approach isn't right.
1. https://github.com/ElementsProject/lightning/blob/master/doc/getting-started/getting-started/installation.md state they use poetry rather than pip as a way to install python package.
2. https://github.com/ElementsProject/lightning/blob/master/poetry.lock doesn't mention anything about grpc-tools, so you probably tried to install non-relevant package.
Did you follow step-by-step build on their documentation?
Thank you. I installed as per the RaspiBolt documentation here:
https://raspibolt.org/guide/bonus/lightning/cln.html
At the time I don't recall there being any conflict with the Elements documentation, but I understand the c-lightning-REST plugin was moved into the main codebase around 23.08. The issue may stem from how I upgraded to that version.
I installed poetry and though it didn't immediately solve the failed build issue, that gives me something to look into more closely and I'll update here if I make progress.
This issue seemed to be due to the user/group structure specific to the RaspiBolt design and my error. I had installed grpcio-tools with the --user flag as user 'admin', with the command:
The upgrading process, as user lightningd, didn't have access presumably for that reason. Running the same command as user lightningd solved that issue. Running lightning-cli --version then showed 24.02.
However, restarting the service using 'sudo systemctl restart lightningd.service' failed. The logs showed two messages:
I installed gevent both as user 'admin' and as user 'lightningd'. On repeated failures to restart, I repeated the above for modules gunicorn, flask, flask_restx, flask_cors, flask_socketio and json5.
Finally, restarting failed due to missing module 'pyln'. It could not be installed, returning:
Searching for this, I find only Elements and lightningd results:
https://github.com/ElementsProject/lightning/issues/3982
https://github.com/lightningd/plugins/issues/314
This may be relevant as well: https://pypi.org/search/?q=pyln
There seems to be an issue with the requirements. I don't know if I can go any farther, but I'll update if I make any progress.