Comment on page
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:
cd /usr/local/lib/ardpkg
ls -l *
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
resi-rtc:
total 40
-rw-rw-r-- 1 root root 0 Oct 27 08:39 ardexaplugin-2.3.6-py3-none-any.whl
-rw-rw-r-- 1 root root 0 Nov 14 10:03 control
-rwxr-xr-x 1 root root 0 Nov 12 04:15 install
-rw-rw-r-- 1 root root 0 Nov 14 10:03 resi_rtc-2.0.10-py3-none-any.whl
-rw-rw-r-- 1 root root 0 Nov 12 03:56 resi_rtc_cron
-rw-rw-r-- 1 root root 0 Nov 12 06:03 resi_rtc.service
-rwxr-xr-x 1 root root 0 Nov 12 05:40 uninstall
Manually remove the faulty plugins and then reinstall them using MACHINE PLUGINS
cd /usr/local/lib/ardpkg
rm -rf resi-rtc
Repeat the process for all plugins that have all zero-length files
Last modified 2yr ago