← Back to team overview

openlp-core team mailing list archive

[Bug 882812] Re: Error when importing song in CCLI format

 

Found the character by viewing the file with Notepad++ instead of
Notepad.

3 years ago I converted this and other some 600 songs from CCLI to OpenSong XML format in order to get them imported into OpenLP 1, which in turn did the import without any problem.
I have attached the OpenSong version also - so you can have it for testing.

** Attachment added: "MSS08 074 Navnet Jesus blegner aldrig"
   https://bugs.launchpad.net/openlp/+bug/882812/+attachment/2575943/+files/MSS08%20074%20Navnet%20Jesus%20blegner%20aldrig

-- 
You received this bug notification because you are a member of OpenLP
Core, which is subscribed to OpenLP.
https://bugs.launchpad.net/bugs/882812

Title:
  Error when importing song in CCLI format

Status in OpenLP - Worship Presentation Software:
  New

Bug description:
  Windows 7, 64 bit, Home Premium
  OpenLP 1.9.7

  When importing the attached song OpenLP breaks with:
  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.cclifileimport", line 87, in doImport
    File "D:\OpenLP_Code\trunk\build\pyi.win32\OpenLP\outPYZ1.pyz/openlp.plugins.songs.lib.cclifileimport", line 337, in doImportTxtFile
    File "D:\OpenLP_Code\trunk\build\pyi.win32\OpenLP\outPYZ1.pyz/openlp.plugins.songs.lib.songimport", line 314, in finish
    File "D:\OpenLP_Code\trunk\build\pyi.win32\OpenLP\outPYZ1.pyz/openlp.plugins.songs.lib.xml", line 117, in add_verse_to_lyrics
    File "lxml.etree.pyx", line 2402, in lxml.etree.CDATA.__init__ (src/lxml/lxml.etree.c:47048)
    File "apihelpers.pxi", line 1242, in lxml.etree._utf8 (src/lxml/lxml.etree.c:19848)
  ValueError: All strings must be XML compatible: Unicode or ASCII, no NULL bytes

  This problem is present for 3 out of 617 danish songs. Most probably
  an accented character - cannot see which.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openlp/+bug/882812/+subscriptions


References