Title: Updating CLN 23.08 -> 24.02: No module named 'grpc_tools' Post by: BJ2gCFtGbiVK on April 13, 2024, 08:03:00 PM I'm currently running Core Lightning v23.08 and attempting to upgrade. I pulled v24.02.1, but the 'make' command fails with the following error:
Code: /usr/bin/python3: Error while finding module specification for 'grpc_tools.protoc' (ModuleNotFoundError: No module named 'grpc_tools') Running 'python3 -m pip list' returns the following: Code: gpiozero 1.6.2 I don't think it should be necessary to do the following, but I tried 'python3 -m pip install grpc-tools'. That failed, returning the error: Code: Collecting grpc-tools The hardware is a Pi 4B. Running 'cat /etc/os-release' returns the following: Code: PRETTY_NAME="Debian GNU/Linux 11 (bullseye)" Apologies if this is a silly or duplicate question, but am I missing something obvious? Title: Re: Updating CLN 23.08 -> 24.02: No module named 'grpc_tools' Post by: ABCbits on April 14, 2024, 10:08:06 AM 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 (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 (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? Title: Re: Updating CLN 23.08 -> 24.02: No module named 'grpc_tools' Post by: BJ2gCFtGbiVK on April 14, 2024, 11:27:42 AM 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 (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 (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. Title: Re: Updating CLN 23.08 -> 24.02: No module named 'grpc_tools' Post by: BJ2gCFtGbiVK on April 14, 2024, 09:29:27 PM 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:
Code: 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: Code: lightningd: v24.02.1-93-gc4edec8 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: Code: ERROR: Could not find a version that satisfies the requirement pyln 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. Title: Re: Updating CLN 23.08 -> 24.02: No module named 'grpc_tools' Post by: BJ2gCFtGbiVK on April 15, 2024, 11:23:13 AM I opened an Issue: https://github.com/ElementsProject/lightning/issues/7220
|