diff --git a/autopilot/c-lightning-autopilot.py b/autopilot/c-lightning-autopilot.py index a48e2e0..f65b509 100644 --- a/autopilot/c-lightning-autopilot.py +++ b/autopilot/c-lightning-autopilot.py @@ -52,7 +52,7 @@ import math import pickle import sys -from lightning import LightningRpc +from pyln.client import LightningRpc import dns.resolver from bech32 import bech32_decode, CHARSET, convertbits diff --git a/summary/summary.py b/summary/summary.py index c6b38fe..4c84cae 100755 --- a/summary/summary.py +++ b/summary/summary.py @@ -2,7 +2,7 @@ from pyln.client import Plugin, Millisatoshi from packaging import version from collections import namedtuple -import lightning +import pyln.client import json from math import floor, log10 import requests @@ -15,7 +15,7 @@ have_utf8 = False # __version__ was introduced in 0.0.7.1, with utf8 passthrough support. try: - if version.parse(lightning.__version__) >= version.parse("0.0.7.1"): + if version.parse(pyln.client.__version__) >= version.parse("0.0.7.1"): have_utf8 = True except Exception: pass