Different output from Eric and Terminal
Mick Sulley
mick at sulley.info
Thu Jan 19 23:03:27 GMT 2023
Hi Detlev,
I have just noticed that I have different output running code in Eric vs
terminal
This is the code -
#!/usr/bin/python3
import psutil
dat = psutil.sensors_temperatures()
print(f'dat = {dat}')
The output if I run it in Eric -
Python 3.10.6 (main, Nov 14 2022, 16:10:14) [GCC 11.3.0] on DeskMint21
[eric_environment]
>>> dat = {'acpitz': [shwtemp(label='', current=27.8, high=106.0,
critical=106.0), shwtemp(label='', current=29.8, high=106.0,
critical=106.0)], 'coretemp': [shwtemp(label='Package id 0',
current=48.0, high=85.0, critical=105.0), shwtemp(label='Core 0',
current=48.0, high=85.0, critical=105.0), shwtemp(label='Core 1',
current=47.0, high=85.0, critical=105.0), shwtemp(label='Core 2',
current=36.0, high=85.0, critical=105.0), shwtemp(label='Core 3',
current=39.0, high=85.0, critical=105.0)]}
>>>
The output in a terminal -
pi at pi-porch:~/v16_2 $ python3 temp.py
dat = {'cpu_thermal': [shwtemp(label='', current=37.552, high=None,
critical=None)]}
pi at pi-porch:~/v16_2 $
I don't understand why it is different. Is there something wrong or
have I misunderstood something?
Thanks
Mick
More information about the Eric
mailing list