← Back to team overview

openlp-core team mailing list archive

[Bug 654301] Re: opensong importer adds empty songs

 

** Tags added: opensong-import

-- 
opensong importer adds empty songs
https://bugs.launchpad.net/bugs/654301
You received this bug notification because you are a member of OpenLP
Core, which is subscribed to OpenLP.

Status in OpenLP - Worship Presentation Software: New

Bug description:
Importing an opensong file just inserts a blank entry in to the songs list, with an unknow author and no lyrics.

Relevant section from debug log:

2010-10-03 23:38:42,599 openlp.plugins.songs.lib.opensongimport                 DEBUG    Total number of files: 1
2010-10-03 23:38:42,603 openlp.plugins.songs.lib.opensongimport                 INFO     Direct import /home/phill/Nothing_But_The_Blood.html
2010-10-03 23:38:42,608 openlp.plugins.songs.forms.songimportform               DEBUG    IncrementBar Importing Nothing_But_The_Blood.html...
2010-10-03 23:38:42,621 openlp.core.lib.eventreceiver                           DEBUG    Event openlp_process_events passed with payload None
2010-10-03 23:38:42,628 openlp.plugins.songs.lib.opensongimport                 ERROR    Error parsing XML
Traceback (most recent call last):
  File "openlp/plugins/songs/lib/opensongimport.py", line 180, in do_import_file
    tree = objectify.parse(file)
  File "lxml.objectify.pyx", line 1860, in lxml.objectify.parse (src/lxml/lxml.objectify.c:18814)
  File "lxml.etree.pyx", line 2692, in lxml.etree.parse (src/lxml/lxml.etree.c:49594)
  File "parser.pxi", line 1522, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:71582)
  File "parser.pxi", line 1552, in lxml.etree._parseFilelikeDocument (src/lxml/lxml.etree.c:71892)
  File "parser.pxi", line 1435, in lxml.etree._parseDocFromFilelike (src/lxml/lxml.etree.c:70807)
  File "parser.pxi", line 997, in lxml.etree._BaseParser._parseDocFromFilelike (src/lxml/lxml.etree.c:67948)
  File "parser.pxi", line 539, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:63824)
  File "parser.pxi", line 625, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:64745)
  File "parser.pxi", line 565, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:64088)
XMLSyntaxError: Entity 'nbsp' not defined, line 13, column 24
2010-10-03 23:38:42,653 openlp.plugins.songs.lib.songimport                     INFO     commiting song  to database





References