Bug 278397 - finance/electrum: Can't run because devel/aiorpcX is too new
Summary: finance/electrum: Can't run because devel/aiorpcX is too new
Status: In Progress
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Emanuel Haupt
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-16 22:10 UTC by Henrich Hartzer
Modified: 2024-04-29 23:50 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (ehaupt)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Henrich Hartzer 2024-04-16 22:10:33 UTC
After updating to the packages in 2024Q2, I'm no longer able to run electrum.

$ electrum
Traceback (most recent call last):
  File "/usr/local/bin/electrum", line 89, in <module>
    check_imports()
  File "/usr/local/bin/electrum", line 78, in check_imports
    raise RuntimeError(f'aiorpcX version {aiorpcx._version} does not match required: 0.22.0<=ver<0.23')
RuntimeError: aiorpcX version (0, 23, 1) does not match required: 0.22.0<=ver<0.23
Comment 1 Henrich Hartzer 2024-04-16 23:43:40 UTC
I'd like to add that if I forcibly downgrade the devel/py-aiorpcX package, when I'm able to launch but have segfaults when I try to send payments when using 4.5.4. I did not have issues with 4.4.6.

I also have the same segfault issues when running 4.5.4 "from source".
Comment 2 Emanuel Haupt freebsd_committer freebsd_triage 2024-04-17 05:05:51 UTC
The dependency issue was fixed in latest (main) but not in quarterly. See:

finance/electrum:
https://cgit.FreeBSD.org/ports/commit/?id=91d3badef8f2b9f4ee96f4403d6eee08cbeb5da8

devel/py-aiorpcX-legacy:
https://cgit.freebsd.org/ports/commit/?id=f1cceeacf8d1586f6432e68ea10dbf614d5fed05

Could you please switch to latest and check if you get any segfaults there?

If it does, could you please open an issue at:

https://github.com/spesmilo/electrum

with the output of:

python -X dev -X tracemalloc /usr/local/bin/electrum -v --testnet
Comment 3 Emanuel Haupt freebsd_committer freebsd_triage 2024-04-17 05:25:23 UTC
I've just cherry-picked the commits [1] into quarterly but it's going to take some time for the package builders to catch up. You're probably faster building from source.

[1]
https://cgit.FreeBSD.org/ports/commit/?id=57aa8970c13460403975d9421dc1475ccf112e71
https://cgit.FreeBSD.org/ports/commit/?id=dae61fc2df54676ec7b641defc631fd582e875fb
Comment 4 Henrich Hartzer 2024-04-28 20:25:23 UTC
Thank you! I ended up not getting to this till the packages came to quarterly.

While electrum runs now, it stills segfaults when I try to send Bitcoin.

Interestingly, it also segfaults when I press tab. Maybe related? I am using Wayland.
Comment 5 Emanuel Haupt freebsd_committer freebsd_triage 2024-04-29 06:33:36 UTC
Could you kindly open an issue upstream, as noted in this (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278397#c2) comment? Once done, please share the issue number here. Thanks!
Comment 6 Henrich Hartzer 2024-04-29 23:50:49 UTC
My bad! This is done now: https://github.com/spesmilo/electrum/issues/9032