Help - My HASS broken and I can't get going again

After running well for a year I upgraded to the latest version (as I do each month) and also MacOS Big Sur 11.1 but I cannot seem to get my MAC Home assistant running. I’d be happy to reinstall from scratch if that worked - but I can’t figure it out. HELP!

I also upgraded Python to the latest 3.9.1 - no luck there

Error on starting from Terminal window - HASS web site won’t load.

--script macos restart
Home Assistant has been uninstalled.
Unload failed: 5: Input/output error
Home Assistant has been installed.         Open it here: http://localhost:8123
Load failed: 5: Input/output error

On trying to upgrade HASS I get an error at

Running setup.py install for yarl ... error
    ERROR: Command errored out with exit status 1:
...
WARNING: You are using pip version 20.2.3; however, version 20.3.3 is available.
You should consider upgrading via the '/Library/Frameworks/Python.framework/Versions/3.9/bin/python3 -m pip install --upgrade pip' command.

What version you using before upgrade?

If big version jump even or even small you may need check the breaking changes.

It started playing up under the new version numbering - 2020.12. The pip compatibility errors started appearing too.

Prior to that I was running 0.118.x - so a pretty recent version.

That usually means a permissions error, but it could also be that you’re missing required libraries. Check the log file for more information.

Thanks. Log error pointed me to this thread https://apple.stackexchange.com/questions/254380/why-am-i-getting-an-invalid-active-developer-path-when-attempting-to-use-git-a which solved the errors when upgrading HASS.

However I still cannot get the web page to load.

Log file now says

2020-12-22 19:27:55 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-12-22 19:27:56 WARNING (Recorder) [homeassistant.components.recorder] Ended unfinished session (id=20 from 2020-12-22 09:27:53.844680)
2020-12-22 19:27:56 ERROR (MainThread) [homeassistant.setup] Setup failed for image: Unable to import component: cannot import name '_imaging' from 'PIL' (/Users/Me/.homeassistant/deps/lib/python/site-packages/PIL/__init__.py)
2020-12-22 19:27:56 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of person. Setup failed for dependencies: image
2020-12-22 19:27:56 ERROR (MainThread) [homeassistant.setup] Setup failed for person: Could not set up all dependencies.
2020-12-22 19:27:56 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of onboarding. Setup failed for dependencies: person
2020-12-22 19:27:56 ERROR (MainThread) [homeassistant.setup] Setup failed for onboarding: Could not set up all dependencies.
2020-12-22 19:27:56 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of frontend. Setup failed for dependencies: onboarding
2020-12-22 19:27:56 ERROR (MainThread) [homeassistant.setup] Setup failed for frontend: Could not set up all dependencies.
2020-12-22 19:27:58 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of logbook. Setup failed for dependencies: frontend
2020-12-22 19:27:58 ERROR (MainThread) [homeassistant.setup] Setup failed for logbook: Could not set up all dependencies.
2020-12-22 19:27:58 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of hacs. Setup failed for dependencies: frontend
2020-12-22 19:27:58 ERROR (MainThread) [homeassistant.setup] Setup failed for hacs: Could not set up all dependencies.
2020-12-22 19:27:58 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of map. Setup failed for dependencies: frontend
2020-12-22 19:27:58 ERROR (MainThread) [homeassistant.setup] Setup failed for map: Could not set up all dependencies.
2020-12-22 19:27:58 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of mobile_app. Setup failed for dependencies: person

Any clues there?

Looks like a problem with pillow. On Linux I’d suggest checking you do:

sudo apt install build-essential tk-dev libncurses5-dev libncursesw5-dev \
  libreadline-dev libdb5.3-dev libgdbm-dev libsqlite3-dev libssl-dev libbz2-dev \
  libexpat1-dev liblzma-dev zlib1g-dev libudev-dev unixodbc-dev libpq-dev \
  libopenzwave1.5-dev libwebp-dev libopenjp2-7-dev libjpeg-dev libtiff5-dev \
  libfreetype6-dev libc-dev libffi-dev libbluetooth-dev libtirpc-dev libjemalloc-dev 
sudo ldconfig

then activate the venv as the relevant user and run:

pip3 install pillow --global-option="build_ext" --global-option="--enable-zlib" \
  --global-option="--enable-jpeg" --global-option="--enable-tiff" \
  --global-option="--enable-freetype" --global-option="--enable-webp" \
  --global-option="--enable-webpmux" --global-option="--enable-jpeg2000"

No idea what the Mac equivalent of the first is though.

To be honest, this sounds like a hardware issue with your storage device. Anything relevant showing up with sudo dmesg?

I have no idea what to look for in that. Anything obvious? It’s running on a 2013 MacBook pro.

% sudo dmesg 
ort(585.0)[A04873E0-470E-3D5B-B64F-51467022E77A]@0xffffff7fa0aa6000->0xffffff7fa0aaefff
[ 4205.596642]:             dependency: com.apple.iokit.IOGraphicsFamily(585)[010A56CD-1229-3DA1-B6A8-666F37B48F21]@0xffffff7fa0a61000->0xffffff7fa0a8ffff
[ 4205.596652]:             dependency: com.apple.iokit.IOPCIFamily(2.9)[D0F1BFB8-C28E-3E70-891B-73B783189394]@0xffffff8002c2c000->0xffffff8002c53fff
[ 4205.604781]: GFX0-0x1e3-A::_doControl(23) not gated

Backtrace 0xffffff7fa0aa8b34 0xffffff7fa0a757bb 0xffffff7fa0a76464 0xffffff8000a4569e 0xffffff7fa0a859e2 0xffffff8000a4f86b 0xffffff80003a7d81
[ 4205.604798]:       Kernel Extensions in backtrace:
[ 4205.604808]:          com.apple.iokit.IOGraphicsFamily(585.0)[010A56CD-1229-3DA1-B6A8-666F37B48F21]@0xffffff7fa0a61000->0xffffff7fa0a8ffff
[ 4205.604820]:             dependency: com.apple.iokit.IOPCIFamily(2.9)[D0F1BFB8-C28E-3E70-891B-73B783189394]@0xffffff8002c2c000->0xffffff8002c53fff
[ 4205.604833]:          com.apple.iokit.IONDRVSupport(585.0)[A04873E0-470E-3D5B-B64F-51467022E77A]@0xffffff7fa0aa6000->0xffffff7fa0aaefff
[ 4205.604844]:             dependency: com.apple.iokit.IOGraphicsFamily(585)[010A56CD-1229-3DA1-B6A8-666F37B48F21]@0xffffff7fa0a61000->0xffffff7fa0a8ffff
[ 4205.604855]:             dependency: com.apple.iokit.IOPCIFamily(2.9)[D0F1BFB8-C28E-3E70-891B-73B783189394]@0xffffff8002c2c000->0xffffff8002c53fff
[ 4205.612393]: GFX0-0x1e3-A::_doControl(23) not gated

Backtrace 0xffffff7fa0aa8b34 0xffffff7fa0a757bb 0xffffff7fa0a76464 0xffffff8000a4569e 0xffffff7fa0a859e2 0xffffff8000a4f86b 0xffffff80003a7d81
[ 4205.612406]:       Kernel Extensions in backtrace:
[ 4205.612413]:          com.apple.iokit.IOGraphicsFamily(585.0)[010A56CD-1229-3DA1-B6A8-666F37B48F21]@0xffffff7fa0a61000->0xffffff7fa0a8ffff
[ 4205.612422]:             dependency: com.apple.iokit.IOPCIFamily(2.9)[D0F1BFB8-C28E-3E70-891B-73B783189394]@0xffffff8002c2c000->0xffffff8002c53fff
[ 4205.612432]:          com.apple.iokit.IONDRVSupport(585.0)[A04873E0-470E-3D5B-B64F-51467022E77A]@0xffffff7fa0aa6000->0xffffff7fa0aaefff
[ 4205.612440]:             dependency: com.apple.iokit.IOGraphicsFamily(585)[010A56CD-1229-3DA1-B6A8-666F37B48F21]@0xffffff7fa0a61000->0xffffff7fa0a8ffff
[ 4205.612448]:             dependency: com.apple.iokit.IOPCIFamily(2.9)[D0F1BFB8-C28E-3E70-891B-73B783189394]@0xffffff8002c2c000->0xffffff8002c53fff
[ 4205.620602]: GFX0-0x1e3-A::_doControl(23) not gated

Backtrace 0xffffff7fa0aa8b34 0xffffff7fa0a757bb 0xffffff7fa0a76464 0xffffff8000a4569e 0xffffff7fa0a859e2 0xffffff8000a4f86b 0xffffff80003a7d81
[ 4205.620620]:       Kernel Extensions in backtrace:
[ 4205.620640]:          com.apple.iokit.IOGraphicsFamily(585.0)[010A56CD-1229-3DA1-B6A8-666F37B48F21]@0xffffff7fa0a61000->0xffffff7fa0a8ffff
[ 4205.620653]:             dependency: com.apple.iokit.IOPCIFamily(2.9)[D0F1BFB8-C28E-3E70-891B-73B783189394]@0xffffff8002c2c000->0xffffff8002c53fff
[ 4205.620666]:          com.apple.iokit.IONDRVSupport(585.0)[A04873E0-470E-3D5B-B64F-51467022E77A]@0xffffff7fa0aa6000->0xffffff7fa0aaefff
[ 4205.620678]:             dependency: com.apple.iokit.IOGraphicsFamily(585)[010A56CD-1229-3DA1-B6A8-666F37B48F21]@0xffffff7fa0a61000->0xffffff7fa0a8ffff
[ 4205.620688]:             dependency: com.apple.iokit.IOPCIFamily(2.9)[D0F1BFB8-C28E-3E70-891B-73B783189394]@0xffffff8002c2c000->0xffffff8002c53fff
[ 4205.628651]: GFX0-0x1e3-A::_doControl(23) not gated

Backtrace 0xffffff7fa0aa8b34 0xffffff7fa0a757bb 0xffffff7fa0a76464 0xffffff8000a4569e 0xffffff7fa0a859e2 0xffffff8000a4f86b 0xffffff80003a7d81
[ 4205.628671]:       Kernel Extensions in backtrace:
[ 4205.628684]:          com.apple.iokit.IOGraphicsFamily(585.0)[010A56CD-1229-3DA1-B6A8-666F37B48F21]@0xffffff7fa0a61000->0xffffff7fa0a8ffff
[ 4205.628702]:             dependency: com.apple.iokit.IOPCIFamily(2.9)[D0F1BFB8-C28E-3E70-891B-73B783189394]@0xffffff8002c2c000->0xffffff8002c53fff
[ 4205.628720]:          com.apple.iokit.IONDRVSupport(585.0)[A04873E0-470E-3D5B-B64F-51467022E77A]@0xffffff7fa0aa6000->0xffffff7fa0aaefff
[ 4205.628737]:             dependency: com.apple.iokit.IOGraphicsFamily(585)[010A56CD-1229-3DA1-B6A8-666F37B48F21]@0xffffff7fa0a61000->0xffffff7fa0a8ffff
[ 4205.628748]:             dependency: com.apple.iokit.IOPCIFamily(2.9)[D0F1BFB8-C28E-3E70-891B-73B783189394]@0xffffff8002c2c000->0xffffff8002c53fff
[ 4205.636733]: GFX0-0x1e3-A::_doControl(23) not gated

Backtrace 0xffffff7fa0aa8b34 0xffffff7fa0a757bb 0xffffff7fa0a76464 0xffffff8000a4569e 0xffffff7fa0a859e2 0xffffff8000a4f86b 0xffffff80003a7d81
[ 4205.636749]:       Kernel Extensions in backtrace:
[ 4205.636759]:          com.apple.iokit.IOGraphicsFamily(585.0)[010A56CD-1229-3DA1-B6A8-666F37B48F21]@0xffffff7fa0a61000->0xffffff7fa0a8ffff
[ 4205.636772]:             dependency: com.apple.iokit.IOPCIFamily(2.9)[D0F1BFB8-C28E-3E70-891B-73B783189394]@0xffffff8002c2c000->0xffffff8002c53fff
[ 4205.636785]:          com.apple.iokit.IONDRVSupport(585.0)[A04873E0-470E-3D5B-B64F-51467022E77A]@0xffffff7fa0aa6000->0xffffff7fa0aaefff
[ 4205.636796]:             dependency: com.apple.iokit.IOGraphicsFamily(585)[010A56CD-1229-3DA1-B6A8-666F37B48F21]@0xffffff7fa0a61000->0xffffff7fa0a8ffff
[ 4205.636807]:             dependency: com.apple.iokit.IOPCIFamily(2.9)[D0F1BFB8-C28E-3E70-891B-73B783189394]@0xffffff8002c2c000->0xffffff8002c53fff
[ 4205.644618]: GFX0-0x1e3-A::_doControl(23) not gated

Backtrace 0xffffff7fa0aa8b34 0xffffff7fa0a757bb 0xffffff7fa0a76464 0xffffff8000a4569e 0xffffff7fa0a859e2 0xffffff8000a4f86b 0xffffff80003a7d81
[ 4205.644634]:       Kernel Extensions in backtrace:
[ 4205.644644]:          com.apple.iokit.IOGraphicsFamily(585.0)[010A56CD-1229-3DA1-B6A8-666F37B48F21]@0xffffff7fa0a61000->0xffffff7fa0a8ffff
[ 4205.644656]:             dependency: com.apple.iokit.IOPCIFamily(2.9)[D0F1BFB8-C28E-3E70-891B-73B783189394]@0xffffff8002c2c000->0xffffff8002c53fff
[ 4205.644669]:          com.apple.iokit.IONDRVSupport(585.0)[A04873E0-470E-3D5B-B64F-51467022E77A]@0xffffff7fa0aa6000->0xffffff7fa0aaefff
[ 4205.644680]:             dependency: com.apple.iokit.IOGraphicsFamily(585)[010A56CD-1229-3DA1-B6A8-666F37B48F21]@0xffffff7fa0a61000->0xffffff7fa0a8ffff
[ 4205.644691]:             dependency: com.apple.iokit.IOPCIFamily(2.9)[D0F1BFB8-C28E-3E70-891B-73B783189394]@0xffffff8002c2c000->0xffffff8002c53fff
[ 4205.652520]: GFX0-0x1e3-A::_doControl(23) not gated

Backtrace 0xffffff7fa0aa8b34 0xffffff7fa0a757bb 0xffffff7fa0a76464 0xffffff8000a4569e 0xffffff7fa0a859e2 0xffffff8000a4f86b 0xffffff80003a7d81
[ 4205.652536]:       Kernel Extensions in backtrace:
[ 4205.652546]:          com.apple.iokit.IOGraphicsFamily(585.0)[010A56CD-1229-3DA1-B6A8-666F37B48F21]@0xffffff7fa0a61000->0xffffff7fa0a8ffff
[ 4205.652558]:             dependency: com.apple.iokit.IOPCIFamily(2.9)[D0F1BFB8-C28E-3E70-891B-73B783189394]@0xffffff8002c2c000->0xffffff8002c53fff
[ 4205.652582]:          com.apple.iokit.IONDRVSupport(585.0)[A04873E0-470E-3D5B-B64F-51467022E77A]@0xffffff7fa0aa6000->0xffffff7fa0aaefff
[ 4205.652594]:             dependency: com.apple.iokit.IOGraphicsFamily(585)[010A56CD-1229-3DA1-B6A8-666F37B48F21]@0xffffff7fa0a61000->0xffffff7fa0a8ffff
[ 4205.652605]:             dependency: com.apple.iokit.IOPCIFamily(2.9)[D0F1BFB8-C28E-3E70-891B-73B783189394]@0xffffff8002c2c000->0xffffff8002c53fff
[ 4205.660584]: GFX0-0x1e3-A::_doControl(23) not gated

Backtrace 0xffffff7fa0aa8b34 0xffffff7fa0a757bb 0xffffff7fa0a76464 0xffffff8000a4569e 0xffffff7fa0a859e2 0xffffff8000a4f86b 0xffffff80003a7d81
[ 4205.660599]:       Kernel Extensions in backtrace:
[ 4205.660609]:          com.apple.iokit.IOGraphicsFamily(585.0)[010A56CD-1229-3DA1-B6A8-666F37B48F21]@0xffffff7fa0a61000->0xffffff7fa0a8ffff
[ 4205.660622]:             dependency: com.apple.iokit.IOPCIFamily(2.9)[D0F1BFB8-C28E-3E70-891B-73B783189394]@0xffffff8002c2c000->0xffffff8002c53fff
[ 4205.660635]:          com.apple.iokit.IONDRVSupport(585.0)[A04873E0-470E-3D5B-B64F-51467022E77A]@0xffffff7fa0aa6000->0xffffff7fa0aaefff
[ 4205.660646]:             dependency: com.apple.iokit.IOGraphicsFamily(585)[010A56CD-1229-3DA1-B6A8-666F37B48F21]@0xffffff7fa0a61000->0xffffff7fa0a8ffff
[ 4205.660657]:             dependency: com.apple.iokit.IOPCIFamily(2.9)[D0F1BFB8-C28E-3E70-891B-73B783189394]@0xffffff8002c2c000->0xffffff8002c53fff
[ 4205.668580]: GFX0-0x1e3-A::_doControl(23) not gated

Backtrace 0xffffff7fa0aa8b34 0xffffff7fa0a757bb 0xffffff7fa0a76464 0xffffff8000a4569e 0xffffff7fa0a859e2 0xffffff8000a4f86b 0xffffff80003a7d81
[ 4205.668596]:       Kernel Extensions in backtrace:
[ 4205.668606]:          com.apple.iokit.IOGraphicsFamily(585.0)[010A56CD-1229-3DA1-B6A8-666F37B48F21]@0xffffff7fa0a61000->0xffffff7fa0a8ffff
[ 4205.668618]:             dependency: com.apple.iokit.IOPCIFamily(2.9)[D0F1BFB8-C28E-3E70-891B-73B783189394]@0xffffff8002c2c000->0xffffff8002c53fff
[ 4205.668631]:          com.apple.iokit.IONDRVSupport(585.0)[A04873E0-470E-3D5B-B64F-51467022E77A]@0xffffff7fa0aa6000->0xffffff7fa0aaefff
[ 4205.668643]:             dependency: com.apple.iokit.IOGraphicsFamily(585)[010A56CD-1229-3DA1-B6A8-666F37B48F21]@0xffffff7fa0a61000->0xffffff7fa0a8ffff
[ 4205.668653]:             dependency: com.apple.iokit.IOPCIFamily(2.9)[D0F1BFB8-C28E-3E70-891B-73B783189394]@0xffffff8002c2c000->0xffffff8002c53fff
[ 4205.676555]: GFX0-0x1e3-A::_doControl(23) not gated

Backtrace 0xffffff7fa0aa8b34 0xffffff7fa0a757bb 0xffffff7fa0a76464 0xffffff8000a4569e 0xffffff7fa0a859e2 0xffffff8000a4f86b 0xffffff80003a7d81
[ 4205.676571]:       Kernel Extensions in backtrace:
[ 4205.676581]:          com.apple.iokit.IOGraphicsFamily(585.0)[010A56CD-1229-3DA1-B6A8-666F37B48F21]@0xffffff7fa0a61000->0xffffff7fa0a8ffff
[ 4205.676593]:             dependency: com.apple.iokit.IOPCIFamily(2.9)[D0F1BFB8-C28E-3E70-891B-73B783189394]@0xffffff8002c2c000->0xffffff8002c53fff
[ 4205.676606]:          com.apple.iokit.IONDRVSupport(585.0)[A04873E0-470E-3D5B-B64F-51467022E77A]@0xffffff7fa0aa6000->0xffffff7fa0aaefff
[ 4205.676617]:             dependency: com.apple.iokit.IOGraphicsFamily(585)[010A56CD-1229-3DA1-B6A8-666F37B48F21]@0xffffff7fa0a61000->0xffffff7fa0a8ffff
[ 4205.676628]:             dependency: com.apple.iokit.IOPCIFamily(2.9)[D0F1BFB8-C28E-3E70-891B-73B783189394]@0xffffff8002c2c000->0xffffff8002c53fff
[ 4205.684584]: GFX0-0x1e3-A::_doControl(23) not gated

Backtrace 0xffffff7fa0aa8b34 0xffffff7fa0a757bb 0xffffff7fa0a76464 0xffffff8000a4569e 0xffffff7fa0a859e2 0xffffff8000a4f86b 0xffffff80003a7d81
[ 4205.684600]:       Kernel Extensions in backtrace:
[ 4205.684610]:          com.apple.iokit.IOGraphicsFamily(585.0)[010A56CD-1229-3DA1-B6A8-666F37B48F21]@0xffffff7fa0a61000->0xffffff7fa0a8ffff
[ 4205.684623]:             dependency: com.apple.iokit.IOPCIFamily(2.9)[D0F1BFB8-C28E-3E70-891B-73B783189394]@0xffffff8002c2c000->0xffffff8002c53fff
[ 4205.684636]:          com.apple.iokit.IONDRVSupport(585.0)[A04873E0-470E-3D5B-B64F-51467022E77A]@0xffffff7fa0aa6000->0xffffff7fa0aaefff
[ 4205.684647]:             dependency: com.apple.iokit.IOGraphicsFamily(585)[010A56CD-1229-3DA1-B6A8-666F37B48F21]@0xffffff7fa0a61000->0xffffff7fa0a8ffff
[ 4205.684668]:             dependency: com.apple.iokit.IOPCIFamily(2.9)[D0F1BFB8-C28E-3E70-891B-73B783189394]@0xffffff8002c2c000->0xffffff8002c53fff
[ 4205.692644]: GFX0-0x1e3-A::_doControl(23) not gated

Backtrace 0xffffff7fa0aa8b34 0xffffff7fa0a757bb 0xffffff7fa0a76464 0xffffff8000a4569e 0xffffff7fa0a859e2 0xffffff8000a4f86b 0xffffff80003a7d81
[ 4205.692660]:       Kernel Extensions in backtrace:
[ 4205.692670]:          com.apple.iokit.IOGraphicsFamily(585.0)[010A56CD-1229-3DA1-B6A8-666F37B48F21]@0xffffff7fa0a61000->0xffffff7fa0a8ffff
[ 4205.692682]:             dependency: com.apple.iokit.IOPCIFamily(2.9)[D0F1BFB8-C28E-3E70-891B-73B783189394]@0xffffff8002c2c000->0xffffff8002c53fff
[ 4205.692695]:          com.apple.iokit.IONDRVSupport(585.0)[A04873E0-470E-3D5B-B64F-51467022E77A]@0xffffff7fa0aa6000->0xffffff7fa0aaefff
[ 4205.692706]:             dependency: com.apple.iokit.IOGraphicsFamily(585)[010A56CD-1229-3DA1-B6A8-666F37B48F21]@0xffffff7fa0a61000->0xffffff7fa0a8ffff
[ 4205.692717]:             dependency: com.apple.iokit.IOPCIFamily(2.9)[D0F1BFB8-C28E-3E70-891B-73B783189394]@0xffffff8002c2c000->0xffffff8002c53fff
[ 4205.700814]: GFX0-0x1e3-A::_doControl(23) not gated

Backtrace 0xffffff7fa0aa8b34 0xffffff7fa0a757bb 0xffffff7fa0a76464 0xffffff8000a4569e 0xffffff7fa0a859e2 0xffffff8000a4f86b 0xffffff80003a7d81
[ 4205.700830]:       Kernel Extensions in backtrace:
[ 4205.700864]:          com.apple.iokit.IOGraphicsFamily(585.0)[010A56CD-1229-3DA1-B6A8-666F37B48F21]@0xffffff7fa0a61000->0xffffff7fa0a8ffff
[ 4205.700891]:             dependency: com.apple.iokit.IOPCIFamily(2.9)[D0F1BFB8-C28E-3E70-891B-73B783189394]@0xffffff8002c2c000->0xffffff8002c53fff
[ 4205.700918]:          com.apple.iokit.IONDRVSupport(585.0)[A04873E0-470E-3D5B-B64F-51467022E77A]@0xffffff7fa0aa6000->0xffffff7fa0aaefff
[ 4205.700942]:             dependency: com.apple.iokit.IOGraphicsFamily(585)[010A56CD-1229-3DA1-B6A8-666F37B48F21]@0xffffff7fa0a61000->0xffffff7fa0a8ffff
[ 4205.700964]:             dependency: com.apple.iokit.IOPCIFamily(2.9)[D0F1BFB8-C28E-3E70-891B-73B783189394]@0xffffff8002c2c000->0xffffff8002c53fff
[ 4205.708751]: GFX0-0x1e3-A::_doControl(23) not gated

Backtrace 0xffffff7fa0aa8b34 0xffffff7fa0a757bb 0xffffff7fa0a76464 0xffffff8000a4569e 0xffffff7fa0a859e2 0xffffff8000a4f86b 0xffffff80003a7d81
[ 4205.708768]:       Kernel Extensions in backtrace:
[ 4205.708778]:          com.apple.iokit.IOGraphicsFamily(585.0)[010A56CD-1229-3DA1-B6A8-666F37B48F21]@0xffffff7fa0a61000->0xffffff7fa0a8ffff
[ 4205.708790]:             dependency: com.apple.iokit.IOPCIFamily(2.9)[D0F1BFB8-C28E-3E70-891B-73B783189394]@0xffffff8002c2c000->0xffffff8002c53fff
[ 4205.708803]:          com.apple.iokit.IONDRVSupport(585.0)[A04873E0-470E-3D5B-B64F-51467022E77A]@0xffffff7fa0aa6000->0xffffff7fa0aaefff
[ 4205.708815]:             dependency: com.apple.iokit.IOGraphicsFamily(585)[010A56CD-1229-3DA1-B6A8-666F37B48F21]@0xffffff7fa0a61000->0xffffff7fa0a8ffff
[ 4205.708825]:             dependency: com.apple.iokit.IOPCIFamily(2.9)[D0F1BFB8-C28E-3E70-891B-73B783189394]@0xffffff8002c2c000->0xffffff8002c53fff
[ 4206.440467]: 004075.927393 Bluetooth USB Host Controller@14330000: IOUSBHostDevice::forcePowerGated: kPowerStateSuspended timeout 1000ms
[ 4206.440593]: 004075.927523 Bluetooth USB Host Controller@14330000: IOUSBHostDevice::powerStateWillChangeToGated: kPowerStateSuspended
[ 4206.440662]: 004075.927590 Bluetooth USB Host Controller@14330000: IOUSBHostDevice::setPowerStateGated: kPowerStateOn -> kPowerStateSuspended
[ 4206.440674]: 004075.927604 Bluetooth USB Host Controller@14330000: IOUSBHostDevice::setPowerStateGated: suspending pipes
[ 4206.440781]: 004075.927711 Bluetooth USB Host Controller@14330000: IOUSBHostDevice::forcePowerGated: allowing power level to float
[ 4206.440790]: 004075.927719 Bluetooth USB Host Controller@14330000: IOUSBHostDevice::forcePowerGated: kPowerStateSuspended completed with 0x00000000 after 0ms
[ 4206.451047]: 004075.937974 BRCM20702 Hub@14300000: IOUSBHostDevice::powerStateDidChangeToGated: AppleUSB20HubPort@14330000 will permit idling
[ 4206.451082]: 004075.938011 BRCM20702 Hub@14300000: IOUSBHostDevice::updateIdlePolicyGated: IOUSBHostInterface@0 [<ptr>] has an idle policy of 50ms
[ 4206.451092]: 004075.938022 BRCM20702 Hub@14300000: IOUSBHostDevice::updateIdlePolicyGated: consensus idle policy timeout 50ms
[ 4206.506208]: 004075.993134 BRCM20702 Hub@14300000: IOUSBHostDevice::forcePowerGated: kPowerStateSuspended timeout 1000ms
[ 4206.506287]: 004075.993216 BRCM20702 Hub@14300000: IOUSBHostDevice::powerStateWillChangeToGated: kPowerStateSuspended
[ 4206.506333]: 004075.993261 BRCM20702 Hub@14300000: IOUSBHostDevice::setPowerStateGated: kPowerStateOn -> kPowerStateSuspended
[ 4206.506344]: 004075.993274 BRCM20702 Hub@14300000: IOUSBHostDevice::setPowerStateGated: suspending pipes
[ 4206.506408]: 004075.993338 BRCM20702 Hub@14300000: IOUSBHostDevice::forcePowerGated: allowing power level to float
[ 4206.506416]: 004075.993346 BRCM20702 Hub@14300000: IOUSBHostDevice::forcePowerGated: kPowerStateSuspended completed with 0x00000000 after 0ms
[ 4208.282315]: tcp_timers: tcp_output() returned 0 with retransmission timer disabled for 55471 > 80 in state 4, reset timer to 1307

Nothing obvious relating to possible disk issues there. I’m not sure what the Backtrace-messages are about, but that might be a Big Sur thing (I have stayed away from installing Big Sur on my Late 2013 MBP because of initial reports of the installation bricking the hardware).

Thanks. I tried that using the Mac equivalent (Homebrew) but the “cannot import name ‘_imaging’ from 'PIL’error” remains.

Should I uninstall Python and start again?

Googling for that error finds various options that are worth trying. Unfortunately there’s not a lot of Mac experts here.