Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
robotparty opened this issue Oct 6, 2021 · 2 comments

Comments

@robotparty
Copy link

robotparty commented Oct 6, 2021

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 robotparty changed the title rebalance plugin startup error: cannot import name 'ShortChannelId' from 'pyln.proto' plugin startup error: cannot import name 'ShortChannelId' from 'pyln.proto' Oct 7, 2021
@robotparty
Copy link
Author

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

@vincenzopalazzo
Copy link
Collaborator

This should be fixed in the 0.10.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants