UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa0 in position 466: invalid start byte

Hi guys,

Getting following errors while executing augur export v2

Validating schema of ‘results/aa_muts.json’…
Validating config file config/auspice_config.json against the JSON schema
Validating schema of ‘config/auspice_config.json’…
DEPRECATED: the imp module is deprecated in favour of importlib; see the module’s documentation for alternative uses

Traceback (most recent call last):
File “/home/ajit/.local/bin/augur”, line 8, in
File “/home/ajit/.local/lib/python3.8/site-packages/augur/main.py”, line 10, in main
return augur.run( argv[1:] )
File “/home/ajit/.local/lib/python3.8/site-packages/augur/init.py”, line 75, in run
return args.command.run(args)
File “/home/ajit/.local/lib/python3.8/site-packages/augur/export.py”, line 22, in run
return run_v2(args)
File “/home/ajit/.local/lib/python3.8/site-packages/augur/export_v2.py”, line 936, in run_v2
set_geo_resolutions(data_json, config, args.geo_resolutions, read_lat_longs(args.lat_longs), node_attrs)
File “/home/ajit/.local/lib/python3.8/site-packages/augur/utils.py”, line 331, in read_lat_longs
for line in ifile:
File “/usr/lib/python3.8/codecs.py”, line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xa0 in position 466: invalid start byte

Need your help

Thank you

Hi @hivseq – what version of augur are you using and what OS are you on?

Hi james,

Thank you …

I am currently using augur 12.0.0.

I am executing my runs on a Windows 10 with the help of windows subsystem for linux (WSL)

My linux distribution is Ubuntu 20.04 LTS


Hi James

I could fix the issue and things are working fine.

The issue was with the lat_longs.tsv, the encoding for this file was ANSI, I changed it to UTF-8.

Thank you

1 Like