# Pironman 5 Pro Max Install Fails - Hardware Variant Detection Failure

**URL:** <https://forum.sunfounder.com/t/pironman-5-pro-max-install-fails-hardware-variant-detection-failure/4478>\
**Category:** Accessories for Raspberry Pi and Arduino\
**Created:** [March 16, 2026, 10:32pm UTC](https://forum.sunfounder.com/t/pironman-5-pro-max-install-fails-hardware-variant-detection-failure/4478 "2026-03-16T22:32:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![morriskr](https://avatars.discourse-cdn.com/v4/letter/m/9d8465/32.png) [@morriskr](https://forum.sunfounder.com/u/morriskr)\
**Post date:** [March 16, 2026, 10:32pm UTC](https://forum.sunfounder.com/t/pironman-5-pro-max-install-fails-hardware-variant-detection-failure/4478/1 "2026-03-16T22:32:12Z")

</div>

I am attempting to run a Python script on a Raspberry PI 5. The software is at [https://gethub.com/sunfounder/pironman5.git](https://gethub.com/sunfounder/pironman5.git) -depth 1. The error message is

Traceback (most recent call last):  
File “/home/pi/pironman5/install.py”, line 6, in  
from pironman5.variants import NAME, DT\_OVERLAYS, PERIPHERALS, VARIANTS  
File “/home/pi/pironman5/pironman5/variants/ **init**.py”, line 119, in  
NAME = VARIENT.NAME  
^^^^^^^^^^^^  
AttributeError: ‘NoneType’ object has no attribute ‘NAME’  
pi@raspberry5:~/pironman5 $

There is a typo in the code: VARIENT (misspelled) instead of VARIANT.

Running this line patches the code, allowing the script to continue with my device type of “0316” assigned to Pironman5Max. BUT, I have a Pro Max.

sed -i ‘s/elif variant\_id == “0308”:/elif variant\_id == “0316”:\n return Pironman5Max\n elif variant\_id == “0308”:/’  
~/pironman5/pironman5/variants/ **init**.py

After running this line, the installer works. This code finds the device ID:

python3 -c "  
import os  
hat\_path = ‘/proc/device-tree/hat\_type1’  
for fname in [‘product\_id’, ‘product\_ver’, ‘product’, ‘vendor’, ‘uuid’]:  
fpath = f’{hat\_path}/{fname}’  
if os.path.exists(fpath):  
with open(fpath, ‘rb’) as f:  
raw = f.read()  
print(f’{fname}: raw={raw} hex={raw.hex()}')  
"

variant ID “0316”

version “V10”

product: Piroman 5 Pro Max

After all this - no LEDs or screen. The local website works - [http://localhost:34001](http://localhost:34001)

---

<div class="post-metadata">

**Author:** ![SunFounder\_Moderator](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@SunFounder\_Moderator](https://forum.sunfounder.com/u/SunFounder_Moderator)\
**Post date:** [March 17, 2026, 9:05am UTC](https://forum.sunfounder.com/t/pironman-5-pro-max-install-fails-hardware-variant-detection-failure/4478/2 "2026-03-17T09:05:49Z")

</div>

Thank you for providing such detailed troubleshooting information. This is very helpful for us to confirm the issue.

Based on the logs you provided and the reading result of /proc/device-tree/hat\_type1, your device information is:  
variant ID: 0316  
version: V10  
product: Pironman 5 Pro Max

It is possible that you have installed the incorrect version of the pironman5 software. Please uninstall pironman5 using the following commands:

cd ~/pironman5  
sudo python3 install.py --uninstall  
cd ~/  
sudo rm -rf pironman5

Then reinstall it:

cd ~  
git clone -b pro-max [GitHub - sunfounder/pironman5: Code for Raspberry Pi 5 case (Pironman5) · GitHub](https://github.com/sunfounder/pironman5.git) --depth 1  
cd ~/pironman5  
sudo python3 install.py
