Open moodyjon opened 1 year ago
Currently working around this with local edits:
(lbry-venv-3.9) swdev1@Jonathans-Mac-mini lbry-sdk % git diff
diff --git a/lbry/extras/daemon/components.py b/lbry/extras/daemon/components.py
index 33deccee9..0a005b068 100644
--- a/lbry/extras/daemon/components.py
+++ b/lbry/extras/daemon/components.py
@@ -28,7 +28,10 @@ from lbry.torrent.torrent_manager import TorrentManager
from lbry.wallet import WalletManager
from lbry.wallet.usage_payment import WalletServerPayer
from lbry.torrent.tracker import TrackerClient
-from lbry.torrent.session import TorrentSession
+try:
+ from lbry.torrent.session import TorrentSession
+except ImportError:
+ TorrentSession = None
log = logging.getLogger(__name__)
Opened a ticket so hopefully libtorrent will release builds for macOS aarch64: https://github.com/arvidn/libtorrent/issues/7131
I have made some progress on this. I was able to get libtorrent to build from source and install, but only in a Python 3.9 environment. I had the same experience working on https://github.com/arvidn/libtorrent/issues/7131 itself. Could not build MacOS arm64 wheels for Python 3.8. Only wheels for 3.9 and 3.10.
Shouldn't the goal be upgrading LBRY to the most recent version of Python? 3.9 only receives security fixes. 3.10 still gets bug fixes.
I'm pretty sure Python 3.8 isn't even compatible with macOS 11+
This poses a problem for making the transition to native aarch64 python3.9. I don't know why it doesn't try to get libtorrent sources and compile in this case.
I have an old libtorrent installed from the time I was using python3.7 x86_64 architecture (emulated). I think I was getting away with running tests before because libtorrent was not required to run the tests I wanted to run. But it's required after https://github.com/lbryio/lbry-sdk/commit/5be990fc55fd717f1bb29b5ae54dfcb6f0fe48e3