plugins icon indicating copy to clipboard operation
plugins copied to clipboard

plugin startup error: cannot import name 'ShortChannelId' from 'pyln.proto'

Open robotparty opened this issue 4 years ago • 2 comments

An example but this issue occurs with all plugins:

Traceback (most recent call last):
  File "/home/lightningd/.lightning/plugins/rebalance/rebalance.py", line 2, in <module>
    from pyln.client import Plugin, Millisatoshi, RpcError
  File "/usr/local/lib/python3.8/dist-packages/pyln/client/__init__.py", line 3, in <module>
    from .gossmap import Gossmap, GossmapNode, GossmapChannel, GossmapNodeId
  File "/usr/local/lib/python3.8/dist-packages/pyln/client/gossmap.py", line 5, in <module>
    from pyln.proto import ShortChannelId, PublicKey
ImportError: cannot import name 'ShortChannelId' from 'pyln.proto' (/home/lightningd/.local/lib/python3.8/site-packages/pyln/proto/__init__.py)

lightningd version: v0.10.1-193-gbb307fa pyln-client: 0.10.1 pyln-proto: 0.10.1

robotparty avatar Oct 06 '21 06:10 robotparty

Note that I found a fix for this issue and opened an issue in https://github.com/ElementsProject/lightning describing it: https://github.com/ElementsProject/lightning/issues/4848

robotparty avatar Oct 07 '21 20:10 robotparty

This should be fixed in the 0.10.2

vincenzopalazzo avatar Nov 15 '21 07:11 vincenzopalazzo