On Sat, Jan 18, 2020 at 11:20:41PM -0800, Nam Nguyen wrote: > Here is a revised diff that moves deluge to python 3, using the proposed > fixes for devel/boost and proposed update for net/libtorrent-rasterbar. > > Here is a quick way to test that the libtorrent python 3 bindings are > working. > > $ python3 -c "from deluge._libtorrent import lt; print(lt.version)" > 1.2.3.0 > > > > > Feedback and tests are welcome. > boost fix: https://marc.info/?l=openbsd-ports&m=157941202507663&w=2 > libtorrent-rasterbar update: > https://marc.info/?l=openbsd-ports&m=157941739108514&w=2 boost is committed, so I built and installed that. Then I applied your latest libtorrent-rasterbar patch and installed that.
Same for deluge, except that above test does not work: $ python3 -c "from deluge._libtorrent import lt; print(lt.version)" Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/deluge/_libtorrent.py", line 23, in <module> import deluge.libtorrent as lt ModuleNotFoundError: No module named 'deluge.libtorrent' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "<string>", line 1, in <module> File "/usr/local/lib/python3.7/site-packages/deluge/_libtorrent.py", line 25, in <module> import libtorrent as lt ImportError: Cannot load specified object Deluge then fails to start in standalone mode; upon first launch I'm asked to switch to thin client mode. $ deluge 12:52:31 [ERROR ][deluge.ui.gtk3.gtkui :1413] Cannot load specified object Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/deluge/_libtorrent.py", line 23, in <module> import deluge.libtorrent as lt ModuleNotFoundError: No module named 'deluge.libtorrent' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/deluge/ui/gtk3/gtkui.py", line 310, in _on_reactor_start client.start_standalone() File "/usr/local/lib/python3.7/site-packages/deluge/ui/client.py", line 640, in start_standalone self._daemon_proxy = DaemonStandaloneProxy(self.__event_handlers) File "/usr/local/lib/python3.7/site-packages/deluge/ui/client.py", line 461, in __init__ from deluge.core import daemon File "/usr/local/lib/python3.7/site-packages/deluge/core/daemon.py", line 22, in <module> from deluge.core.core import Core File "/usr/local/lib/python3.7/site-packages/deluge/core/core.py", line 28, in <module> from deluge._libtorrent import LT_VERSION, lt File "/usr/local/lib/python3.7/site-packages/deluge/_libtorrent.py", line 25, in <module> import libtorrent as lt ImportError: Cannot load specified object The thin client works and I can work with my remote client, so that's already great, above however seems odd, especially because it seems to work for you.