Selva163 / augustus

Automatically exported from code.google.com/p/augustus
0 stars 0 forks source link

Augustus producer_config.xcfg gives error #45

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Run Augustus producer_config.xcfg

What is the expected output? What do you see instead?
PMML should get created. Instead I see:
usr/lib/python2.6/site-packages/augustus/core/xmlbase.py:629: 
DeprecationWarning: Note to self: remember to change all xml.exists() to 
xml.contains()
  warnings.warn("Note to self: remember to change all xml.exists() to xml.contains()", DeprecationWarning)
root     : INFO     Loading PMML model.
Traceback (most recent call last):
  File "/usr/bin/Augustus", line 171, in <module>
    main(config)
  File "/usr/lib/python2.6/site-packages/augustus/engine/mainloop.py", line 532, in main
    mainLoop = MainLoop(configuration, dataStream=dataStream, rethrowExceptions=rethrowExceptions)
  File "/usr/lib/python2.6/site-packages/augustus/engine/mainloop.py", line 150, in __init__
    self.model = xmlbase.loadfile(fileLocation, pmml.X_ODG_PMML, lineNumbers=True)
  File "/usr/lib/python2.6/site-packages/augustus/core/xmlbase.py", line 1628, in loadfile
    return load(file(fileName), base, validation, dropSpecial, lineNumbers)
  File "/usr/lib/python2.6/site-packages/augustus/core/xmlbase.py", line 1807, in load
    parser.parse(stream)
  File "/usr/lib64/python2.6/xml/sax/expatreader.py", line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/usr/lib64/python2.6/xml/sax/xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "/usr/lib64/python2.6/xml/sax/expatreader.py", line 207, in feed
    self._parser.Parse(data, isFinal)
  File "/usr/lib64/python2.6/xml/sax/expatreader.py", line 304, in end_element
    self._cont_handler.endElement(name)
  File "/usr/lib/python2.6/site-packages/augustus/core/xmlbase.py", line 1728, in endElement
    raise XMLValidationError("%sXMLValidationError: %s." % (stacktrace, str(err)))
augustus.core.xmlbase.XMLValidationError: Below is a traceback to the line that 
caused the actual exception.
  File "/usr/lib/python2.6/site-packages/augustus/core/xmlbase.py", line 1721, in endElement
    last.validate(recurse=False, exception=True)
  File "/usr/lib/python2.6/site-packages/augustus/core/xmlbase.py", line 872, in validate
    self.xsd.validate(self)
  File "/usr/lib/python2.6/site-packages/augustus/core/xmlbase.py", line 1579, in validate
    xml.post_validate()
  File "/usr/lib/python2.6/site-packages/augustus/core/pmml41.py", line 1656, in post_validate
    pmmlApply.top_validate_transformationDictionary(self.transformationDictionary)
  File "/usr/lib/python2.6/site-packages/augustus/core/pmml41.py", line 7092, in top_validate_transformationDictionary
    raise PMMLValidationError("Apply function \"%s\" not recognized (not built-in and not user-defined)" % function)
XMLValidationError: Apply function "formatDateTime" not recognized (not 
built-in and not user-defined).
[root@ramja12-rhel57 config]# vi 
"/usr/lib/python2.6/site-packages/augustus/engine/mainloop.py"
[root@ramja12-rhel57 config]# vi 
"/usr/lib/python2.6/site-packages/augustus/core/pmml41.py"

What version of the product are you using? On what operating system?
RHEL 5.7. Augustus 0.5.3

Please provide any additional information below.

Original issue reported on code.google.com by jaimini...@gmail.com on 25 Jul 2013 at 12:45

GoogleCodeExporter commented 8 years ago
change your function to be formatDatetime and it will run.

Original comment by jhess...@gmail.com on 14 Nov 2014 at 10:51