error when importing from openlp2 sqlite database to openlp2 mysql database

Bug #891740 reported by Rastislav Pecik
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenLP
New
Undecided
Unassigned

Bug Description

I have replaced the backend database with mysql. Then I have tried to import songs from the previous sqlite database, but I have encoutnered an error :

Traceback (most recent call last):
  File "D:\OpenLP_Code\trunk\build\pyi.win32\OpenLP\outPYZ1.pyz/openlp.core.ui.wizard", line 191, in onCurrentIdChanged
  File "D:\OpenLP_Code\trunk\build\pyi.win32\OpenLP\outPYZ1.pyz/openlp.plugins.songs.forms.songimportform", line 762, in performWizard
  File "D:\OpenLP_Code\trunk\build\pyi.win32\OpenLP\outPYZ1.pyz/openlp.plugins.songs.lib.olpimport", line 127, in doImport
KeyError: u'media_files_songs'

I am using the 1.9.7 version of OpenLP on Windows 7 Professional. I have used the WAMP server which contains the MySQL database. The sqlite database contained only english songs that had been downloaded through first time wizard.

steps :
1) installed the openlp2
2) downloaded the english songs from first time wizard
3)changed the database backend to mysql (in registry settings) - openlp2 has correctly connected to the mysql database and i was able to create songs
4) File -> Import - openlp2 database - pointed to the old sqlite database
5) error

I am sending the sqldump of mysql and sqlite database in the attachement

Revision history for this message
Rastislav Pecik (rapecik) wrote :
summary: - error when importing from openlp2 sqlite databaze to openlp2 mysql
- databaze
+ error when importing from openlp2 sqlite database to openlp2 mysql
+ database
Revision history for this message
Andreas Preikschat (googol-deactivatedaccount) wrote :

Hello,

This should be fixed now....

Please try it again...

Regards, OpenLP team

Changed in openlp:
milestone: none → 1.9.8
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.