Crash upon using the OpenLP 2 importer with newer databases
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenLP |
Fix Released
|
High
|
Raoul Snyman |
Bug Description
Hello,
When you attempt to import a newer database with the OpenLP 2 importer, the following traceback is shown (this included the Russian sample songs database).
**OpenLP Bug Report**
Version: {u'full': u'1.9.7-bzr1765', u'version': u'1.9.7', u'build': u'bzr1765'}
--- Exception Traceback ---
Traceback (most recent call last):
File "/home/
self.
File "/home/
plugin.
File "/home/
importer.
File "/home/
source_
KeyError: u'media_
--- System information ---
Plattform: Linux-3.
--- Library Versions ---
Python: 2.7.2
Qt4: 4.7.4
Phonon: 4.5.55
PyQt4: 4.8.5
SQLAlchemy: 0.7.2
BeautifulSoup: 3.2.0
lxml: 2.3.0
Chardet: 2.0.1
PyEnchant: 1.6.3
PySQLite: 1.0.1
Related branches
- Andreas Preikschat (community): Approve
- Tim Bentley: Approve
-
Diff: 105 lines (+37/-37)1 file modifiedopenlp/plugins/songs/lib/olpimport.py (+37/-37)
Changed in openlp: | |
assignee: | nobody → Raoul Snyman (raoul-snyman) |
status: | New → Confirmed |
Changed in openlp: | |
status: | Confirmed → Fix Committed |
Changed in openlp: | |
status: | Fix Committed → Fix Released |
Changed in openlp: | |
status: | Confirmed → Fix Committed |
Changed in openlp: | |
status: | Fix Committed → Fix Released |
The song import still does not work with newer song databases (well only tested with the Russian song database in the First Time Wizard).
**OpenLP Bug Report**
Version: {u'full': u'1.9.7-bzr1812', u'version': u'1.9.7', u'build': u'bzr1812'}
--- Exception Traceback --- andreas/ Projekte/ openlp/ trunk/openlp/ core/ui/ mainwindow. py", line 783, in onFirstTimeWiza rdClicked firstTime( ) andreas/ Projekte/ openlp/ trunk/openlp/ core/ui/ mainwindow. py", line 755, in firstTime firstTime( ) andreas/ Projekte/ openlp/ trunk/openlp/ plugins/ songs/songsplug in.py", line 255, in firstTime doImport( ) andreas/ Projekte/ openlp/ trunk/openlp/ plugins/ songs/lib/ olpimport. py", line 164, in doImport ion.query( OldSong) .all() python2. 7/site- packages/ sqlalchemy/ orm/scoping. py", line 113, in do self.registry( ), name)(*args, **kwargs) python2. 7/site- packages/ sqlalchemy/ orm/session. py", line 917, in query cls(entities, self, **kwargs) python2. 7/site- packages/ sqlalchemy/ orm/query. py", line 106, in __init__ _set_entities( entities) python2. 7/site- packages/ sqlalchemy/ orm/query. py", line 115, in _set_entities _setup_ aliasizers( self._entities) python2. 7/site- packages/ sqlalchemy/ orm/query. py", line 130, in _setup_aliasizers info(entity) python2. 7/site- packages/ sqlalchemy/ orm/util. py", line 476, in _entity_info configure_ mappers( ) python2. 7/site- packages/ sqlalchemy/ orm/mapper. py", line 2742, in configure_mappers _post_configure _properties( ) python2. 7/site- packages/ sqlalchemy/ orm/mapper. py", line 1048, in _post_configure _properties python2. 7/site- packages/ sqlalchemy/ orm/interfaces. py", line 121, in init python2. 7/site- packages/ sqlalchemy/ orm/properties. py", line 904, in do_init _determine_ joins() python2. 7/site- packages/ sqlalchemy/ orm/properties. py", line 1041, in _determine_joins media_files. Specify a 'primaryjoin' expression. If 'secondary' is present, 'secondaryjoin' is needed as well.
Traceback (most recent call last):
File "/home/
self.
File "/home/
plugin.
File "/home/
importer.
File "/home/
source_songs = self.sourceSess
File "/usr/lib/
return getattr(
File "/usr/lib/
return self._query_
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
_entity_
File "/usr/lib/
mapperlib.
File "/usr/lib/
mapper.
File "/usr/lib/
prop.init()
File "/usr/lib/
self.do_init()
File "/usr/lib/
self.
File "/usr/lib/
% self)
ArgumentError: Could not determine join condition between parent/child tables on relationship OldSong.
--- System information --- 1.4-1-ARCH- i686-Intel- R-_Pentium- R-_4_CPU_ 1.80GHz- with-glibc2. 0
Platform: Linux-3.
--- Library Versions ---
Python: 2.7.2
Qt4: 4.7.4
Phonon: 4.5.1
PyQt4: 4.8.6
SQLAlchemy: 0.7.2
SQLAlchemy Migrate: 0.7.1
BeautifulSoup: 3.2.0
lxml: 2.3.1
Chardet: 2.0.1
PyEnchant: 1.6.5
PySQLite: 1.0.1
Mako: 0.5.0
pyUNO bridge: 3.4