BirdNET-Analyzer icon indicating copy to clipboard operation
BirdNET-Analyzer copied to clipboard

UK species list does not work on run.bat

Open Adamtcurry opened this issue 3 years ago • 3 comments

Hi there,

if i run the run.bat file with the uk species list i get this error

"""D:\BirdNET-Analyzer>BirdNET-Analyzer.exe --i "E:\site_1_orange\s1june10pm.WAV" --o _soundfile_data_s1june10am --slist labels\V2.1\BirdNET_GLOBAL_2K_V2.1_Labels_uk.txt

Traceback (most recent call last):

File "analyze.py", line 389, in

File "analyze.py", line 65, in loadSpeciesList

File "encodings\cp1252.py", line 23, in decode

UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 582: character maps to

[13944] Failed to execute script 'analyze' due to unhandled exception!

D:\BirdNET-Analyzer>pause

Press any key to continue . . .""""

It's very odd as the other species lists work fine and they only seem to be txt files with very little to no difference.

Adamtcurry avatar Jul 15 '22 15:07 Adamtcurry

Also what is the difference between the species lists? the uk one has 2434 species in it? so maybe it's not what i thought it was?

Adamtcurry avatar Jul 15 '22 15:07 Adamtcurry

woops it;s the language of the list

Adamtcurry avatar Jul 15 '22 15:07 Adamtcurry

That was the ukranian language list.... my bad.

Adamtcurry avatar Jul 15 '22 15:07 Adamtcurry

Yes, UK is the Ukrainian list of translated labels and should be used through --locale uk and not --slist. I added UTF-8 as default encoding when loading label or result files; hope that fixes it.

kahst avatar Feb 22 '23 13:02 kahst