Open superctj opened 4 months ago
@superctj it happend since by some reason identification rules not installed with the package. Rules are YAML files that loaded during tool launch.
Still metacrafter uses file .metacrafter
to find rules if they are not in package dir. You could configure to the rules path in repository https://github.com/apicrafter/metacrafter
For example my .metacrafter file looks like
rulepath:
- /home/ibegtin/reps/metacrafter/rules
- /home/ibegtin/reps/metacrafter-rules/rules
and it's located in the home dir.
Second rule path is to the metacrafter-rules
repository https://github.com/apicrafter/metacrafter-rules
It's not yet python package and you need to install it seperately with python setup.py install
command since some rules use addition python code.
Final result with CSV file from these top-5 rows should look like this
I will take a look deeper why rules were not installed and probably switch to updating rules from repository automatically on first launch.
About debug messages, sure you right, it should be more polished. I will take a look too
Thank you @ivbeg for the quick response! Looking forward to the new release of the package
Thank you for open-sourcing this package! I was wondering if the following behavior is expected when running
metacrafter scan-file --format short world+City.csv
:The top-5 rows of the csv file are:
I was expecting the CountryCode column will be recognized by metacrafter. Is there anything I am missing or did wrong?
By the way, I found the message "Start processing None" is confusing, which is attributed to this line of setting
fromfile
toNone
. Probably these debug messages can be improved to be more informative.