if exaile is already running, new tunes cannot be added by launching

Bug #598685 reported by Jools Wills
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Exaile
Fix Released
High
Mathias Brodala

Bug Description

Looks like some apis have changed. I tried updating it quickly (by using get_selected_page().playlist but there is other code that needs changing too like get_sort_by. Using revision 3532 from your repository. Sorry if this a known work in progress issue.

Traceback (most recent call last):
  File "/usr/local/lib/exaile/exaile.py", line 52, in <module>
    main()
  File "/usr/local/lib/exaile/exaile.py", line 49, in main
    exaile = main.Exaile()
  File "/usr/local/lib/exaile/xl/main.py", line 87, in __init__
    exit = xldbus.check_exit(self.options, self.args)
  File "/usr/local/lib/exaile/xl/xldbus.py", line 78, in check_exit
    iface.Enqueue(args)
  File "/usr/lib/pymodules/python2.6/dbus/proxies.py", line 140, in __call__
    **keywords)
  File "/usr/lib/pymodules/python2.6/dbus/connection.py", line 620, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Python.AttributeError: Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/dbus/service.py", line 702, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/usr/local/lib/exaile/xl/xldbus.py", line 431, in Enqueue
    pl = self.exaile.gui.main.get_selected_playlist()
AttributeError: 'MainWindow' object has no attribute 'get_selected_playlist'

Related branches

Revision history for this message
reacocard (reacocard) wrote :

There was a big code merge recently that broke a lot of stuff and so things like this are getting fixed slowly. Thanks for bring it to our attention.

Note to devs: Other parts of the DBUS interface are probably broken too, might was well as fix it all at once.

Changed in exaile:
importance: Undecided → High
milestone: none → 0.3.3
status: New → Confirmed
Revision history for this message
Mathias Brodala (mathbr) wrote :

Actually only this one had to be updated. Thus fixed with r3687.

Changed in exaile:
assignee: nobody → Mathias Brodala (mathbr)
status: Confirmed → Fix Committed
Revision history for this message
eric.p (eric-adieubillou) wrote :

same problem with maverick
when exaile 0.3.2.0 is running, can't add tracks from terminal or nautilus with double click
no problem if exaile is not running
it's ok with drag/drop nautilus/exaile

File "/usr/lib/exaile/exaile.py", line 52, in <module>
    main()
  File "/usr/lib/exaile/exaile.py", line 49, in main
    exaile = main.Exaile()
  File "/usr/lib/exaile/xl/main.py", line 83, in __init__
    exit = xldbus.check_exit(self.options, self.args)
  File "/usr/lib/exaile/xl/xldbus.py", line 78, in check_exit
    iface.Enqueue(args)
  File "/usr/lib/pymodules/python2.6/dbus/proxies.py", line 140, in __call__
    **keywords)
  File "/usr/lib/pymodules/python2.6/dbus/connection.py", line 620, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Python.TypeError: Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/dbus/service.py", line 702, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/usr/lib/exaile/xl/xldbus.py", line 453, in Enqueue
    tracks = trax.sort_tracks(['album', column], tracks, descending)
  File "/usr/lib/exaile/xl/trax/util.py", line 90, in sort_tracks
    return sorted(iter, key=keyfunc, reverse=reverse)
  File "/usr/lib/exaile/xl/trax/util.py", line 89, in <lambda>
    artist_compilations=artist_compilations) for field in fields]
TypeError: 'bool' object is not callable

Changed in exaile:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.