question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

can't find libsecp256k1 library error

See original GitHub issue

I ran all of the installation instructions in the development version’s README, but I got this error.

I have bitcoin core v0.18 installed, so shouldn’t I have libsecp256k1 installed?

(venv) zach@zach-desktop ~/electrum/electrum $ python3.6 run_electrum
Traceback (most recent call last):
  File "run_electrum", line 80, in <module>
    from electrum.logging import get_logger, configure_logging
  File "/home/zach/electrum/electrum/electrum/__init__.py", line 3, in <module>
    from .wallet import Wallet
  File "/home/zach/electrum/electrum/electrum/wallet.py", line 50, in <module>
    from .simple_config import get_config
  File "/home/zach/electrum/electrum/electrum/simple_config.py", line 13, in <module>
    from . import constants
  File "/home/zach/electrum/electrum/electrum/constants.py", line 30, in <module>
    from . import bitcoin
  File "/home/zach/electrum/electrum/electrum/bitcoin.py", line 34, in <module>
    from . import ecc
  File "/home/zach/electrum/electrum/electrum/ecc.py", line 45, in <module>
    do_monkey_patching_of_python_ecdsa_internals_with_libsecp256k1()
  File "/home/zach/electrum/electrum/electrum/ecc_fast.py", line 189, in do_monkey_patching_of_python_ecdsa_internals_with_libsecp256k1
    raise Exception('libsecp256k1 library not available. '
Exception: libsecp256k1 library not available. Verifying Lightning channels is too computationally expensive without libsecp256k1, aborting.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:17 (8 by maintainers)

github_iconTop GitHub Comments

7reactions
cool007zqwcommented, Dec 13, 2019

a lazy solution will be:

sudo apt install libsecp256k1-dev
2reactions
SomberNightcommented, Sep 3, 2019

To make it work, I had to install as per these instructions: https://github.com/bitcoin-core/secp256k1#build-steps

Also see https://github.com/spesmilo/electrum-docs/blob/master/libsecp256k1-linux.rst

Note: since merging the lightning branch, libsecp256k1 became a mandatory dependency (was optional before). The README was not updated since.

  • We need to decide whether we want libsecp256k1 to be mandatory; or test whether lightning is enabled and only hard fail then.
  • The README should be updated
  • tar.gz source distributables also need to be considered
Read more comments on GitHub >

github_iconTop Results From Across the Web

having trouble installing electrum, can't find libsecp256k1
Bitcoin Core does not install libsecp256k1. It is packaged into the binary itself so it is not installed into the system.
Read more >
Getting libsecp256k1 to work with Electrum Wallet. - Reddit
I have libsecp256k1 installed but when running electrum it shows [libsecp256k1 library not available, falling back to python-ecdsa].
Read more >
Unable to locate package libsecp256k1-0 - Bitcoin Talk
This error is usually due to outdated or empty packages list on your system. Since you installed a new version of Ubuntu then...
Read more >
secp256k1 - PyPI
The library bundles its own libsecp256k1 currently, as there is no versioning to allow us to safely determine compatibility with an installed library, ......
Read more >
haskell - 'libsecp256k1' is required but it could not be found
I've tried a seemingly endless amount of ways to stack build a library referencing secp256k1-haskell ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found