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.
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!
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.
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’
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
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.
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
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.
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)