Unable to import module 'kinesis_to_elasticsearch': cannot import name 'W3CNTriplesParser' from 'rdflib.plugins.parsers.ntriples'
madyanmalfi opened this issue · 1 comments
@gopuneet When trying to export Neptune to elasticSearch this error shows "Unable to import module 'kinesis_to_elasticsearch': cannot import name 'W3CNTriplesParser' from 'rdflib.plugins.parsers.ntriples
'".
After some debugging found out that the lib "rdflib" version 5.0.0 is outdated which does not have "W3CNTriplesParser".
The compiled file in the template "export-neptune-to-elasticsearch.json" is linked to old compiled zip "neptune-sagemaker/lambda/export-neptune-to-elasticsearch/export-neptune-to-elasticsearch.zip"
@madyanmalfi, thank you for the bug report.
We have updated the compiled export-neptune-to-elasticsearch.zip
S3 file, as referenced in the export-neptune-to-elasticsearch.json template (here), to use rdflib==6.1.1
. The same changes are committed to the open source code at #225.