ardpkg error: TypeError: 'NoneType' object is not subscriptable
This most likely means that a plugin has been installed, but was not fully written to disk before the machine was powered off. This situation generally only arises on Raspberry Pi based systems such as the RESI machines.
To diagnose the issue, run the following commands in REMOTE SHELL:
1
cd /usr/local/lib/ardpkg
2
ls -l *
Copied!
If you see something like the following (notice all the zero-length files), then you have hit the bug and will need to apply the fix described below
1
resi-rtc:
2
total 40
3
-rw-rw-r-- 1 root root 0 Oct 27 08:39 ardexaplugin-2.3.6-py3-none-any.whl
4
-rw-rw-r-- 1 root root 0 Nov 14 10:03 control
5
-rwxr-xr-x 1 root root 0 Nov 12 04:15 install
6
-rw-rw-r-- 1 root root 0 Nov 14 10:03 resi_rtc-2.0.10-py3-none-any.whl
7
-rw-rw-r-- 1 root root 0 Nov 12 03:56 resi_rtc_cron
8
-rw-rw-r-- 1 root root 0 Nov 12 06:03 resi_rtc.service
9
-rwxr-xr-x 1 root root 0 Nov 12 05:40 uninstall
Copied!

Fix

Manually remove the faulty plugins and then reinstall them using MACHINE PLUGINS
1
cd /usr/local/lib/ardpkg
2
rm -rf resi-rtc
Copied!
Repeat the process for all plugins that have all zero-length files
Copy link
Contents
Fix