openlp-core team mailing list archive
-
openlp-core team
-
Mailing list archive
-
Message #10280
[Bug 799915] [NEW] Missing attribute error in Easislides Importer
Public bug reported:
OpenLP Bug Report
Version: {u'full': u'1.9.5-bzr1421', u'version': u'1.9.5', u'build': u'bzr1421'}
--- Details of the Exception. ---
I tried to import a file from EasiSlides, but it gives this error..
I think the script can't find some XML elements. EasiSlides creates
only (for example) a Title2 element if it is present in the song..
--- Exception Traceback ---
Traceback (most recent call last):
File "/home/maikel/project/openlp/openlp/trunk/openlp/core/ui/wizard.py",
line 191, in onCurrentIdChanged
self.performWizard()
File "/home/maikel/project/openlp/openlp/trunk/openlp/plugins/songs/forms/songimportform.py",
line 754, in performWizard
importer.do_import()
File "/home/maikel/project/openlp/openlp/trunk/openlp/plugins/songs/lib/easislidesimport.py",
line 71, in do_import
self._parse_song(song)
File "/home/maikel/project/openlp/openlp/trunk/openlp/plugins/songs/lib/easislidesimport.py",
line 76, in parse_song
self._add_unicode_attribute(u'alternate_title', song.Title2)
File "lxml.objectify.pyx", line 226, in
lxml.objectify.ObjectifiedElement._getattr__
(src/lxml/lxml.objectify.c:2832)
File "lxml.objectify.pyx", line 485, in
lxml.objectify._lookupChildOrRaise (src/lxml/lxml.objectify.c:5310)
AttributeError: no such child: Title2
--- System information ---
Platform: Linux-2.6.38-10-generic-x86_64-with-Ubuntu-11.04-natty
Desktop: GNOME
--- Library Versions ---
Python: 2.7.1+
Qt4: 4.7.2
Phonon: 4.5.0
PyQt4: 4.8.3
SQLAlchemy: 0.6.4
BeautifulSoup: 3.2.0
lxml: 2.3.0
Chardet: 2.0.1
PyEnchant: 1.5.3
PySQLite: -
** Affects: openlp
Importance: Medium
Status: Confirmed
--
You received this bug notification because you are a member of OpenLP
Core, which is subscribed to OpenLP.
https://bugs.launchpad.net/bugs/799915
Title:
Missing attribute error in Easislides Importer
Status in OpenLP - Worship Presentation Software:
Confirmed
Bug description:
OpenLP Bug Report
Version: {u'full': u'1.9.5-bzr1421', u'version': u'1.9.5', u'build': u'bzr1421'}
--- Details of the Exception. ---
I tried to import a file from EasiSlides, but it gives this error..
I think the script can't find some XML elements. EasiSlides creates
only (for example) a Title2 element if it is present in the song..
--- Exception Traceback ---
Traceback (most recent call last):
File "/home/maikel/project/openlp/openlp/trunk/openlp/core/ui/wizard.py",
line 191, in onCurrentIdChanged
self.performWizard()
File "/home/maikel/project/openlp/openlp/trunk/openlp/plugins/songs/forms/songimportform.py",
line 754, in performWizard
importer.do_import()
File "/home/maikel/project/openlp/openlp/trunk/openlp/plugins/songs/lib/easislidesimport.py",
line 71, in do_import
self._parse_song(song)
File "/home/maikel/project/openlp/openlp/trunk/openlp/plugins/songs/lib/easislidesimport.py",
line 76, in parse_song
self._add_unicode_attribute(u'alternate_title', song.Title2)
File "lxml.objectify.pyx", line 226, in
lxml.objectify.ObjectifiedElement._getattr__
(src/lxml/lxml.objectify.c:2832)
File "lxml.objectify.pyx", line 485, in
lxml.objectify._lookupChildOrRaise (src/lxml/lxml.objectify.c:5310)
AttributeError: no such child: Title2
--- System information ---
Platform: Linux-2.6.38-10-generic-x86_64-with-Ubuntu-11.04-natty
Desktop: GNOME
--- Library Versions ---
Python: 2.7.1+
Qt4: 4.7.2
Phonon: 4.5.0
PyQt4: 4.8.3
SQLAlchemy: 0.6.4
BeautifulSoup: 3.2.0
lxml: 2.3.0
Chardet: 2.0.1
PyEnchant: 1.5.3
PySQLite: -
To manage notifications about this bug go to:
https://bugs.launchpad.net/openlp/+bug/799915/+subscriptions
Follow ups
References