Giter VIP home page Giter VIP logo

raspibolt-extras's Introduction

raspibolt-extras's People

Contributors

alanstocco avatar kristapsk avatar tracachang avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

raspibolt-extras's Issues

Coincurve install error while installing joinmarket

I'm facing the following error while trying to install joinmarket on my Raspibolt (based on a RockPi 4C 4GB with a Kingston A2000 SSD):

Building wheels for collected packages: coincurve
  Building wheel for coincurve (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /home/bitcoin/joinmarket-clientserver-0.7.0/jmvenv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-p5pvucgr/coincurve/setup.py'"'"'; __file__='"'"'/tmp/pip-install-p5pvucgr/coincurve/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-oxeb1nef
       cwd: /tmp/pip-install-p5pvucgr/coincurve/
  Complete output (26 lines):
  Warning: 'keywords' should be a list, got type 'tuple'
  running bdist_wheel
  The [wheel] section is deprecated. Use [bdist_wheel] instead.
  running build
  running build_py
  creating build
  creating build/lib.linux-aarch64-3.7
  creating build/lib.linux-aarch64-3.7/coincurve
  copying coincurve/__init__.py -> build/lib.linux-aarch64-3.7/coincurve
  copying coincurve/keys.py -> build/lib.linux-aarch64-3.7/coincurve
  copying coincurve/utils.py -> build/lib.linux-aarch64-3.7/coincurve
  copying coincurve/ecdsa.py -> build/lib.linux-aarch64-3.7/coincurve
  copying coincurve/context.py -> build/lib.linux-aarch64-3.7/coincurve
  copying coincurve/flags.py -> build/lib.linux-aarch64-3.7/coincurve
  copying coincurve/_windows_libsecp256k1.py -> build/lib.linux-aarch64-3.7/coincurve
  running build_ext
  generating cffi module 'build/temp.linux-aarch64-3.7/_libsecp256k1.c'
  creating build/temp.linux-aarch64-3.7
  building '_libsecp256k1' extension
  creating build/temp.linux-aarch64-3.7/build
  creating build/temp.linux-aarch64-3.7/build/temp.linux-aarch64-3.7
  aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.7m -I/home/bitcoin/joinmarket-clientserver-0.7.0/jmvenv/include/python3.7m -c build/temp.linux-aarch64-3.7/_libsecp256k1.c -o build/temp.linux-aarch64-3.7/build/temp.linux-aarch64-3.7/_libsecp256k1.o
  aarch64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-aarch64-3.7/build/temp.linux-aarch64-3.7/_libsecp256k1.o -lsecp256k1 -o build/lib.linux-aarch64-3.7/coincurve/_libsecp256k1.cpython-37m-aarch64-linux-gnu.so
  /usr/bin/ld: cannot find -lsecp256k1
  collect2: error: ld returned 1 exit status
  error: command 'aarch64-linux-gnu-gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for coincurve
  Running setup.py clean for coincurve
Failed to build coincurve
DEPRECATION: Could not build wheels for coincurve which do not use PEP 517. pip will fall back to legacy 'setup.py install' for these. pip 21.0 will remove support for this functionality. A possible replacement is to fix the wheel build issue reported above. You can find discussion regarding this at https://github.com/pypa/pip/issues/8368.
Installing collected packages: constantly, attrs, six, Automat, idna, hyperlink, zope.interface, incremental, PyHamcrest, twisted, pyasn1, pycparser, cffi, cryptography, pyasn1-modules, service-identity, colorama, future, chromalog, joinmarketbase, asn1crypto, coincurve, python-bitcointx, pyaes, urldecode, joinmarketbitcoin, mnemonic, argon2-cffi, bencoder.pyx, joinmarketclient, txtorcon, pyopenssl, libnacl, joinmarketdaemon
  Running setup.py develop for joinmarketbase
    Running setup.py install for coincurve ... error
    ERROR: Command errored out with exit status 1:
     command: /home/bitcoin/joinmarket-clientserver-0.7.0/jmvenv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-p5pvucgr/coincurve/setup.py'"'"'; __file__='"'"'/tmp/pip-install-p5pvucgr/coincurve/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-0_lq0cei/install-record.txt --single-version-externally-managed --compile --install-headers /home/bitcoin/joinmarket-clientserver-0.7.0/jmvenv/include/site/python3.7/coincurve
         cwd: /tmp/pip-install-p5pvucgr/coincurve/
    Complete output (25 lines):
    Warning: 'keywords' should be a list, got type 'tuple'
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-aarch64-3.7
    creating build/lib.linux-aarch64-3.7/coincurve
    copying coincurve/__init__.py -> build/lib.linux-aarch64-3.7/coincurve
    copying coincurve/keys.py -> build/lib.linux-aarch64-3.7/coincurve
    copying coincurve/utils.py -> build/lib.linux-aarch64-3.7/coincurve
    copying coincurve/ecdsa.py -> build/lib.linux-aarch64-3.7/coincurve
    copying coincurve/context.py -> build/lib.linux-aarch64-3.7/coincurve
    copying coincurve/flags.py -> build/lib.linux-aarch64-3.7/coincurve
    copying coincurve/_windows_libsecp256k1.py -> build/lib.linux-aarch64-3.7/coincurve
    running build_ext
    generating cffi module 'build/temp.linux-aarch64-3.7/_libsecp256k1.c'
    creating build/temp.linux-aarch64-3.7
    building '_libsecp256k1' extension
    creating build/temp.linux-aarch64-3.7/build
    creating build/temp.linux-aarch64-3.7/build/temp.linux-aarch64-3.7
    aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.7m -I/home/bitcoin/joinmarket-clientserver-0.7.0/jmvenv/include/python3.7m -c build/temp.linux-aarch64-3.7/_libsecp256k1.c -o build/temp.linux-aarch64-3.7/build/temp.linux-aarch64-3.7/_libsecp256k1.o
    aarch64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-aarch64-3.7/build/temp.linux-aarch64-3.7/_libsecp256k1.o -lsecp256k1 -o build/lib.linux-aarch64-3.7/coincurve/_libsecp256k1.cpython-37m-aarch64-linux-gnu.so
    /usr/bin/ld: cannot find -lsecp256k1
    collect2: error: ld returned 1 exit status
    error: command 'aarch64-linux-gnu-gcc' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /home/bitcoin/joinmarket-clientserver-0.7.0/jmvenv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-p5pvucgr/coincurve/setup.py'"'"'; __file__='"'"'/tmp/pip-install-p5pvucgr/coincurve/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-0_lq0cei/install-record.txt --single-version-externally-managed --compile --install-headers /home/bitcoin/joinmarket-clientserver-0.7.0/jmvenv/include/site/python3.7/coincurve Check the logs for full command output.
Joinmarket was not installed. Exiting.

I looked at the coincurve repo and noticed a missing dependency (libffi-dev), but installing that didn't help.

Error encountered trying to initialize a JM wallet on v3 Raspibolt

I have set up a new pi using the raspibolt v3 guide.

I am encountering the following error:

(jmvenv) bitcoin@raspibolt:~/joinmarket/scripts $ python wallet-tool.py WalletFSN.jmdat
User data location: /home/bitcoin/.joinmarket/
Enter passphrase to decrypt wallet: 
Traceback (most recent call last):
  File "/home/bitcoin/joinmarket-clientserver-0.9.6/scripts/wallet-tool.py", line 6, in <module>
    jmprint(wallet_tool_main("wallets"), "success")
  File "/home/bitcoin/joinmarket-clientserver-0.9.6/jmclient/jmclient/wallet_utils.py", line 1586, in wallet_tool_main
    if wallet_service.sync_wallet(fast = not options.recoversync):
  File "/home/bitcoin/joinmarket-clientserver-0.9.6/jmclient/jmclient/wallet_service.py", line 490, in sync_wallet
    self.sync_wallet_fast()
  File "/home/bitcoin/joinmarket-clientserver-0.9.6/jmclient/jmclient/wallet_service.py", line 518, in sync_wallet_fast
    self.sync_addresses_fast()
  File "/home/bitcoin/joinmarket-clientserver-0.9.6/jmclient/jmclient/wallet_service.py", line 556, in sync_addresses_fast
    self.get_address_usages()
  File "/home/bitcoin/joinmarket-clientserver-0.9.6/jmclient/jmclient/wallet_service.py", line 534, in get_address_usages
    agd = self.bci.listaddressgroupings()
  File "/home/bitcoin/joinmarket-clientserver-0.9.6/jmclient/jmclient/blockchaininterface.py", line 575, in listaddressgroupings
    return self._rpc('listaddressgroupings', [])
  File "/home/bitcoin/joinmarket-clientserver-0.9.6/jmclient/jmclient/blockchaininterface.py", line 234, in _rpc
    res = self.jsonRpc.call(method, args)
  File "/home/bitcoin/joinmarket-clientserver-0.9.6/jmclient/jmclient/jsonrpc.py", line 165, in call
    raise JsonRpcError(response["error"])
jmclient.jsonrpc.JsonRpcError: {'code': -18, 'message': 'No wallet is loaded. Load a wallet using loadwallet or create a new one with createwallet. (Note: A default wallet is no longer automatically created)'}

I installed the latest Jm (0.9.6) and my joinmarket external library is at /data/joinmarket

Would appreciate your help

Can't install Joinmarket 0.8.0 (ERROR: Package 'joinmarketbase' requires a different Python: 3.5.3 not in '>=3.6')

I am trying to install the newest release of JM but hitting the error message ERROR: Package 'joinmarketbase' requires a different Python: 3.5.3 not in '>=3.6' after the ./install.sh --without-qt. command.

When entering sudo apt-get install python-virtualenv curl python3-dev python3-pip build-essential automake pkg-config libtool libgmp-dev libltdl-dev libssl-dev libatlas3-base, it returns that everything is on the newest version already. I also done sudo apt update and sudo apt full-upgrade before that.

So it seems I need to upgrade my Python somehow. Quick google search returns some guides how to install Python 3.8 on a Raspberry but it looks a bit complicated, so I wanted to seek advice here first if there might be any easier ways to do that. Thank you!

edit: the error message in full (it appears after a while in the installation process, there is a lot happening before that):

DEPRECATION: Python 3.5 reached the end of its life on September 13th, 2020. Please upgrade your Python as Python 3.5 is no longer maintained. pip 21.0 will drop support for Python 3.5 in January 2021. pip 21.0 will remove support for this functionality.
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Obtaining file:///home/bitcoin/joinmarket-clientserver-0.8.0/jmbase (from -r requirements/base.txt (line 1))
ERROR: Package 'joinmarketbase' requires a different Python: 3.5.3 not in '>=3.6'

edit2: my Raspberry is on Raspbian VERSION="9 (stretch)", which as I understand is the version from 2017, so just mentioning it here in case it's relevant... I was wondering if upgrading it might be of any help here?

edit3: I ended up installing Python 3.9.0 by this guide, which was successful, but python3 --version still shows 3.5.3. As I understand it, I need to update the symlink of python3 somehow, but wasn't able to figure out how to do that

Can't look up JM's local orderbook

I am trying to look up JM orderbook locally on my Raspibolt, following the steps as described here: https://github.com/JoinMarket-Org/joinmarket-clientserver/blob/master/docs/orderbook.md

I am getting the following output:

python ob-watcher.py
2020-12-06 18:09:00,943 [WARNING]  matplotlib not found, charts will not be available. Do `pip install matplotlib` in the joinmarket virtualenv.

2020-12-06 18:09:02,568 [INFO]  Starting ob-watcher
2020-12-06 18:09:07,672 [INFO]  joined: #joinmarket-pit irc-eu-1.darkscience.net
2020-12-06 18:09:07,677 [INFO]  Could not connect to *ALL* servers yet, waiting up to 60 more seconds.
2020-12-06 18:09:08,672 [INFO]  joined: #joinmarket-pit guybrush.hackint.org
2020-12-06 18:09:08,675 [INFO]  All IRC servers connected, starting execution.

started http server, visit http://localhost:62601/

On my laptop, I tried to copypaste the link above into my browser, as well as trying my Raspibolt's local IP http://[192.168.xxx]:62601/, but getting the error "cannot connect to server" in both cases.

Is there anything I can do to see the orderbook on the Raspibolt?

How to recreate the default joinmarket.cfg?

Hi,

I am running the newest Joinmarket release (0.9.3). Noticed that my joinmarket.cfg file hasn't been updating for a while, f.ex I can't find the yieldgenerator fee settings which I used to adjust by opening nano yg-privacyenhanced.py but those have since then moved to the config file, according to 0.8.1 release notes. My config file seems to be from the time before that release.

The link above also suggests to back up and recreate the config file. What is the way to go about that? Alternatively, could someone please post the up-to-date default config? I think I found it here (from line 91) but not entirely sure if that's the right one. If it is, I guess I can simply copy paste it into my joinmarket.cfg file (and adjust the necessary lines)?

Thanks :)

repeatedly getting the error "Commitment is blacklisted"

Hi, I'm running the yieldgenerator (JM 0.9.9) and since a few days it repeatedly and very frequently (like, every hour or two) throws the error in the title. So the last lines in my current log file look like this (edited out the error strings, which all start with J5, and the actual commitment strings, as I have no idea if it might be bad for privacy):

2023-03-07 16:41:14,866 [INFO] error<[edit]> : Commitment is blacklisted: [long string]
2023-03-07 16:45:21,835 [INFO] error<[edit]> : Commitment is blacklisted: [long string]
2023-03-07 16:52:12,095 [INFO] error<[edit]> : Commitment is blacklisted: [long string]
2023-03-07 17:05:27,915 [INFO] error<[edit]> : Commitment is blacklisted: [long string]
2023-03-07 18:19:26,928 [INFO] error<[edit]> : Commitment is blacklisted: [long string]

Searching through docs and issues on the JM Github for that error message doesn't get much. Is it something I should be worrying about, and how would I go about finding the source of the error?

Have been running the yieldgenerator for a while now without issues, the error started appearing without me changing anything, IIRC (I updated a few weeks ago from 0.9.8 to 0.9.9 but it has been running and doing coinjoins without the error up until the last few days - although I think it still is doing coinjoins anyway).

jmclient.jsonrpc.JsonRpcConnectionError: authentication for JSON-RPC failed

I am was trying to update from Joinmarket 0.6.1 to 0.6.2. The previous version was running fine. It was set up on an older version of RaspiBolt, where the symbolic links to the external HDD were a bit different, and there were some differences to the current version regarding the "admin" user, but I don't recall the details, just mentioning it here in case it is important in solving my issue. In any case, I wasn't able to adjust the JM update to my older version of RaspiBolt and decided to follow the Joinmarket setup guide just as it is (assuming that in the worst case I can just re-import my JM wallet backup into the new installation)

The installation itself seemed to went fine, but my issue now is that at the step of "first run" after installation I am encountering the following errors:

$ python wallet-tool.py generate

User data location: /home/pi/.joinmarket/
Traceback (most recent call last):
File "wallet-tool.py", line 6, in
jmprint(wallet_tool_main("wallets"), "success")
File "/home/bitcoin/joinmarket-clientserver-0.6.2/jmclient/jmclient/wallet_utils.py", line 1191, in wallet_tool_main
load_program_config(config_path=options.datadir)
File "/home/bitcoin/joinmarket-clientserver-0.6.2/jmclient/jmclient/configure.py", line 505, in load_program_config
global_singleton.config)
File "/home/bitcoin/joinmarket-clientserver-0.6.2/jmclient/jmclient/configure.py", line 570, in get_blockchain_interface_instance
bc_interface = BitcoinCoreInterface(rpc, network)
File "/home/bitcoin/joinmarket-clientserver-0.6.2/jmclient/jmclient/blockchaininterface.py", line 166, in init
blockchainInfo = self.jsonRpc.call("getblockchaininfo", [])
File "/home/bitcoin/joinmarket-clientserver-0.6.2/jmclient/jmclient/jsonrpc.py", line 145, in call
response = self.queryHTTP(request)
File "/home/bitcoin/joinmarket-clientserver-0.6.2/jmclient/jmclient/jsonrpc.py", line 103, in queryHTTP
raise exc
File "/home/bitcoin/joinmarket-clientserver-0.6.2/jmclient/jmclient/jsonrpc.py", line 91, in queryHTTP
"authentication for JSON-RPC failed")
jmclient.jsonrpc.JsonRpcConnectionError: authentication for JSON-RPC failed

I manually created a new joinmarket.cfg file in the /home/bitcoin/.joinmarket folder, entering my RPC user and password (doublechecked that it is correct), but the issue persists. Any ideas how to proceed would be much appreciated :)

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.