Error in augur refine \

Hello,please help me for this error

augur refine is using TreeTime version 0.8.1
Traceback (most recent call last):
File “/home/yiqing/miniconda3/bin/augur”, line 8, in
sys.exit(main())
File “/home/yiqing/miniconda3/lib/python3.8/site-packages/augur/main.py”, line 10, in main
return augur.run( argv[1:] )
File “/home/yiqing/miniconda3/lib/python3.8/site-packages/augur/init.py”, line 75, in run
return args.command.run(args)
File “/home/yiqing/miniconda3/lib/python3.8/site-packages/augur/refine.py”, line 198, in run
dates = get_numerical_dates(metadata, fmt=args.date_format,
File “/home/yiqing/miniconda3/lib/python3.8/site-packages/augur/utils.py”, line 112, in get_numerical_dates
v = m[date_col]
KeyError: ‘date’

Hi @Yiqingzzz - could you check that your metadata file has a "date" column in it?

Thank you very much for your reply! There was a data colmn in my orignal metadata file.However I didn’t find the error with the format. So I reprepared the metadata file and this error was gone.Maybe there was something wrong with the format of orignal metadata file.

1 Like