Open aifiks opened 2 months ago
For running the docker on Ubuntu, I needed to change the config.py , line 110:
RESULT_TYPES: set[str] | list[str] = {"table"}
The issue was that apparently python 3.9 did not understand the " | " operator ( https://stackoverflow.com/questions/76712720/typeerror-unsupported-operand-types-for-type-and-nonetype )
I got the following error:
TypeError: unsupported operand type(s) for |: 'types.GenericAlias' and 'types.GenericAlias'
I removed set[str] |
and it worked.
I am very new to all of this, and can't provide any better contribution than this comment. Cheers.
For running the docker on Ubuntu, I needed to change the config.py , line 110:
RESULT_TYPES: set[str] | list[str] = {"table"}
The issue was that apparently python 3.9 did not understand the " | " operator ( https://stackoverflow.com/questions/76712720/typeerror-unsupported-operand-types-for-type-and-nonetype )
I got the following error:
TypeError: unsupported operand type(s) for |: 'types.GenericAlias' and 'types.GenericAlias'
I removed
set[str] |
and it worked. I am very new to all of this, and can't provide any better contribution than this comment. Cheers.
It may work until the results you want are a Set. You must use python 3.10
At first, I only tried to install the package and was unaware that I had to perform several commands in Terminal before doing this. It should be emphasized before the download links that the Terminal commands must be performed before installing the package.
After some minutes with an AI, I was able to get things to work, but only after adding this to the top of config.py:
from typing import Union
and this to the top of gui.py:
from typing import Optional
and changing line 215 in gui.py to:
output_path: Optional[str],
and changing line 236 in gui.py to:
progress: Optional[gr.Progress],
Then I finally was able to open the GUI from Terminal with the command:
python gui.py
However, the BirdNET-Analyzer-GUI.app still doesn’t open the GUI. I’ve tried putting the app into the trash, emptying the trash, and reinstalling the app several times, but still no joy.