Cannot install ha-av after upgrading to Python 3.10.9

And what does previous definition and redeclaration of enumerator means in the log?. There should be something defined from the package libavcodec-dev multiple times?

sorry not sure what you mean

I think these errors are libavcodec-dev related:

In file included from src/av/utils.c:811:
/usr/local/include/libavcodec/avcodec.h:561:5: note: previous definition of ‘AV_CODEC_ID_GREMLIN_DPCM’ was here
561 | AV_CODEC_ID_GREMLIN_DPCM,
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/arm-linux-gnueabihf/libavcodec/bsf.h:28,
from src/av/utils.c:820:
/usr/include/arm-linux-gnueabihf/libavcodec/codec_id.h:410:5: error: redeclaration of enumerator ‘AV_CODEC_ID_MP2’
410 | AV_CODEC_ID_MP2 = 0x15000,
| ^~~~~~~~~~~~~~~
In file included from src/av/utils.c:811:
/usr/local/include/libavcodec/avcodec.h:564:5: note: previous definition of ‘AV_CODEC_ID_MP2’ was here
564 | AV_CODEC_ID_MP2 = 0x15000,
| ^~~~~~~~~~~~~~~
In file included from /usr/include/arm-linux-gnueabihf/libavcodec/bsf.h:28,
from src/av/utils.c:820:

After I removed /usr/local/include/libavcodec I can build ha-av.!

maybe a leftover from one of the first tries. good you found it.

There are some other folders inr usr/local/include:
image

Should I delete these or not? The dates are old 01/06/2021, same date as /libavcodec was.

Sorry but this is something I’m not able to answer.