2021.7: A new entity, trigger IDs and script debugging

I am running using poetry/python3.9 virtualenv on a linux amd64 server. Everything worked
fine after an update except the Mobile App integration, which complains about the missing
“av” module on setup.

I needed a “poetry add av” to add this module to my virtualenv. For quite
a while have also had to manually add “atomicwrites” as well, because it doesn’t
get pulled in as a homeassistant dependency.

Tried a bunch of stuff, including switching to MariaDB for recorder. History is still really slow on the new version. It’s definitely something client side, and not on the server. Firefox reports that ‘this tab is slowing down the performance of firefox’ or something along those lines. Rolled back again for now until I can figure out what the issue is.

Hi, when I update core, I can’t access remotely HA anymore. Not by using duckduck go domain in browser on home laptop, nor the HA app on the phone.

Did a snapshot restore of core update and then it’s working again.

Any idea?

2 Likes

Having exactly the same issue can’t find the issue ass all add-ons are configured the same

Omfg guyz i don’t know what you have changed with GUI in core-2021.7.0 but the loading time when i open some addon is freaking fast !!! Thats amazing !!! I have no other words but Thank you <3

debian 10 core install in python vevn
Component error: mobile_app - No module named ‘av’ Component error: cloud - No module named ‘av’
confirmed fix
source bin/activate
pip3 install av
thanks @MoiZie

Running Home Assistant OS 6.1 with Supervisor-2021.06.08 and Core-2021.6.6 on Odroid XU4 getting General Errors:
- Component error: google_assistant - No module named ‘av’
- Component error: amcrest - No module named ‘av’
when checking update to core-2021.7.0

How to fix?

Read the thread.

1 Like

Does it work for Home Assistant OS??

Does not works for me :frowning:

(homeassistant_3_8) homeassistant@ha:/srv/homeassistant_3_8$ pip3 install av
Collecting av
  Using cached av-8.0.3.tar.gz (2.3 MB)
Building wheels for collected packages: av
  Building wheel for av (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /srv/homeassistant_3_8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-6brk0yun/av/setup.py'"'"'; __file__='"'"'/tmp/pip-install-6brk0yun/av/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-xh9qgxcz                                                                                                                                                                                                           
       cwd: /tmp/pip-install-6brk0yun/av/                                                                                                                                                                   
  Complete output (29 lines):                                                                                                                                                                               
  running bdist_wheel                                                                                                                                                                                       
  running build                                                                                                                                                                                             
  running build_py                                                                                                                                                                                          
  creating build                                                                                                                                                                                            
  creating build/lib.linux-armv7l-3.8                                                                                                                                                                       
  creating build/lib.linux-armv7l-3.8/av                                                                                                                                                                    
  copying av/__init__.py -> build/lib.linux-armv7l-3.8/av                                                                                                                                                   
  copying av/__main__.py -> build/lib.linux-armv7l-3.8/av                                                                                                                                                   
  copying av/datasets.py -> build/lib.linux-armv7l-3.8/av                                                                                                                                                   
  copying av/deprecation.py -> build/lib.linux-armv7l-3.8/av                                                                                                                                                
  creating build/lib.linux-armv7l-3.8/av/audio                                                                                                                                                              
  copying av/audio/__init__.py -> build/lib.linux-armv7l-3.8/av/audio                                                                                                                                       
  creating build/lib.linux-armv7l-3.8/av/codec                                                                                                                                                              
  copying av/codec/__init__.py -> build/lib.linux-armv7l-3.8/av/codec                                                                                                                                       
  creating build/lib.linux-armv7l-3.8/av/container                                                                                                                                                          
  copying av/container/__init__.py -> build/lib.linux-armv7l-3.8/av/container                                                                                                                               
  creating build/lib.linux-armv7l-3.8/av/data                                                                                                                                                               
  copying av/data/__init__.py -> build/lib.linux-armv7l-3.8/av/data                                                                                                                                         
  creating build/lib.linux-armv7l-3.8/av/filter                                                                                                                                                             
  copying av/filter/__init__.py -> build/lib.linux-armv7l-3.8/av/filter                                                                                                                                     
  creating build/lib.linux-armv7l-3.8/av/sidedata                                                                                                                                                           
  copying av/sidedata/__init__.py -> build/lib.linux-armv7l-3.8/av/sidedata                                                                                                                                 
  creating build/lib.linux-armv7l-3.8/av/subtitles                                                                                                                                                          
  copying av/subtitles/__init__.py -> build/lib.linux-armv7l-3.8/av/subtitles                                                                                                                               
  creating build/lib.linux-armv7l-3.8/av/video                                                                                                                                                              
  copying av/video/__init__.py -> build/lib.linux-armv7l-3.8/av/video                                                                                                                                       
  running build_ext                                                                                                                                                                                         
  running config                                                                                                                                                                                            
  pkg-config is required for building PyAV                                                                                                                                                                  
  ----------------------------------------                                                                                                                                                                  
  ERROR: Failed building wheel for av
  Running setup.py clean for av
Failed to build av

source /srv/homeassistant/bin/activate
pip3 install av

For me doesn’t work. I get this errors

Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting av
  Using cached av-8.0.3.tar.gz (2.3 MB)
Building wheels for collected packages: av
  Building wheel for av (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /srv/homeassistant/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-19uubjgw/av/setup.py'"'"'; __file__='"'"'/tmp/pip-install-19uubjgw/av/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-0fyggfa6
       cwd: /tmp/pip-install-19uubjgw/av/
  Complete output (48 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-armv7l-3.8
  creating build/lib.linux-armv7l-3.8/av
  copying av/__init__.py -> build/lib.linux-armv7l-3.8/av
  copying av/__main__.py -> build/lib.linux-armv7l-3.8/av
  copying av/datasets.py -> build/lib.linux-armv7l-3.8/av
  copying av/deprecation.py -> build/lib.linux-armv7l-3.8/av
  creating build/lib.linux-armv7l-3.8/av/subtitles
  copying av/subtitles/__init__.py -> build/lib.linux-armv7l-3.8/av/subtitles
  creating build/lib.linux-armv7l-3.8/av/video
  copying av/video/__init__.py -> build/lib.linux-armv7l-3.8/av/video
  creating build/lib.linux-armv7l-3.8/av/data
  copying av/data/__init__.py -> build/lib.linux-armv7l-3.8/av/data
  creating build/lib.linux-armv7l-3.8/av/sidedata
  copying av/sidedata/__init__.py -> build/lib.linux-armv7l-3.8/av/sidedata
  creating build/lib.linux-armv7l-3.8/av/audio
  copying av/audio/__init__.py -> build/lib.linux-armv7l-3.8/av/audio
  creating build/lib.linux-armv7l-3.8/av/codec
  copying av/codec/__init__.py -> build/lib.linux-armv7l-3.8/av/codec
  creating build/lib.linux-armv7l-3.8/av/filter
  copying av/filter/__init__.py -> build/lib.linux-armv7l-3.8/av/filter
  creating build/lib.linux-armv7l-3.8/av/container
  copying av/container/__init__.py -> build/lib.linux-armv7l-3.8/av/container
  running build_ext
  running config
  PyAV: 8.0.3 (unknown commit)
  Python: 3.8.6 (default, Nov 19 2020, 22:23:33) \n[GCC 8.3.0]
  platform: Linux-5.10.17-v7+-armv7l-with-glibc2.28
  extension_extra:
        include_dirs: [b'include']
        libraries: []
        library_dirs: []
        define_macros: []
        runtime_library_dirs: []
  config_macros:
        PYAV_COMMIT_STR="unknown-commit"
        PYAV_VERSION=8.0.3
        PYAV_VERSION_STR="8.0.3"
  Could not find libavformat with pkg-config.
  Could not find libavcodec with pkg-config.
  Could not find libavdevice with pkg-config.
  Could not find libavutil with pkg-config.
  Could not find libavfilter with pkg-config.
  Could not find libswscale with pkg-config.
  Could not find libswresample with pkg-config.
  ----------------------------------------
  ERROR: Failed building wheel for av
  Running setup.py clean for av
Failed to build av
Installing collected packages: av
    Running setup.py install for av ... error
    ERROR: Command errored out with exit status 1:
     command: /srv/homeassistant/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-19uubjgw/av/setup.py'"'"'; __file__='"'"'/tmp/pip-install-19uubjgw/av/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-7u8qm1a9/install-record.txt --single-version-externally-managed --compile --install-headers /srv/homeassistant/include/site/python3.8/av
         cwd: /tmp/pip-install-19uubjgw/av/
    Complete output (48 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-armv7l-3.8
    creating build/lib.linux-armv7l-3.8/av
    copying av/__init__.py -> build/lib.linux-armv7l-3.8/av
    copying av/__main__.py -> build/lib.linux-armv7l-3.8/av
    copying av/datasets.py -> build/lib.linux-armv7l-3.8/av
    copying av/deprecation.py -> build/lib.linux-armv7l-3.8/av
    creating build/lib.linux-armv7l-3.8/av/subtitles
    copying av/subtitles/__init__.py -> build/lib.linux-armv7l-3.8/av/subtitles
    creating build/lib.linux-armv7l-3.8/av/video
    copying av/video/__init__.py -> build/lib.linux-armv7l-3.8/av/video
    creating build/lib.linux-armv7l-3.8/av/data
    copying av/data/__init__.py -> build/lib.linux-armv7l-3.8/av/data
    creating build/lib.linux-armv7l-3.8/av/sidedata
    copying av/sidedata/__init__.py -> build/lib.linux-armv7l-3.8/av/sidedata
    creating build/lib.linux-armv7l-3.8/av/audio
    copying av/audio/__init__.py -> build/lib.linux-armv7l-3.8/av/audio
    creating build/lib.linux-armv7l-3.8/av/codec
    copying av/codec/__init__.py -> build/lib.linux-armv7l-3.8/av/codec
    creating build/lib.linux-armv7l-3.8/av/filter
    copying av/filter/__init__.py -> build/lib.linux-armv7l-3.8/av/filter
    creating build/lib.linux-armv7l-3.8/av/container
    copying av/container/__init__.py -> build/lib.linux-armv7l-3.8/av/container
    running build_ext
    running config
    PyAV: 8.0.3 (unknown commit)
    Python: 3.8.6 (default, Nov 19 2020, 22:23:33) \n[GCC 8.3.0]
    platform: Linux-5.10.17-v7+-armv7l-with-glibc2.28
    extension_extra:
        include_dirs: [b'include']
        libraries: []
        library_dirs: []
        define_macros: []
        runtime_library_dirs: []
    config_macros:
        PYAV_COMMIT_STR="unknown-commit"
        PYAV_VERSION=8.0.3
        PYAV_VERSION_STR="8.0.3"
    Could not find libavformat with pkg-config.
    Could not find libavcodec with pkg-config.
    Could not find libavdevice with pkg-config.
    Could not find libavutil with pkg-config.
    Could not find libavfilter with pkg-config.
    Could not find libswscale with pkg-config.
    Could not find libswresample with pkg-config.
    ----------------------------------------
ERROR: Command errored out with exit status 1: /srv/homeassistant/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-19uubjgw/av/setup.py'"'"'; __file__='"'"'/tmp/pip-install-19uubjgw/av/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-7u8qm1a9/install-record.txt --single-version-externally-managed --compile --install-headers /srv/homeassistant/include/site/python3.8/av Check the logs for full command output.
WARNING: You are using pip version 20.2.4; however, version 21.1.3 is available.
You should consider upgrading via the '/srv/homeassistant/bin/python3.8 -m pip install --upgrade pip' command.

Lost my two Aqara power sensors after updating. Other entities are working within the same device.

@ppolce
@mkyral
looks like you both have the same error
I did notice this line in both of your posts
Using cached av-8.0.3.tar.gz
mine wasn’t cached, it downloaded and installed on the fly. took 5 seconds and I got a completed. restarted and no more errors.
perhaps try removing that package and reinstalling
pip3 uninstall av
then reinstall
pip3 install av --no-cache-dir
see what that does for you

it was mentioned futher up there is an issue already logged for it. Suggest you go there and add any additional details you may have.
Phoscon/deCONZ no longer getting current from Aqara smart plugs · Issue #52481 · home-assistant/core (github.com)

1 Like

Same eroors

(homeassistant) homeassistant@raspberryha:~/.homeassistant $ pip3 uninstall av
WARNING: Skipping av as it is not installed.

(homeassistant) homeassistant@raspberryha:~/.homeassistant $ pip3 install av --no-cache-dir
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting av
  Downloading av-8.0.3.tar.gz (2.3 MB)
     |████████████████████████████████| 2.3 MB 2.1 MB/s
Building wheels for collected packages: av
  Building wheel for av (setup.py) ... error
....

Update “libseccomp2” to 2.4.* or newer on the host system.

It is cached, because I run instalation several times. I also tried another versions - 8.0.0, 7.0.0 - the same error. I also upgraded pip to v20.2. And I found similar issues on internet, but nothing works.

I’m using Debian 10 in LXC container on Turris Omnia.

Anyone else using Zwavejs2mqtt v.5.2.0 (or newever) experiencing

Invalid server version: Z-Wave JS Server version is incompatible: 1.7.0 a version is required that supports at least api schema 6

Zwavejs2mqtt v.5.2.0 has server 1.8.0

I’m running debian 10 in a python 3.8 virtual environment, I’m not sure if your LXC container is lacking something that is needed or not.

@mkyral @ppolce I googled a bit and found 3 suggestions as this issue apparently has happened before.
all solutions seem to point to missing packages.
1st solution
sudo apt-get install libavformat-dev libavdevice-dev libavcodec-dev libavfilter-dev libavutil-dev libswscale-dev libswresample-dev
2nd solution, try to manually install AV and see what packages are missing, then install those and try to reinstall av
3rd solution ensure ffmpeg is installed first

1 Like