Git Product home page Git Product logo

green_cli's People

Contributors

dependabot[bot] avatar greenaddress avatar jamiedriver avatar jgriffiths avatar jkauffman1 avatar leocomandini avatar lvaccaro avatar noib3 avatar rcasatta avatar sputn1ck avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

green_cli's Issues

[Connection failure?] Green doesn't work

Hello, I'm aware that Liquid Green CLI is in the experimental phase, but there are some problems with establishing a connection with nod (but public). For example:

fervi@Osiris:~/green_cli$ green-liquid-cli --tor --network liquid set mnemonic ""
Nov 16 12:34:47.997 [notice] Tor 0.4.2.7 running on Linux with Libevent 2.1.11-stable, OpenSSL 1.1.1g, Zlib 1.2.11, Liblzma N/A, and Libzstd N/A.
Nov 16 12:34:47.997 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warning
Nov 16 12:34:47.997 [notice] Configuration file "/home/fervi/.torrc" not present, using reasonable defaults.
Nov 16 12:34:48.000 [notice] Opening Socks listener on 127.0.0.1:0
Nov 16 12:34:48.000 [notice] Socks listener listening on port 35637.
Nov 16 12:34:48.000 [notice] Opened Socks listener on 127.0.0.1:35637
Nov 16 12:34:48.000 [notice] Opening Control listener on 127.0.0.1:0
Nov 16 12:34:48.000 [notice] Control listener listening on port 39087.
Nov 16 12:34:48.000 [notice] Opened Control listener on 127.0.0.1:39087
Nov 16 12:34:48.000 [notice] Parsing GEOIP IPv4 file /home/fervi/gdk/build-clang/tor/build/share/tor/geoip.
Nov 16 12:34:48.000 [notice] Parsing GEOIP IPv6 file /home/fervi/gdk/build-clang/tor/build/share/tor/geoip6.
Nov 16 12:34:48.000 [notice] Bootstrapped 0% (starting): Starting
Nov 16 12:34:49.000 [notice] Starting with guard context "default"
Nov 16 12:34:49.000 [notice] New control connection opened from 127.0.0.1.
Nov 16 12:34:50.000 [notice] Bootstrapped 5% (conn): Connecting to a relay
Nov 16 12:34:50.000 [notice] Bootstrapped 10% (conn_done): Connected to a relay
Nov 16 12:34:50.000 [notice] Bootstrapped 14% (handshake): Handshaking with a relay
Nov 16 12:34:51.000 [notice] Bootstrapped 15% (handshake_done): Handshake with a relay done
Nov 16 12:34:51.000 [notice] Bootstrapped 75% (enough_dirinfo): Loaded enough directory info to build circuits
Nov 16 12:34:51.000 [notice] Bootstrapped 90% (ap_handshake_done): Handshake finished with a relay to build circuits
Nov 16 12:34:51.000 [notice] Bootstrapped 95% (circuit_create): Establishing a Tor circuit
Nov 16 12:34:51.000 [notice] Bootstrapped 100% (done): Done
Error: Invalid mnemonic

It's ok - wrong mnemonic (empty), but I execute this command again and:

fervi@Osiris:~/green_cli$ green-liquid-cli --tor --network liquid set mnemonic ""
Nov 16 12:35:18.030 [notice] Tor 0.4.2.7 running on Linux with Libevent 2.1.11-stable, OpenSSL 1.1.1g, Zlib 1.2.11, Liblzma N/A, and Libzstd N/A.
Nov 16 12:35:18.030 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warning
Nov 16 12:35:18.030 [notice] Configuration file "/home/fervi/.torrc" not present, using reasonable defaults.
Nov 16 12:35:18.032 [notice] Opening Socks listener on 127.0.0.1:0
Nov 16 12:35:18.032 [notice] Socks listener listening on port 33085.
Nov 16 12:35:18.032 [notice] Opened Socks listener on 127.0.0.1:33085
Nov 16 12:35:18.032 [notice] Opening Control listener on 127.0.0.1:0
Nov 16 12:35:18.032 [notice] Control listener listening on port 46439.
Nov 16 12:35:18.032 [notice] Opened Control listener on 127.0.0.1:46439
Nov 16 12:35:18.000 [notice] Parsing GEOIP IPv4 file /home/fervi/gdk/build-clang/tor/build/share/tor/geoip.
Nov 16 12:35:18.000 [notice] Parsing GEOIP IPv6 file /home/fervi/gdk/build-clang/tor/build/share/tor/geoip6.
Nov 16 12:35:18.000 [notice] Bootstrapped 0% (starting): Starting
Nov 16 12:35:19.000 [notice] Starting with guard context "default"
Nov 16 12:35:19.000 [notice] New control connection opened from 127.0.0.1.
Nov 16 12:35:20.000 [notice] Bootstrapped 5% (conn): Connecting to a relay
Nov 16 12:35:20.000 [notice] Bootstrapped 10% (conn_done): Connected to a relay
Nov 16 12:35:20.000 [notice] Bootstrapped 14% (handshake): Handshaking with a relay
Nov 16 12:35:21.000 [notice] Bootstrapped 15% (handshake_done): Handshake with a relay done
Nov 16 12:35:21.000 [notice] Bootstrapped 75% (enough_dirinfo): Loaded enough directory info to build circuits
Nov 16 12:35:21.000 [notice] Bootstrapped 90% (ap_handshake_done): Handshake finished with a relay to build circuits
Nov 16 12:35:21.000 [notice] Bootstrapped 95% (circuit_create): Establishing a Tor circuit
Nov 16 12:35:22.000 [notice] Bootstrapped 100% (done): Done
Traceback (most recent call last):
  File "/usr/local/bin/green-liquid-cli", line 8, in <module>
    sys.exit(main())
  File "/home/fervi/.local/lib/python3.8/site-packages/green_cli/green.py", line 687, in main
    green()
  File "/home/fervi/.local/lib/python3.8/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/home/fervi/.local/lib/python3.8/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/home/fervi/.local/lib/python3.8/site-packages/click/core.py", line 1134, in invoke
    Command.invoke(self, ctx)
  File "/home/fervi/.local/lib/python3.8/site-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/fervi/.local/lib/python3.8/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/home/fervi/.local/lib/python3.8/site-packages/green_cli/green.py", line 211, in green
    session = Session({'name': network, 'use_tor': tor})
  File "/home/fervi/.local/lib/python3.8/site-packages/green_cli/green.py", line 173, in __init__
    super().__init__( net_params)
  File "/usr/local/lib/python3.8/dist-packages/greenaddress/__init__.py", line 370, in __init__
    return self.connect(net_params)
  File "/usr/local/lib/python3.8/dist-packages/greenaddress/__init__.py", line 407, in connect
    return connect(self.session_obj, self._to_json(net_params))
  File "/usr/local/lib/python3.8/dist-packages/greenaddress/__init__.py", line 95, in connect
    return libgreenaddress.connect(session, net_params)
RuntimeError: Failed
Nov 16 12:35:27.000 [notice] Catching signal TERM, exiting cleanly.

Why TOR? Cause it sometimes works (without never works). I wonder if I'm doing something wrong or if you can't use Green without your own node.

Even check help is a problem:

fervi@Osiris:~/.green-cli/liquid$ green-liquid-cli sendtoaddress --help
Traceback (most recent call last):
  File "/usr/local/bin/green-liquid-cli", line 8, in <module>
    sys.exit(main())
  File "/home/fervi/.local/lib/python3.8/site-packages/green_cli/green.py", line 687, in main
    green()
  File "/home/fervi/.local/lib/python3.8/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/home/fervi/.local/lib/python3.8/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/home/fervi/.local/lib/python3.8/site-packages/click/core.py", line 1134, in invoke
    Command.invoke(self, ctx)
  File "/home/fervi/.local/lib/python3.8/site-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/fervi/.local/lib/python3.8/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/home/fervi/.local/lib/python3.8/site-packages/green_cli/green.py", line 211, in green
    session = Session({'name': network, 'use_tor': tor})
  File "/home/fervi/.local/lib/python3.8/site-packages/green_cli/green.py", line 173, in __init__
    super().__init__( net_params)
  File "/usr/local/lib/python3.8/dist-packages/greenaddress/__init__.py", line 370, in __init__
    return self.connect(net_params)
  File "/usr/local/lib/python3.8/dist-packages/greenaddress/__init__.py", line 407, in connect
    return connect(self.session_obj, self._to_json(net_params))
  File "/usr/local/lib/python3.8/dist-packages/greenaddress/__init__.py", line 95, in connect
    return libgreenaddress.connect(session, net_params)
RuntimeError: Failed

Install on MacOS M1 - not a supported wheel on this platform

Green CLI seems to not be supported on MacOS 12.3 M1. Is there something I can do about it?

▶ pip install -r requirements.txt

Ignoring greenaddress: markers '"linux" in sys_platform and python_version == "3.6"' don't match your environment
Ignoring greenaddress: markers '"linux" in sys_platform and python_version == "3.9"' don't match your environment
ERROR: greenaddress-0.0.50-cp39-cp39-macosx_11_0_x86_64.whl is not a supported wheel on this platform.
(venv)

greenaddress seems to be missing from pypi.org

Installing green_cli fails due to a 404 error.

$ pip3 install .
Processing /home/usbarmory/green_cli-master
Requirement already satisfied: Click in /home/usbarmory/.local/lib/python3.7/site-packages (from green-cli==0.1) (7.0)
Requirement already satisfied: click-repl in /home/usbarmory/.local/lib/python3.7/site-packages (from green-cli==0.1) (0.1.6)
Collecting greenaddress (from green-cli==0.1)
Could not install packages due to an EnvironmentError: 404 Client Error: Not Found for url: https://pypi.org/simple/greenaddress/

ERROR: Could not find a version that satisfies the requirement greenaddress (from green-cli) ERROR: No matching distribution found for greenaddress

Hello,

I receive the error:

ERROR: Could not find a version that satisfies the requirement greenaddress (from green-cli)
ERROR: No matching distribution found for greenaddress

When trying to install on Arch Linux after completing the following setup:

git clone https://github.com/Blockstream/green_cli
cd green_cli

python3 -m venv green_env
source green_env/bin/activate
pip install -r requirements.txt
pip install .

Am I missing some dependencies? Thank you in advance.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.