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

electrum 4.5.8 won't start with libsecp256k1 0.6.0 #9315

Open
paboum opened this issue Nov 21, 2024 · 3 comments
Open

electrum 4.5.8 won't start with libsecp256k1 0.6.0 #9315

paboum opened this issue Nov 21, 2024 · 3 comments

Comments

@paboum
Copy link

paboum commented Nov 21, 2024

Basically all I've got is in the title.

ImportError: Failed to load libsecp256k1
  0.21 | E | ecc_fast | libsecp256k1 library failed to load. exceptions: [OSError('/usr/lib/python3.12/site-packages/electrum/libsecp256k1.so.2: cannot open shared object file: No such file or directory'), OSError('/usr/lib/python3.12/site-packages/electrum/libsecp256k1.so.1: cannot open shared object file: No such file or directory'), OSError('/usr/lib/python3.12/site-packages/electrum/libsecp256k1.so.0: cannot open shared object file: No such file or directory'), OSError('libsecp256k1.so.2: cannot open shared object file: No such file or directory'), OSError('libsecp256k1.so.1: cannot open shared object file: No such file or directory'), OSError('libsecp256k1.so.0: cannot open shared object file: No such file or directory')]

Maybe it's just me, maybe it's a downstream Gentoo bug. Idk, Idc. If you cannot reproduce this or confirm otherwise, just close the ticket.

I downgraded back to 0.5.1 and it runs fine, but I suspect this is related to #9239

@SomberNight
Copy link
Member

related to spesmilo/electrum-ecc#4, though the 4.5 branch does not use the electrum-ecc library, only master does

@sokhapkin
Copy link

load_library() in ecc_fast.py tries to load libsecp256k1.so.2, libsecp256k1.so.1, libsecp256k1.so.0, but libsecp256k1 0.6.0 provides libsecp256k1.so.5!

@paboum
Copy link
Author

paboum commented Dec 13, 2024

The 0.5.1 package I have installed on my Gentoo provides symlinks and a file:

/usr/lib64/libsecp256k1.so -> libsecp256k1.so.2.2.1
/usr/lib64/libsecp256k1.so.2 -> libsecp256k1.so.2.2.1
/usr/lib64/libsecp256k1.so.2.2.1

The first one seems like the best fit. If you worry about lib API functionality, you wouln't hardcode the "valid" version numbers, instead run some library functions test (there might be some libs or tools for that).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants