You are not logged in.

#1 2019-08-11 23:16:20

YAOMTC
Member
Registered: 2010-02-23
Posts: 204

Why is python-cairo an optional dep for Deluge?

I just installed Deluge. Here is what happens when I try to launch it.

$ deluge
19:07:22 [ERROR   ][deluge.ui.gtk3                    :51  ] No module named 'cairo'
Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/deluge/ui/gtk3/__init__.py", line 48, in run
    gtkui = GtkUI(options)
  File "/usr/lib/python3.7/site-packages/deluge/ui/gtk3/gtkui.py", line 201, in __init__
    self.torrentdetails = TorrentDetails()
  File "/usr/lib/python3.7/site-packages/deluge/ui/gtk3/torrentdetails.py", line 115, in __init__
    from .status_tab import StatusTab
  File "/usr/lib/python3.7/site-packages/deluge/ui/gtk3/status_tab.py", line 18, in <module>
    from .piecesbar import PiecesBar
  File "/usr/lib/python3.7/site-packages/deluge/ui/gtk3/piecesbar.py", line 20, in <module>
    import cairo  # Backward compat cairo <= 1.15
ModuleNotFoundError: No module named 'cairo'
Traceback (most recent call last):
  File "/usr/bin/deluge", line 11, in <module>
    load_entry_point('deluge==2.0.3', 'gui_scripts', 'deluge')()
  File "/usr/lib/python3.7/site-packages/deluge/ui/ui_entry.py", line 143, in start_ui
    ui.start()
  File "/usr/lib/python3.7/site-packages/deluge/ui/gtk3/__init__.py", line 58, in start
    do_profile=self.options.profile,
  File "/usr/lib/python3.7/site-packages/deluge/common.py", line 1344, in run_profiled
    return func(*args)
  File "/usr/lib/python3.7/site-packages/deluge/ui/gtk3/__init__.py", line 48, in run
    gtkui = GtkUI(options)
  File "/usr/lib/python3.7/site-packages/deluge/ui/gtk3/gtkui.py", line 201, in __init__
    self.torrentdetails = TorrentDetails()
  File "/usr/lib/python3.7/site-packages/deluge/ui/gtk3/torrentdetails.py", line 115, in __init__
    from .status_tab import StatusTab
  File "/usr/lib/python3.7/site-packages/deluge/ui/gtk3/status_tab.py", line 18, in <module>
    from .piecesbar import PiecesBar
  File "/usr/lib/python3.7/site-packages/deluge/ui/gtk3/piecesbar.py", line 20, in <module>
    import cairo  # Backward compat cairo <= 1.15
ModuleNotFoundError: No module named 'cairo'

Why would python-cairo be an optional dependency, when the default UI is not set to "console"?

Offline

#2 2019-08-12 00:52:49

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,330
Website

Re: Why is python-cairo an optional dep for Deluge?

There are various UIs, not all of them require cairo, and many users may not use any UI at all but use deluged as a server.  The very first and only line of the installation instructions in the wiki makes it clear that you may want to install the optional deps if you want to use the gtk UI.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB