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

Traceback when running on Ubuntu 18.04 #2

Closed
sipsorcery opened this issue Jun 5, 2021 · 2 comments
Closed

Traceback when running on Ubuntu 18.04 #2

sipsorcery opened this issue Jun 5, 2021 · 2 comments

Comments

@sipsorcery
Copy link

The output of the script looks really nice. Sadly I wasn't able to get it to work on my nodes.

$ uname -a
Linux btcaz 5.4.0-1046 #48~18.04.1-Ubuntu SMP Tue Apr 13 19:41:38 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

$ lsb_release -a

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.5 LTS
Release:        18.04
Codename:       bionic

$ python3 --version
Python 3.6.9

$ ./suez

Traceback (most recent call last):
  File "./suez", line 5, in <module>
    suez()
  File "/usr/lib/python3/dist-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python3/dist-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python3/dist-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/home/azureuser/src/suez/suez.py", line 46, in suez
    ln = LndClient()
  File "/home/azureuser/src/suez/lndclient.py", line 9, in __init__
    self.refresh()
  File "/home/azureuser/src/suez/lndclient.py", line 12, in refresh
    gi = self._run("getinfo")
  File "/home/azureuser/src/suez/lndclient.py", line 96, in _run
    j = subprocess.run(("lncli",) + args, capture_output=True)
  File "/usr/lib/python3.6/subprocess.py", line 423, in run
    with Popen(*popenargs, **kwargs) as process:
TypeError: __init__() got an unexpected keyword argument 'capture_output'
@prusnak
Copy link
Owner

prusnak commented Jun 5, 2021

@sipsorcery can you please try whether this fix works for you 0234e1e ? (you can just git pull)

@sipsorcery
Copy link
Author

The stdout=subprocess.PIPE fixed it! Awesome, thanks!

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