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:
python3 -m pip install --user grpcio-tools
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:
lightningd: v24.02.1-93-gc4edec8
plugin-clnrest: Killing plugin: disabled itself: No module named 'gevent'
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:
ERROR: Could not find a version that satisfies the requirement pyln
ERROR: No matching distribution found for pyln
Searching for this, I find only Elements and lightningd results:
https://github.com/ElementsProject/lightning/issues/3982https://github.com/lightningd/plugins/issues/314This may be relevant as well:
https://pypi.org/search/?q=pylnThere 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.