IndexError when monitoring
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Olifant |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
(On desktop PCs) When monitoring is started by clicking on the toolbar button, the following is displayed in the terminal:
Exception in thread Thread-5:
Traceback (most recent call last):
File "/usr/lib/
self.run()
File "/home/
Folder_ACPI = secmod.TrovaInfo()
File "/home/
DEV_alim = os.listdir(
IndexError: list index out of range
Steps to reproduce:
1. Start the python script in a terminal window by changing to the .py directory and typing: python glnew.py
2. Click the first toolbar button, 'Lock' (in the English version; in the Italian version it's 'Blocca').
3. An error message appears in the terminal but the app still runs.
description: | updated |
The cause of this problem, is the lack of files in /proc/acpi/ ac_adapter, on a normal computer.
On a destop pc: ac_adapter/
[pc@fossil ~]$ ls /proc/acpi/
ac_adapter dsdt fadt power_resource thermal_zone
battery embedded_controller fan processor wakeup
button event info sleep
[pc@fossil ~]$ ls /proc/acpi/
[pc@fossil ~]$ ls /proc/acpi/battery/
This program is made to run on a laptop.