Skip to content

Instantly share code, notes, and snippets.

@phedders
Created January 9, 2019 16:11
Show Gist options
  • Save phedders/b227cf9291181902eafda65949899335 to your computer and use it in GitHub Desktop.
Save phedders/b227cf9291181902eafda65949899335 to your computer and use it in GitHub Desktop.
Traceback (most recent call last):
File "/home/prh/openlp/openlp/core/ui/servicemanager.py", line 457, in on_load_service_clicked
self.load_file(file_path)
File "/home/prh/openlp/openlp/core/ui/servicemanager.py", line 700, in load_file
self.process_service_items(items)
File "/home/prh/openlp/openlp/core/ui/servicemanager.py", line 741, in process_service_items
new_item = Registry().get(service_item.name).service_load(service_item)
File "/home/prh/openlp/openlp/plugins/songs/lib/mediaitem.py", line 749, in service_load
self.on_search_text_button_clicked()
File "/home/prh/openlp/openlp/plugins/songs/lib/mediaitem.py", line 183, in on_search_text_button_clicked
self.display_results_song(search_results)
File "/home/prh/openlp/openlp/plugins/songs/lib/mediaitem.py", line 276, in display_results_song
search_results.sort(key=get_song_key)
TypeError: '<' not supported between instances of 'list' and 'QCollatorSortKey'
@phedders
Copy link
Author

phedders commented Jan 9, 2019

prh@brix:~/openlp$ less ~/.cache/openlp/openlp.log |egrep SORT|Exception
2019-01-09 16:22:21,353 openlp.plugins.songs.lib.mediaitem DEBUG SONG SORT KEY=<PyQt5.QtCore.QCollatorSortKey object at 0x7f48d632af98>
2019-01-09 16:22:21,353 openlp.plugins.songs.lib.mediaitem DEBUG SONG SORT KEY=<PyQt5.QtCore.QCollatorSortKey object at 0x7f48d632ac88>
2019-01-09 16:22:21,354 openlp.plugins.songs.lib.mediaitem DEBUG SONG SORT KEY=<PyQt5.QtCore.QCollatorSortKey object at 0x7f48d632aba8>
2019-01-09 16:22:21,354 openlp.plugins.songs.lib.mediaitem DEBUG SONG SORT KEY=<PyQt5.QtCore.QCollatorSortKey object at 0x7f48d632a9e8>
2019-01-09 16:22:21,354 openlp.plugins.songs.lib.mediaitem DEBUG SONG SORT KEY=<PyQt5.QtCore.QCollatorSortKey object at 0x7f48d632a898>
2019-01-09 16:22:35,532 openlp.plugins.songs.lib.mediaitem DEBUG SONG SORT KEY=[]
2019-01-09 16:22:35,815 openlp.plugins.songs.lib.mediaitem DEBUG SONG SORT KEY=<PyQt5.QtCore.QCollatorSortKey object at 0x7f48d627df28>
2019-01-09 16:22:35,815 openlp.plugins.songs.lib.mediaitem DEBUG SONG SORT KEY=[]
2019-01-09 16:22:35,815 openlp.core.ui.servicemanager.ServiceManager ERROR Exception in process_service_items : '<' not supported between instances of 'list' and 'QCollatorSortKey'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment