Skip to content

No module named 'pyln.client' #7370

@darioAnongba

Description

@darioAnongba

Issue and Steps to Reproduce

Trying to start a Core Lightning node in a docker-compose setup on MacOS (arm64v8) and the CLNRest plugin (clnrest-port set) will fail with this error :

plugin-clnrest.py: Killing plugin: disabled itself: No module named 'pyln.client'

The doc says:

The plugin is built-in with Core Lightning but its python dependencies are not, and must be installed separately.
Install required packages with pip install -r plugins/clnrest/requirements.txt.

But after spending some time on this I came to the conclusion that this is a bug, or rather a missing item in the Docker image on arm64v8 because the image should ship with the necessary dependencies since we cannot exec into it to install whatever might be missing, especially not in a kubernetes or any other professional env.

Also, it is working fine on amd64 so this seems to be a bug specific to MacOS.

I can fix this myself if you consider that it is indeed a bug.

Version

Version v24.02-arm64v8

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions