I can longer install Home Assistant on MacOS with venv. Desperately need help. Will pay (or donate) $100 to anyone who can help me get this working

I’ve had Home Assistant installed through venv on a Mac Mini for a few years now. I did a clean install of Big Sur, and made a new venv and can not get Home Assistant to work. It keeps saying it’s missing a bunch of dependencies. I thought it was an issue with Big Sur, so I went back and reinstalled Catalina. I’m getting the same issues though.

I was able to get it to work in Docker, but even with resources in Docker maxed out, Home Assistant is horribly slow. I have a very complicated Home Assistant installation with 1000s of entities and a ton of dashboards. The UI on my iPads is so slow that its unusable, and any automations take 10 times as long to fire compared to when I had it running in venv.

I’ve tried installing any dependencies I can that I think it needs, but still can’t get it to work. Here is the output on installation:

homeassistant@Home-Control-Mac-Mini ~ % python3.9 -m venv homeassistant

homeassistant@Home-Control-Mac-Mini ~ % cd homeassistant

homeassistant@Home-Control-Mac-Mini homeassistant % source bin/activate

(homeassistant) homeassistant@Home-Control-Mac-Mini homeassistant % python3 -m pip install homeassistant

Collecting homeassistant

Using cached homeassistant-0.117.6-py3-none-any.whl (9.8 MB)

Collecting PyJWT==1.7.1

Using cached PyJWT-1.7.1-py2.py3-none-any.whl (18 kB)

Collecting httpx==0.16.1

Using cached httpx-0.16.1-py3-none-any.whl (65 kB)

Collecting certifi>=2020.6.20

Using cached certifi-2020.11.8-py2.py3-none-any.whl (155 kB)

Collecting jinja2>=2.11.2

Using cached Jinja2-2.11.2-py2.py3-none-any.whl (125 kB)

Requirement already satisfied: pip>=8.0.3 in ./lib/python3.9/site-packages (from homeassistant) (20.2.3)

Collecting requests==2.24.0

Using cached requests-2.24.0-py2.py3-none-any.whl (61 kB)

Collecting bcrypt==3.1.7

Using cached bcrypt-3.1.7-cp34-abi3-macosx_10_6_intel.whl (53 kB)

Collecting voluptuous==0.12.0

Using cached voluptuous-0.12.0-py3-none-any.whl (29 kB)

Collecting astral==1.10.1

Using cached astral-1.10.1-py2.py3-none-any.whl (29 kB)

Collecting attrs==19.3.0

Using cached attrs-19.3.0-py2.py3-none-any.whl (39 kB)

Collecting voluptuous-serialize==2.4.0

Using cached voluptuous_serialize-2.4.0-py3-none-any.whl (6.7 kB)

Processing /Users/homeassistant/Library/Caches/pip/wheels/ff/60/18/30057901d273ddd1b2f73cb690b972d1f84e0307c6ec326644/ciso8601-2.1.3-cp39-cp39-macosx_10_9_x86_64.whl

Processing /Users/homeassistant/Library/Caches/pip/wheels/73/fc/61/6ccc52b584e2e35f0462b27d2231ce3790702814d0c3b66b02/ruamel.yaml-0.15.100-cp39-cp39-macosx_10_9_x86_64.whl

Collecting aiohttp==3.6.2

Using cached aiohttp-3.6.2-py3-none-any.whl (441 kB)

Processing /Users/homeassistant/Library/Caches/pip/wheels/1d/bd/25/e4752512710f72a7897aea1d23d4fd5a2f2e6055d6c625fe62/yarl-1.4.2-cp39-cp39-macosx_10_9_x86_64.whl

Collecting pyyaml==5.3.1

Using cached PyYAML-5.3.1.tar.gz (269 kB)

Collecting pytz>=2020.1

Using cached pytz-2020.4-py2.py3-none-any.whl (509 kB)

Collecting async-timeout==3.0.1

Using cached async_timeout-3.0.1-py3-none-any.whl (8.2 kB)

Processing /Users/homeassistant/Library/Caches/pip/wheels/84/5b/00/3ebff44b1e0a380d959960828803a9486ff2433728cceff666/python_slugify-4.0.1-py2.py3-none-any.whl

Collecting cryptography==3.2

Using cached cryptography-3.2-cp35-abi3-macosx_10_10_x86_64.whl (1.8 MB)

Collecting rfc3986[idna2008]<2,>=1.3

Using cached rfc3986-1.4.0-py2.py3-none-any.whl (31 kB)

Collecting httpcore==0.12.*

Using cached httpcore-0.12.1-py3-none-any.whl (54 kB)

Collecting sniffio

Using cached sniffio-1.2.0-py3-none-any.whl (10 kB)

Processing /Users/homeassistant/Library/Caches/pip/wheels/e0/19/6f/6ba857621f50dc08e084312746ed3ebc14211ba30037d5e44e/MarkupSafe-1.1.1-cp39-cp39-macosx_10_9_x86_64.whl

Collecting idna<3,>=2.5

Using cached idna-2.10-py2.py3-none-any.whl (58 kB)

Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1

Using cached urllib3-1.25.11-py2.py3-none-any.whl (127 kB)

Collecting chardet<4,>=3.0.2

Using cached chardet-3.0.4-py2.py3-none-any.whl (133 kB)

Collecting six>=1.4.1

Using cached six-1.15.0-py2.py3-none-any.whl (10 kB)

Collecting cffi>=1.1

Using cached cffi-1.14.3-2-cp39-cp39-macosx_10_9_x86_64.whl (176 kB)

Processing /Users/homeassistant/Library/Caches/pip/wheels/43/3a/a8/d7bf95ae763a7a2057cb502ff2da094763c166f253624afc63/multidict-4.7.6-cp39-cp39-macosx_10_9_x86_64.whl

Collecting text-unidecode>=1.3

Using cached text_unidecode-1.3-py2.py3-none-any.whl (78 kB)

Collecting h11==0.*

Using cached h11-0.11.0-py2.py3-none-any.whl (54 kB)

Collecting pycparser

Using cached pycparser-2.20-py2.py3-none-any.whl (112 kB)

Using legacy 'setup.py install' for pyyaml, since package 'wheel' is not installed.

Installing collected packages: PyJWT, idna, rfc3986, h11, sniffio, httpcore, certifi, httpx, MarkupSafe, jinja2, urllib3, chardet, requests, six, pycparser, cffi, bcrypt, voluptuous, pytz, astral, attrs, voluptuous-serialize, ciso8601, ruamel.yaml, async-timeout, multidict, yarl, aiohttp, pyyaml, text-unidecode, python-slugify, cryptography, homeassistant

Running setup.py install for pyyaml ... done

Successfully installed MarkupSafe-1.1.1 PyJWT-1.7.1 aiohttp-3.6.2 astral-1.10.1 async-timeout-3.0.1 attrs-19.3.0 bcrypt-3.1.7 certifi-2020.11.8 cffi-1.14.3 chardet-3.0.4 ciso8601-2.1.3 cryptography-3.2 h11-0.11.0 homeassistant-0.117.6 httpcore-0.12.1 httpx-0.16.1 idna-2.10 jinja2-2.11.2 multidict-4.7.6 pycparser-2.20 python-slugify-4.0.1 pytz-2020.4 pyyaml-5.3.1 requests-2.24.0 rfc3986-1.4.0 ruamel.yaml-0.15.100 six-1.15.0 sniffio-1.2.0 text-unidecode-1.3 urllib3-1.25.11 voluptuous-0.12.0 voluptuous-serialize-2.4.0 yarl-1.4.2

WARNING: You are using pip version 20.2.3; however, version 20.2.4 is available.

You should consider upgrading via the '/Users/homeassistant/homeassistant/bin/python3 -m pip install --upgrade pip' command.

And here is what happens when I run Home Assistant:

(homeassistant) homeassistant@Home-Control-Mac-Mini homeassistant % hass --open-ui
Unable to find configuration. Creating default one in /Users/homeassistant/.homeassistant
2020-11-15 19:22:47 ERROR (SyncWorker_1) [homeassistant.util.package] Unable to install package pillow==7.2.0: ERROR: Command errored out with exit status 1:
     command: /Users/homeassistant/homeassistant/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/ys/j24x01wj6m17stn8w0kqd2540000gp/T/pip-install-t0muno3a/pillow/setup.py'"'"'; __file__='"'"'/private/var/folders/ys/j24x01wj6m17stn8w0kqd2540000gp/T/pip-install-t0muno3a/pillow/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/ys/j24x01wj6m17stn8w0kqd2540000gp/T/pip-record-6dctw50q/install-record.txt --single-version-externally-managed --compile --install-headers /Users/homeassistant/homeassistant/include/site/python3.9/pillow
         cwd: /private/var/folders/ys/j24x01wj6m17stn8w0kqd2540000gp/T/pip-install-t0muno3a/pillow/
    Complete output (172 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.macosx-10.9-x86_64-3.9
    creating build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/MpoImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/ImageMode.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/PngImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/XbmImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/PcxImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/SunImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/ImageFile.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/SpiderImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/TarIO.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/FitsStubImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/MpegImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/BdfFontFile.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/GribStubImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/ImageStat.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/PixarImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/GimpPaletteFile.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/ImageColor.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/ContainerIO.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/MspImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/MicImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/_version.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/ImtImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/GifImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/PalmImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/ImageQt.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/ImageMath.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/PaletteFile.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/FontFile.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/PdfParser.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/ExifTags.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/ImageCms.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/FpxImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/ImageChops.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/BufrStubImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/PSDraw.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/PcdImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/ImageFilter.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/ImageDraw2.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/ImagePath.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/DcxImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/__init__.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/JpegPresets.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/Hdf5StubImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/features.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/ImageDraw.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/GimpGradientFile.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/ImageWin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/IcoImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/_tkinter_finder.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/EpsImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/TgaImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/ImageMorph.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/Jpeg2KImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/WalImageFile.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/PcfFontFile.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/BlpImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/ImageTk.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/GbrImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/ImageOps.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/PdfImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/ImageShow.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/ImageEnhance.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/WmfImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/ImageGrab.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/WebPImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/FliImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/TiffTags.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/CurImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/_util.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/GdImageFile.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/TiffImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/IptcImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/ImagePalette.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/BmpImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/ImageTransform.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/IcnsImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/McIdasImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/XpmImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/DdsImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/ImageSequence.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/PyAccess.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/_binary.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/Image.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/__main__.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/XVThumbImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/SgiImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/ImImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/PsdImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/JpegImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/ImageFont.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/PpmImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/FtexImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    running egg_info
    writing src/Pillow.egg-info/PKG-INFO
    writing dependency_links to src/Pillow.egg-info/dependency_links.txt
    writing top-level names to src/Pillow.egg-info/top_level.txt
    reading manifest file 'src/Pillow.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    warning: no files found matching '*.c'
    warning: no files found matching '*.h'
    warning: no files found matching '*.sh'
    warning: no previously-included files found matching '.appveyor.yml'
    warning: no previously-included files found matching '.coveragerc'
    warning: no previously-included files found matching '.editorconfig'
    warning: no previously-included files found matching '.readthedocs.yml'
    warning: no previously-included files found matching 'codecov.yml'
    warning: no previously-included files matching '.git*' found anywhere in distribution
    warning: no previously-included files matching '*.pyc' found anywhere in distribution
    warning: no previously-included files matching '*.so' found anywhere in distribution
    no previously-included directories found matching '.ci'
    writing manifest file 'src/Pillow.egg-info/SOURCES.txt'
    running build_ext
    
    
    The headers or library files could not be found for zlib,
    a required dependency when compiling Pillow from source.
    
    Please see the install instructions at:
       https://pillow.readthedocs.io/en/latest/installation.html
    
    Traceback (most recent call last):
      File "/private/var/folders/ys/j24x01wj6m17stn8w0kqd2540000gp/T/pip-install-t0muno3a/pillow/setup.py", line 864, in <module>
        setup(
      File "/Users/homeassistant/homeassistant/lib/python3.9/site-packages/setuptools/__init__.py", line 165, in setup
        return distutils.core.setup(**attrs)
      File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/core.py", line 148, in setup
        dist.run_commands()
      File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 966, in run_commands
        self.run_command(cmd)
      File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/Users/homeassistant/homeassistant/lib/python3.9/site-packages/setuptools/command/install.py", line 61, in run
        return orig.install.run(self)
      File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/command/install.py", line 546, in run
        self.run_command('build')
      File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/command/build.py", line 135, in run
        self.run_command(cmd_name)
      File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/command/build_ext.py", line 340, in run
        self.build_extensions()
      File "/private/var/folders/ys/j24x01wj6m17stn8w0kqd2540000gp/T/pip-install-t0muno3a/pillow/setup.py", line 694, in build_extensions
        raise RequiredDependencyException(f)
    __main__.RequiredDependencyException: zlib
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/ys/j24x01wj6m17stn8w0kqd2540000gp/T/pip-install-t0muno3a/pillow/setup.py", line 918, in <module>
        raise RequiredDependencyException(msg)
    __main__.RequiredDependencyException:
    
    The headers or library files could not be found for zlib,
    a required dependency when compiling Pillow from source.
    
    Please see the install instructions at:
       https://pillow.readthedocs.io/en/latest/installation.html
    
    
    ----------------------------------------
ERROR: Command errored out with exit status 1: /Users/homeassistant/homeassistant/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/ys/j24x01wj6m17stn8w0kqd2540000gp/T/pip-install-t0muno3a/pillow/setup.py'"'"'; __file__='"'"'/private/var/folders/ys/j24x01wj6m17stn8w0kqd2540000gp/T/pip-install-t0muno3a/pillow/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/ys/j24x01wj6m17stn8w0kqd2540000gp/T/pip-record-6dctw50q/install-record.txt --single-version-externally-managed --compile --install-headers /Users/homeassistant/homeassistant/include/site/python3.9/pillow Check the logs for full command output.
WARNING: You are using pip version 20.2.3; however, version 20.2.4 is available.
You should consider upgrading via the '/Users/homeassistant/homeassistant/bin/python3 -m pip install --upgrade pip' command.
2020-11-15 19:22:47 ERROR (MainThread) [homeassistant.setup] Setup failed for image: Requirements for image not found: ['pillow==7.2.0'].
2020-11-15 19:22:47 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of person. Setup failed for dependencies: image
2020-11-15 19:22:47 ERROR (MainThread) [homeassistant.setup] Setup failed for person: Could not set up all dependencies.
2020-11-15 19:22:47 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of onboarding. Setup failed for dependencies: person
2020-11-15 19:22:47 ERROR (MainThread) [homeassistant.setup] Setup failed for onboarding: Could not set up all dependencies.
2020-11-15 19:22:47 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of frontend. Setup failed for dependencies: onboarding
2020-11-15 19:22:47 ERROR (MainThread) [homeassistant.setup] Setup failed for frontend: Could not set up all dependencies.
2020-11-15 19:22:54 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of map. Setup failed for dependencies: frontend
2020-11-15 19:22:54 ERROR (MainThread) [homeassistant.setup] Setup failed for map: Could not set up all dependencies.
2020-11-15 19:22:54 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of logbook. Setup failed for dependencies: frontend
2020-11-15 19:22:54 ERROR (MainThread) [homeassistant.setup] Setup failed for logbook: Could not set up all dependencies.
2020-11-15 19:22:54 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of mobile_app. Setup failed for dependencies: person
2020-11-15 19:22:54 ERROR (MainThread) [homeassistant.setup] Setup failed for mobile_app: Could not set up all dependencies.
2020-11-15 19:22:58 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of default_config. Setup failed for dependencies: frontend, logbook, map, mobile_app, person
2020-11-15 19:22:58 ERROR (MainThread) [homeassistant.setup] Setup failed for default_config: Could not set up all dependencies.
2020-11-15 19:22:59 WARNING (MainThread) [homeassistant.bootstrap] Detected that frontend did not load. Activating safe mode
2020-11-15 19:23:03 ERROR (SyncWorker_0) [homeassistant.util.package] Unable to install package pillow==7.2.0: ERROR: Command errored out with exit status 1:
     command: /Users/homeassistant/homeassistant/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/ys/j24x01wj6m17stn8w0kqd2540000gp/T/pip-install-o7avkq0n/pillow/setup.py'"'"'; __file__='"'"'/private/var/folders/ys/j24x01wj6m17stn8w0kqd2540000gp/T/pip-install-o7avkq0n/pillow/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/ys/j24x01wj6m17stn8w0kqd2540000gp/T/pip-record-ui6n4f1c/install-record.txt --single-version-externally-managed --compile --install-headers /Users/homeassistant/homeassistant/include/site/python3.9/pillow
         cwd: /private/var/folders/ys/j24x01wj6m17stn8w0kqd2540000gp/T/pip-install-o7avkq0n/pillow/
    Complete output (172 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.macosx-10.9-x86_64-3.9
    creating build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/MpoImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/ImageMode.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/PngImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/XbmImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/PcxImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/SunImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/ImageFile.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/SpiderImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/TarIO.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/FitsStubImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/MpegImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/BdfFontFile.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/GribStubImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/ImageStat.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/PixarImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/GimpPaletteFile.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/ImageColor.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/ContainerIO.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/MspImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/MicImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/_version.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/ImtImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/GifImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/PalmImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/ImageQt.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/ImageMath.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/PaletteFile.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/FontFile.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/PdfParser.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/ExifTags.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/ImageCms.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/FpxImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/ImageChops.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/BufrStubImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/PSDraw.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/PcdImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/ImageFilter.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/ImageDraw2.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/ImagePath.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/DcxImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/__init__.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/JpegPresets.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/Hdf5StubImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/features.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/ImageDraw.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/GimpGradientFile.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/ImageWin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/IcoImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/_tkinter_finder.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/EpsImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/TgaImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/ImageMorph.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/Jpeg2KImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/WalImageFile.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/PcfFontFile.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/BlpImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/ImageTk.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/GbrImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/ImageOps.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/PdfImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/ImageShow.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/ImageEnhance.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/WmfImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/ImageGrab.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/WebPImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/FliImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/TiffTags.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/CurImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/_util.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/GdImageFile.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/TiffImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/IptcImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/ImagePalette.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/BmpImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/ImageTransform.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/IcnsImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/McIdasImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/XpmImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/DdsImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/ImageSequence.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/PyAccess.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/_binary.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/Image.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/__main__.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/XVThumbImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/SgiImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/ImImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/PsdImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/JpegImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/ImageFont.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/PpmImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    copying src/PIL/FtexImagePlugin.py -> build/lib.macosx-10.9-x86_64-3.9/PIL
    running egg_info
    writing src/Pillow.egg-info/PKG-INFO
    writing dependency_links to src/Pillow.egg-info/dependency_links.txt
    writing top-level names to src/Pillow.egg-info/top_level.txt
    reading manifest file 'src/Pillow.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    warning: no files found matching '*.c'
    warning: no files found matching '*.h'
    warning: no files found matching '*.sh'
    warning: no previously-included files found matching '.appveyor.yml'
    warning: no previously-included files found matching '.coveragerc'
    warning: no previously-included files found matching '.editorconfig'
    warning: no previously-included files found matching '.readthedocs.yml'
    warning: no previously-included files found matching 'codecov.yml'
    warning: no previously-included files matching '.git*' found anywhere in distribution
    warning: no previously-included files matching '*.pyc' found anywhere in distribution
    warning: no previously-included files matching '*.so' found anywhere in distribution
    no previously-included directories found matching '.ci'
    writing manifest file 'src/Pillow.egg-info/SOURCES.txt'
    running build_ext
    
    
    The headers or library files could not be found for zlib,
    a required dependency when compiling Pillow from source.
    
    Please see the install instructions at:
       https://pillow.readthedocs.io/en/latest/installation.html
    
    Traceback (most recent call last):
      File "/private/var/folders/ys/j24x01wj6m17stn8w0kqd2540000gp/T/pip-install-o7avkq0n/pillow/setup.py", line 864, in <module>
        setup(
      File "/Users/homeassistant/homeassistant/lib/python3.9/site-packages/setuptools/__init__.py", line 165, in setup
        return distutils.core.setup(**attrs)
      File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/core.py", line 148, in setup
        dist.run_commands()
      File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 966, in run_commands
        self.run_command(cmd)
      File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/Users/homeassistant/homeassistant/lib/python3.9/site-packages/setuptools/command/install.py", line 61, in run
        return orig.install.run(self)
      File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/command/install.py", line 546, in run
        self.run_command('build')
      File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/command/build.py", line 135, in run
        self.run_command(cmd_name)
      File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/command/build_ext.py", line 340, in run
        self.build_extensions()
      File "/private/var/folders/ys/j24x01wj6m17stn8w0kqd2540000gp/T/pip-install-o7avkq0n/pillow/setup.py", line 694, in build_extensions
        raise RequiredDependencyException(f)
    __main__.RequiredDependencyException: zlib
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/ys/j24x01wj6m17stn8w0kqd2540000gp/T/pip-install-o7avkq0n/pillow/setup.py", line 918, in <module>
        raise RequiredDependencyException(msg)
    __main__.RequiredDependencyException:
    
    The headers or library files could not be found for zlib,
    a required dependency when compiling Pillow from source.
    
    Please see the install instructions at:
       https://pillow.readthedocs.io/en/latest/installation.html
    
    
    ----------------------------------------
ERROR: Command errored out with exit status 1: /Users/homeassistant/homeassistant/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/ys/j24x01wj6m17stn8w0kqd2540000gp/T/pip-install-o7avkq0n/pillow/setup.py'"'"'; __file__='"'"'/private/var/folders/ys/j24x01wj6m17stn8w0kqd2540000gp/T/pip-install-o7avkq0n/pillow/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/ys/j24x01wj6m17stn8w0kqd2540000gp/T/pip-record-ui6n4f1c/install-record.txt --single-version-externally-managed --compile --install-headers /Users/homeassistant/homeassistant/include/site/python3.9/pillow Check the logs for full command output.
WARNING: You are using pip version 20.2.3; however, version 20.2.4 is available.
You should consider upgrading via the '/Users/homeassistant/homeassistant/bin/python3 -m pip install --upgrade pip' command.
2020-11-15 19:23:03 ERROR (MainThread) [homeassistant.setup] Setup failed for image: Requirements for image not found: ['pillow==7.2.0'].
2020-11-15 19:23:03 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of person. Setup failed for dependencies: image
2020-11-15 19:23:03 ERROR (MainThread) [homeassistant.setup] Setup failed for person: Could not set up all dependencies.
2020-11-15 19:23:03 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of onboarding. Setup failed for dependencies: person
2020-11-15 19:23:03 ERROR (MainThread) [homeassistant.setup] Setup failed for onboarding: Could not set up all dependencies.
2020-11-15 19:23:03 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of frontend. Setup failed for dependencies: onboarding
2020-11-15 19:23:03 ERROR (MainThread) [homeassistant.setup] Setup failed for frontend: Could not set up all dependencies.
2020-11-15 19:23:03 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of safe_mode. Setup failed for dependencies: frontend
2020-11-15 19:23:03 ERROR (MainThread) [homeassistant.setup] Setup failed for safe_mode: Could not set up all dependencies.
2020-11-15 19:23:03 WARNING (SyncWorker_5) [homeassistant.bootstrap] Cannot launch the UI because frontend not loaded

This was on Big Sur. It looks like it thinks I’m running MacOS 10.9 or something, but I have the same issue when trying under Catalina.

Any help would be truly appreciated, and like I said I’d be willing to pay $100 to get it working. I wanted to show it off to family at Thanksgiving, but right now under Docker it’s too slow to show anyone.

Is there a reason you are persisting with Mac OS instead of installing Debian, or other flavor of Linux?

1 Like

Because I have other home automation software I use on that Mac that will only run on MacOS.

I now believe it is an issue with the installation of Pillow. I found this:

But it’s unclear to me how to fix this issue.

Actually, that wasn’t it. It seems to have been an issue with zlib. I installed it through brew instead of command line tools and then changed where it was pointing to and it seems to have worked.

Perhaps you could use Proxmox - run Mac OS in a VM and HA in a VM.

If i check the documentation i see that version of pillow is not compatible with the used python version.
Solution could be using a pillow version 8 or higher. Or using a lower version of python.

I was able to fix it by installing zlib through brew and then following the directions to point the path to the right location. This is an issue anyone installing Home Assistant on MacOS will encounter on fress installs of at least Catalina and Big Sur. Is there a way to let someone know and have them put directions on the venv installation page?

You can create a PR to add info to that page. Click on the ‘edit this page on Github’ link at the top of the page.

1 Like

I get the same error.

The script is apparently trying to download Pillow 7.2.0.:

2020-12-14 16:28:35 ERROR (SyncWorker_0) [homeassistant.util.package] Unable to install package pillow==7.2.0: ERROR: Command errored out with exit status 1:

However latest version is 8.0.1:

Mac-mini bin % python3 -m pip install --upgrade Pillow

Requirement already satisfied: Pillow in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (8.0.1)

I used brew to install zlib:

Mac-mini bin % brew install zlib

and followed the caveat:

==> Caveats
zlib is keg-only, which means it was not symlinked into /usr/local,
because macOS already provides this software and installing another version in
parallel can cause all kinds of trouble.

For compilers to find zlib you may need to set:
  export LDFLAGS="-L/usr/local/opt/zlib/lib"
  export CPPFLAGS="-I/usr/local/opt/zlib/include"

==> Summary
🍺  /usr/local/Cellar/zlib/1.2.11: 12 files, 376.4KB

but still could not clear the error.

And don’t see a pull request in GitHub.

Thanks.

Had the same issue and apparently in 7.2 there is a filename issue which libzip is getting in the way.

brew unlink libzip
hass -c config #run this once, so it builds the packages
brew link libzip

Reference : https://www.mail-archive.com/[email protected]/msg101378.html

1 Like

After many hours of hitting my head against the wall, this fixed my issue! Thanks @ccsliinc