Pironman 5 not working/terminal error codes

The following codes are showing when I do ANYTHING related to Pironman5 in the terminal, even ‘pironman5 -c’:
“Traceback (most recent call last):
File “/opt/pironman5/venv/bin/pironman5-service”, line 8, in
sys.exit(main())
^^^^^^
File “/opt/pironman5/venv/lib/python3.11/site-packages/pironman5/init.py”, line 8, in main
from .pironman5 import Pironman5
File “/opt/pironman5/venv/lib/python3.11/site-packages/pironman5/pironman5.py”, line 40, in
if get_hat_version() < 11:
^^^^^^^^^^^^^^^^^
File “/opt/pironman5/venv/lib/python3.11/site-packages/pironman5/utils.py”, line 32, in get_hat_version
with open(f”{hat_path}/product_ver", “r”) as f:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: ‘None/product_ver’"

Any assistance would be appreciated. I cannot use any special features of the Pironman5.

UPDATE: Timeline - Everything worked about a week ago. Suddently on a boot one day, the pironman5 command stopped working and now it spits out this error.

Do you have a backup?

I don’t own a pironman, so I can’t directly check, but as far as I can see from the error message, and I may be wrong here, there should be a dir/file in this directory

/proc/device-tree/

With the prefix

hat

Created when the hat is detected

Try
ls /proc/device-tree/hat*

To check

If no luck, hopefully someone with a pironman can be more helpful!

1 Like

Thanks for the informative reply! This is a brand new install. When things stopped working, created a new Rasp Pi install, moved it to my SSD and now the issues are worse lol.

Also that file doesn’t exist for me sadly. Hopefully somebody from Sunfounder can shed some light on this.

Hopefully. Sorry I could not help. If you check out pironmans utils.py you will see the relevant code

1 Like

Same error here:
Fresh new install Raspberry OS Bookworm on Pironman 5.
pironman5.service does not start.
When I try to manually run:
sudo ./pironman5 start

I get:

Traceback (most recent call last):
File “/opt/pironman5/venv/bin/pironman5-service”, line 8, in
sys.exit(main())
^^^^^^
File “/opt/pironman5/venv/lib/python3.11/site-packages/pironman5/init.py”, line 8, in main
from .pironman5 import Pironman5
File “/opt/pironman5/venv/lib/python3.11/site-packages/pironman5/pironman5.py”, line 40, in
if get_hat_version() < 11:
^^^^^^^^^^^^^^^^^
File “/opt/pironman5/venv/lib/python3.11/site-packages/pironman5/utils.py”, line 32, in get_hat_version
with open(f"{hat_path}/product_ver", “r”) as f:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: ‘None/product_ver’

1 Like

Crap. Okay, the issue is with the software then. I beleive a recent update caused the module to break…

Sun founder… Can this be rectified please?

Maybe try a previous release just to get you up and running over the weekend and that would at least verify the issue as a recent sw problem? Should be versions around

I see other new threads e.g

popping up now reporting the same issue.

The issue here is incompatibility with Pironman5 and Bookworm OS. A new patch to Bookworm has broken Pironman5. The only fix I can guess may work is a rollback of bookworm or a patch for Pironman5 by Sunfounder.

Yes, seems to be exactly that. The rpi doesnt appear to be detecting the hat so adds nothing to the device-tree directory. Thereafter pironman can’t proceed.

2 Likes

Sri awaiting a resolution… Pironman 5 features remain unusable…

Due to updates in both the system and Pironman5, some compatibility issues have arisen. We are currently working on fixing these issues, so please give us some time and be patient! We will notify you here once the problems are resolved

1 Like

Wow, you guys are awesome! Thanks for the acknowledgement, now I can rest easy for a while until the fixes arrive.

Currently, the issue has been resolved.
We recommend updating the pironman5 software again with the following commands:

cd pironman5
git pull
sudo python3 install.py

After successfully updating and installing, please restart pironman5 and check if its functions are working properly.

If you still encounter issues, we suggest reinstalling the operating system and then installing the pironman5 software again.

The issue was mostly fixed but I am still getting errors. a FRESH install of both OS and P5 was done.

The new errors I am getting are:
Traceback (most recent call last):
File “/opt/pironman5/venv/bin/pironman5-service”, line 8, in
sys.exit(main())
^^^^^^
File “/opt/pironman5/venv/lib/python3.11/site-packages/pironman5/init.py”, line 194, in main
if get_hat_version() >= 11:
^^^^^^^^^^^^^^^^^^^^^^^
TypeError: ‘>=’ not supported between instances of ‘NoneType’ and ‘int’

Any help would be appreciated. I am using 64 Bit Bookworm with desktop.

Also the OLED appears to not be detected…

Here is the full terminal code when I use “Sudo pironman5 restart”

sudo pironman5 restart
24/12/03 18:48:03.758 [DEBUG] Initializing OLED
24/12/03 18:48:03.823 [DEBUG] Update temperature_unit to C
24/12/03 18:48:03.823 [DEBUG] Update oled_enable to True
24/12/03 18:48:03.823 [DEBUG] Update oled_rotation to 0
24/12/03 18:48:03.823 [DEBUG] Update oled_disk to total
24/12/03 18:48:03.823 [DEBUG] Update oled_network_interface to all
24/12/03 18:48:03.823 [DEBUG] OLED initialized
24/12/03 18:48:03.824 [DEBUG] Update LED count: 4
24/12/03 18:48:03.824 [DEBUG] Update LED count: 4
24/12/03 18:48:03.824 [DEBUG] Update RGB enable: True
24/12/03 18:48:03.824 [DEBUG] Update RGB enable: True
24/12/03 18:48:03.824 [DEBUG] Update RGB color: #0a1aff
24/12/03 18:48:03.824 [DEBUG] Update RGB color: [10, 26, 255]
24/12/03 18:48:03.824 [DEBUG] Update RGB brightness: 50
24/12/03 18:48:03.824 [DEBUG] Update RGB brightness: 50
24/12/03 18:48:03.824 [DEBUG] Update RGB speed: 50 AKA 50
24/12/03 18:48:03.824 [DEBUG] Update RGB style: breathing
24/12/03 18:48:03.824 [DEBUG] Update RGB style: breathing
24/12/03 18:48:03.826 [ERROR] Failed to initialize WS2812: /dev/spidev0.0 does not exist
24/12/03 18:48:03.826 [ERROR] Failed to initialize WS2812
24/12/03 18:48:03.826 [DEBUG] FanControl init
24/12/03 18:48:03.826 [DEBUG] FAN update_config: {‘rgb_color’: ‘#0a1aff’, ‘rgb_brightness’: 50, ‘rgb_style’: ‘breathing’, ‘rgb_speed’: 50, ‘rgb_enable’: True, ‘rgb_led_count’: 4, ‘temperature_unit’: ‘C’, ‘oled_enable’: True, ‘oled_rotation’: 0, ‘oled_disk’: ‘total’, ‘oled_network_interface’: ‘all’, ‘gpio_fan_pin’: 6, ‘gpio_fan_mode’: 2, ‘gpio_fan_led’: ‘follow’, ‘gpio_fan_led_pin’: 5}
24/12/03 18:48:03.826 [DEBUG] Update gpio_fan_pin to 6
24/12/03 18:48:03.826 [DEBUG] Update gpio_fan_mode to 2
24/12/03 18:48:03.826 [DEBUG] Update gpio_fan_led to follow
24/12/03 18:48:03.826 [DEBUG] Update gpio_fan_led_pin to 5
24/12/03 18:48:03.826 [DEBUG] Init GPIO Fan with pin: 6
24/12/03 18:48:03.888 [DEBUG] Init PWM Fan
24/12/03 18:48:03.904 [INFO] SPC peripheral disabled
24/12/03 18:48:04.015 [DEBUG] OLED Close
24/12/03 18:48:04.016 [DEBUG] GPIO Fan closed
24/12/03 18:48:04.016 [DEBUG] PWM Fan closed
24/12/03 18:48:04.016 [DEBUG] FanControl closed
24/12/03 18:48:04.016 [INFO] PM Auto Stop
24/12/03 18:48:04.016 [INFO] Dashboard Server stopped
Traceback (most recent call last):
File “/opt/pironman5/venv/bin/pironman5-service”, line 8, in
sys.exit(main())
^^^^^^
File “/opt/pironman5/venv/lib/python3.11/site-packages/pironman5/init.py”, line 194, in main
if get_hat_version() >= 11:
^^^^^^^^^^^^^^^^^^^^^^^
TypeError: ‘>=’ not supported between instances of ‘NoneType’ and ‘int’

Please test the reinstallation now and see how it works.

Thank you for taking time to check the aboved installation method we provided earlier.

1 Like

I just performed a reinstall and now I am getting this error message. Seems to be the same message as before…

sudo pironman5
Traceback (most recent call last):
File “/opt/pironman5/venv/bin/pironman5-service”, line 8, in
sys.exit(main())
^^^^^^
File “/opt/pironman5/venv/lib/python3.11/site-packages/pironman5/init.py”, line 8, in main
from .pironman5 import Pironman5
File “/opt/pironman5/venv/lib/python3.11/site-packages/pironman5/pironman5.py”, line 40, in
if get_hat_version() < 11:
^^^^^^^^^^^^^^^^^
File “/opt/pironman5/venv/lib/python3.11/site-packages/pironman5/utils.py”, line 37, in get_hat_version
with open(f"{hat_path}/product_ver", “r”) as f:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: ‘None/product_ver’

What system are you currently using and what is the system version?
If it is a bookworm system with desktop, it is now fully compatible with the pironman5 software.
We recommend that you reinstall your system and then install the pironman5 software.
Please provide us with a screenshot of the process of downloading and installing the pironman5 software.

Raspberry Pi OS 64Bit Bookworm with Desktop. The same as a few others on this forum. I will reinstall system tonight and test again but I do believe there still are issues in the code as I am getting that error. That error is the same as the initial one (hat not being detected) (as @Spf650 stated previously)

This is getting frustrating now. NEW INSTALL of OS and Pironman5. No dice. This error shows on ALL AND ANY COMMANDS relating to Pironman5