-
Notifications
You must be signed in to change notification settings - Fork 449
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
Migration to python 3.11 #7282
Comments
The real problem is Libtorrent: building it with Python 3.11 requires Boost 1.81, which was published only recently. However, the PIP version of Libtorrent is pretty old and does not support 3.11. Related discussions: |
@ichorid thank you for the information! I've updated the issue's description. |
I'll add that Python 3.10 added match statements: What's new in python 3.10, specification, motivations and rationale, tutorial. It can negate the need for many |
There looks to be a difference between this somewhat older libtorrent version and this 2.0 branch. Namely, python 3.11 isn't skipped anymore. That said, I don't know if said branch is a stable release or a release candidate. Its release page isn't clear about it: |
Just go ask Arvid directly at Libtrorrent github page (e.g. discussions of Issue) 😉 |
Done. Hopefully I'll be answered Soon:tm:: arvidn/libtorrent#7265 (comment) |
Yes, it's stable:
arvidn/libtorrent#7265 (comment) |
I missed it. Thanks. It's a shame. Hopefully it'll be be supported soon. |
PonyORM 0.7.17 with Python 3.11 support is out! So, what's left is libtorrent |
libtorrent version 2.0.10 came out in February 2024. It looks like it supports Python 3.11 now? I am wondering tentatively. Here's the release: https://github.com/arvidn/libtorrent/releases/tag/v2.0.10 One of the notes says this:
Also, if tribler migrates to Python 3.11, does it mean issues like #7869 can be closed, if only to tidy things up? |
@Solomon1732, thank you for noticing this and keeping us informed. Currently, we use libtorrent 1.2.x in Tribler. Switching to 2.x is still under debate. For more information, please check: |
Perhaps it is time to upgrade to Libtorrent 2.0.10, and to upgrade its dependencies to Boost 1.86, zlib 1.3.1 and OpenSSL 3.3.2. |
Python 3.11 offers some performance improvements that are good to have: https://docs.python.org/3/whatsnew/3.11.html#faster-runtime.
Python 3.11 also is a must-have for all Apple Silicone owners if they want to build Tribler easily: #7252 #7281
Currently, the following libraries from Tribler's dependencies are not ready for this migration:
setup.py
py-ipv8#1113The text was updated successfully, but these errors were encountered: