New Power Software fail

The new software update failed to install after notification stated success.
Deleted device.
Added new device.
No data.
Hardware now out of date.
Software now out of date.
Error message during install:
Updating system package index…

Creating Sixfab root directory on /opt…

Directory already exists.

Enabling i2c…

I2C enabled.

Looking for dependencies…

Updating python api for agent…

Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-req-build-f2k6yedf/

Python api installed.

Installing agent dependencies from PyPI…

Environment file exists, updated token.

Agent already installed, restarting…

After multiple OS installs, HAT on and HAT off, something worked.
I removed the UPS and reinstalled raspbian. I did not update the OS. I installed the HAT and proceeded to create a new device. At first the device did not appear online but soon afterwards it did and with the new software update indicated 3.0. Whew! I don’t know what went wrong in the first place but it started with the new software update not saving.