Running the MoMa import fails with a parsing error:
Welcome to the Ammonite Repl 0.5.7
(Scala 2.11.7 Java 1.8.0_66)
@ {
val momaPath = "/Users/yusef/Work/Code/L-SPACE/translation_engine/test-resources/datasets/MoMA/Artworks.json"
import io.mediachain.translation.TranslatorDispatcher
TranslatorDispatcher.dispatch("moma", momaPath, "foo", "bar")
}
Unable to load private key for foo from bar: PEMIOError(java.io.FileNotFoundException: bar (No such file or directory))
Statements will not be signed.
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Mar 30, 2016 1:54:54 PM com.orientechnologies.common.log.OLogManager log
INFO: OrientDB auto-config DISKCACHE=6,833MB (heap=910MB os=16,384MB disk=13,666MB)
Import finished: 1 canonicals imported 0 errors reported (see below)
empty iterator
For some reason, the error isn't correctly reported, but some breakpoint digging reveals that it hits this line and fails with Unrecognized token: END_OBJECT
It seems to be failing just after parsing the first object, so it looks like the parser isn't advancing past the closing } from the first object.
If you remove the advance = false from this line, it will load the MoMa data, but then it fails for Tate :disappointed:
This is happening on yn-graph-io, btw, but I don't think I've changed any of the parsing code there, so it probably affects master as well.
Running the MoMa import fails with a parsing error:
For some reason, the error isn't correctly reported, but some breakpoint digging reveals that it hits this line and fails with
Unrecognized token: END_OBJECT
It seems to be failing just after parsing the first object, so it looks like the parser isn't advancing past the closing
}
from the first object.If you remove the
advance = false
from this line, it will load the MoMa data, but then it fails for Tate :disappointed:This is happening on
yn-graph-io
, btw, but I don't think I've changed any of the parsing code there, so it probably affects master as well.