Closed ellesmith88 closed 3 years ago
I think I moved them into a post-processor and pre-processor section to give them a namespace but then didn't get any way to load them in. It works on my setup because I haven't re-installed the entry-points since I moved them 😂
I was trying to run asset_scanner with description file
but got the errors
2021-07-01 16:06:12,798 asset_scanner.core.handler_picker ERROR Failed to load processor: filename_reducer 2021-07-01 16:06:12,798 asset_scanner.core.handler_picker ERROR Failed to load processor: isodate_processor 2021-07-01 16:06:12,798 asset_scanner.core.handler_picker ERROR Failed to load processor: isodate_processor
I worked out that this was because
filename_reducer
andisodate_processor
didn't exist inself.handlers
inasset_scanner.core.handler_picker.HandlerPicker
when needed inHandlerPicker.get_processor
for the lineentry_point = self.handlers.get(name)
. I movedfilename_reducer = item_generator.extraction_methods.preprocessors:ReducePathtoName
andisodate_processor = item_generator.extraction_methods.postprocessors:ISODateProcessor
intoitem_generator.facet_extractors
in setup.py which got it working.