Building v2.0.3 on MacOSX with Homebrew

Support for Deluge on Apple Mac OS
Post Reply
amar1729
Member
Member
Posts: 10
Joined: Sat Mar 20, 2021 7:19 pm

Building v2.0.3 on MacOSX with Homebrew

Post by amar1729 »

Saw another post where a user built Deluge under MacPorts (viewtopic.php?f=13&t=55622) so I figured I'd make a Homebrew tap for it.

Link here: https://github.com/amar1729/homebrew-deluge-meta

This formula is called deluge-meta since I originally meant it to be a meta-package provided deluge's dependencies, as specified by the 2.0.3 docs (https://deluge.readthedocs.io/en/deluge ... stall.html). However, it turned into a full install of deluge and deluge-gtk.

This formula does NOT build a .app - instead, you can start deluge by calling deluge-gtk from the command line. This works for me on Mojave, but should work on Catalina as well.

Feel free to look over the formula before installing if you don't trust it (or fork it yourself and install it) - it's fairly straightforward.

----

06/10/22 Edit to add - while the title says v2.0.3, I do try to keep the formula up-to-date with pypi releases. The most recent bottle is for the 2.0.5 release. This tap will also build from source on M1 Macs (where deluge and deluge-gtk, the GUI parts as thin or standalone, currently work fine)
Last edited by amar1729 on Sat Jun 11, 2022 6:56 am, edited 2 times in total.
Steve-luo
New User
New User
Posts: 1
Joined: Wed Apr 29, 2020 6:44 am

Re: Building v2.0.3 on MacOSX with Homebrew

Post by Steve-luo »

Thanks for sharing! Any idea why the 2.0.3 gui is sluggish and laggy? This is the same for both the .app build and when I launch deluge-gtk.
amar1729
Member
Member
Posts: 10
Joined: Sat Mar 20, 2021 7:19 pm

Re: Building v2.0.3 on MacOSX with Homebrew

Post by amar1729 »

No problem! I'm not sure - honestly, i'm not seeing the same problem, although I'm only using deluge GUI as a thin client to connect to my server.
ophidio
New User
New User
Posts: 1
Joined: Sun Oct 16, 2022 10:04 am

Re: Building v2.0.3 on MacOSX with Homebrew

Post by ophidio »

I've build the formula and seem to work. Only i cannot see may LabelPlus tab like the plugin not working. Under Windows thinclient work good.
phunkyfish
New User
New User
Posts: 3
Joined: Sun Aug 29, 2021 10:39 pm

Re: Building v2.0.3 on MacOSX with Homebrew

Post by phunkyfish »

This works great for the thin client, which I use all the time.

Today I tried to run the daemon, both trying the service startup and just calling deluged directly. But I get this error:

Code: Select all

➜  bin deluged
➜  bin Traceback (most recent call last):
  File "/opt/homebrew/Cellar/deluge-meta/2.1.1_5/libexec/lib/python3.12/site-packages/deluge/_libtorrent.py", line 21, 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 "/opt/homebrew/Cellar/deluge-meta/2.1.1_5/libexec/lib/python3.12/site-packages/deluge/_libtorrent.py", line 24, in <module>
    import libtorrent as lt
ModuleNotFoundError: No module named 'libtorrent'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/homebrew/Cellar/deluge-meta/2.1.1_5/libexec/bin/deluged", line 8, in <module>
    sys.exit(start_daemon())
             ^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/deluge-meta/2.1.1_5/libexec/lib/python3.12/site-packages/deluge/core/daemon_entry.py", line 87, in start_daemon
    from deluge.core.daemon import is_daemon_running
  File "/opt/homebrew/Cellar/deluge-meta/2.1.1_5/libexec/lib/python3.12/site-packages/deluge/core/daemon.py", line 19, in <module>
    from deluge.core.core import Core
  File "/opt/homebrew/Cellar/deluge-meta/2.1.1_5/libexec/lib/python3.12/site-packages/deluge/core/core.py", line 26, in <module>
    from deluge._libtorrent import LT_VERSION, lt
  File "/opt/homebrew/Cellar/deluge-meta/2.1.1_5/libexec/lib/python3.12/site-packages/deluge/_libtorrent.py", line 26, in <module>
    raise LibtorrentImportError('No libtorrent library found: %s' % (ex))
deluge.error.LibtorrentImportError: No libtorrent library found: No module named 'libtorrent'
Any idea what is happening there?
User avatar
ambipro
Moderator
Moderator
Posts: 659
Joined: Thu May 19, 2022 3:33 am
Contact:

Re: Building v2.0.3 on MacOSX with Homebrew

Post by ambipro »

Well, you're missing libtorrent. You need to install libtorrent, if brew has that module, install it.
Post Reply