Nachtzuster / BirdNET-Pi

A realtime acoustic bird classification system for the Raspberry Pi 5, 4B 3B+ 0W2 and more. Built on the TFLite version of BirdNET.
https://birdnetpi.com
Other
172 stars 24 forks source link

BUG - Species List Tester doesnt work anymore -> thisrun.txt got removed #94

Closed MueJosh closed 5 months ago

MueJosh commented 5 months ago

Describe the bug Fresh Install -> Species List Tester does not work because "thisrun.txt" does not exist anymore (removed in a update)

To Reproduce Steps to reproduce the behavior:

  1. Go to "Tools" -> "Settings" -> "Model"
  2. Click on "Species List Tester"
  3. See error

Expected behavior A clear and concise description of what you expected to happen. - You know what to expext - it works on all of my old installs working

Your build Pi 02W, 2GiB Swap info

Code or log snippets

Traceback (most recent call last):
  File "/home/USERNAME/BirdNET-Pi/scripts/species.py", line 100, in 
    lat = str(str(str([i for i in this_run if i.startswith('LATITUDE')]).split('=')[1]).split('\\')[0])
                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range

not_working

Nachtzuster commented 5 months ago

thanks for reporting! I must have had a bad day when I did that cleanup.

I pushed a fix, could you try?

MueJosh commented 5 months ago

thanks for reporting!

I must have had a bad day when I did that cleanup.

I pushed a fix, could you try?

Thanks!

It works again 👍