Exception when running the "Find duplicate songs" wizard

Bug #1317003 reported by Samuel Mehrbrodt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenLP
Status tracked in Trunk
Trunk
Fix Released
High
Unassigned

Bug Description

Traceback (most recent call last):
  File "/home/samuel/programming/openlp/bug-1316979/openlp/core/ui/wizard.py", line 221, in on_current_id_changed
    self.custom_page_changed(page_id)
  File "/home/samuel/programming/openlp/bug-1316979/openlp/plugins/songs/forms/duplicatesongremovalform.py", line 211, in custom_page_changed
    self.process_current_duplicate_entry()
  File "/home/samuel/programming/openlp/bug-1316979/openlp/plugins/songs/forms/duplicatesongremovalform.py", line 342, in process_current_duplicate_entry
    song_review_widget = SongReviewWidget(self.review_page, duplicate)
  File "/home/samuel/programming/openlp/bug-1316979/openlp/plugins/songs/forms/songreviewwidget.py", line 66, in __init__
    self.setupUi()
  File "/home/samuel/programming/openlp/bug-1316979/openlp/plugins/songs/forms/songreviewwidget.py", line 132, in setupUi
    authors_text = ', '.join([author.display_name for author in self.song.authors])
  File "/usr/local/lib/python3.4/dist-packages/sqlalchemy/orm/attributes.py", line 233, in __get__
    return self.impl.get(instance_state(instance), dict_)
  File "/usr/local/lib/python3.4/dist-packages/sqlalchemy/orm/attributes.py", line 579, in get
    value = self.callable_(state, passive)
  File "/usr/local/lib/python3.4/dist-packages/sqlalchemy/orm/strategies.py", line 478, in _load_for_state
    (orm_util.state_str(state), self.key)
sqlalchemy.orm.exc.DetachedInstanceError: Parent instance <Song at 0x7f91821cec50> is not bound to a Session; lazy load operation of attribute 'authors' cannot proceed

Revision history for this message
Tim Bentley (trb143) wrote :

Please confirm this is still a problem

Revision history for this message
Samuel Mehrbrodt (sam92) wrote :

This has been fixed in the meantime (don't know by which commit exactly)

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.