Bug #440
Feature #403: Perseus Book Importer
Importer fails on works with milestone that do not have an indicator
Start date:
Due date:
% Done:
100%
Description
reader.importer.PerseusBatchImporter: Exception generated when attempting to process file="dh.hist04_gk.xml"
Traceback (most recent call last):
File "/Users/lmurphey/Documents/SP/Workspace/TextCritical.com/src/reader/importer/PerseusBatchImporter.py", line 326, in process_directory
if self.__process_file__( os.path.join( root, f) ):
File "/Users/lmurphey/Documents/SP/Workspace/TextCritical.com/src/reader/importer/PerseusBatchImporter.py", line 277, in __process_file__
return self.process_file(file_path, document_xml, title, author, language)
File "/Users/lmurphey/Documents/SP/Workspace/TextCritical.com/src/reader/importer/PerseusBatchImporter.py", line 449, in process_file
perseus_importer.import_file(file_path)
File "/Users/lmurphey/Documents/SP/Workspace/TextCritical.com/src/reader/importer/Perseus.py", line 139, in import_file
return self.import_xml_document(doc)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/transaction.py", line 209, in inner
return func(*args, **kwargs)
File "/Users/lmurphey/Documents/SP/Workspace/TextCritical.com/src/reader/importer/Perseus.py", line 586, in import_xml_document
verses_created = self.make_verses(divisions, current_state_set)
File "/Users/lmurphey/Documents/SP/Workspace/TextCritical.com/src/reader/importer/Perseus.py", line 604, in make_verses
verses_created = verses_created + self.make_verses_for_division(division, state_set)
File "/Users/lmurphey/Documents/SP/Workspace/TextCritical.com/src/reader/importer/Perseus.py", line 627, in make_verses_for_division
return self.import_verse_content( division, root_node, state_set)
File "/Users/lmurphey/Documents/SP/Workspace/TextCritical.com/src/reader/importer/Perseus.py", line 822, in import_verse_content
verses_created_temp, created_verse_node = self.import_verse_content(division, node, state_set, import_context, parent_node=next_level_node, recurse=True)
File "/Users/lmurphey/Documents/SP/Workspace/TextCritical.com/src/reader/importer/Perseus.py", line 778, in import_verse_content
import_context.verse.indicator = node.attributes["n"].value
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/dom/minidom.py", line 524, in __getitem__
return self._attrs[attname_or_tuple]
Associated revisions
Fixed issue where works can not be imported if they have a milestone without an "n" attribute which indicates the number of the milestone.
Reference #440.
Fixed issue where works can not be imported if they have a milestone without an "n" attribute which indicates the number of the milestone.
Reference #440.
Fixed issue where works can not be imported if they have a milestone without an "n" attribute which indicates the number of the milestone.
Reference #440.
History
#1
Updated by Luke Murphey almost 13 years ago
- Parent task set to #403
#2
Updated by Luke Murphey almost 13 years ago
- Status changed from New to In Progress
#3
Updated by Luke Murphey almost 13 years ago
- % Done changed from 0 to 100
#4
Updated by Luke Murphey almost 13 years ago
- Status changed from In Progress to Closed