Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 518526

Summary: net-p2p/deluge-1.3.6 should set PYTHON_DEPS and PYTHON_REQUIRED_USE
Product: Gentoo Linux Reporter: Thibaud CANALE <thican>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED FIXED    
Severity: normal CC: net-p2p, paolo.pedroni
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info 'net-p2p/deluge'

Description Thibaud CANALE 2014-07-29 19:12:23 UTC
Created attachment 381832 [details]
emerge --info 'net-p2p/deluge'

Hello,

When using deluge-gtk, the application wasn't working. I noticed, when I launch the program through a terminal it was failing with this error:
Traceback (most recent call last):
  File "/usr/bin/deluge-gtk", line 9, in <module>
    load_entry_point('deluge==1.3.6', 'gui_scripts', 'deluge-gtk')()
  File "/usr/libx32/python2.7/site-packages/pkg_resources.py", line 356, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/libx32/python2.7/site-packages/pkg_resources.py", line 2439, in load_entry_point
    return ep.load()
  File "/usr/libx32/python2.7/site-packages/pkg_resources.py", line 2155, in load
    ['__name__'])
  File "/usr/libx32/python2.7/site-packages/deluge/ui/gtkui/__init__.py", line 1, in <module>
    from gtkui import start
  File "/usr/libx32/python2.7/site-packages/deluge/ui/gtkui/gtkui.py", line 148, in <module>
    "choose_directory_dialog_path": deluge.common.get_default_download_dir(),
  File "/usr/libx32/python2.7/site-packages/deluge/common.py", line 179, in get_default_download_dir
    from xdg.BaseDirectory import xdg_config_home
ImportError: No module named xdg.BaseDirectory

And I notice the package dev-python/pyxdg is currently not build with the USE flag python_targets_python2_7.

In fact, I looked in the ebuild, and I noticed every PYTHON_DEPS and PYTHON_REQUIRED_USE are missing, for every dependencies.
Portage, when compiling deluge, should check PYTHON_DEPS for dependencies.

Steps to Reproduce:
1. put in package.use: dev-python/pyxdg -python_targets_python2_7
2. emerge deluge with gtk USE flag,
3. execute deluge-gtk in a terminal.

Reproductible: Always.

Thanks for support.

PS: Please, could anyone make an ebuild for the new version 1.3.7 please?
Comment 1 G.K.MacGregor 2014-10-09 11:54:59 UTC
Additionally for the webinterface USE flag, dev-python/mako needs to be built with the python_targets_python2_7 USE flag. Otherwise the web interface fails to start, even though deluged starts correctly.
Comment 2 Pacho Ramos gentoo-dev 2016-01-30 17:51:54 UTC
[master 2778da7] net-p2p/deluge: PYTHON_REQUIRED_USE needed
 1 file changed, 1 insertion(+)