Different output from Eric and Terminal

Detlev Offenbach detlev at die-offenbachs.de
Fri Jan 20 07:45:07 GMT 2023


Hi,

over here I get identical output. The only passibility I can think of 
is, that the eric terminal uses a different Python environment with a 
different psutil package version than the standard terminal.

Regards,
Detlev

Am 20.01.23 um 00:03 schrieb Mick Sulley:
> 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
>
-- 
Detlev Offenbach
detlev at die-offenbachs.de

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0xBD1F26A5DA8A6150.asc
Type: application/pgp-keys
Size: 660 bytes
Desc: OpenPGP public key
URL: <https://www.riverbankcomputing.com/pipermail/eric/attachments/20230120/22fe8fa2/attachment.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 236 bytes
Desc: OpenPGP digital signature
URL: <https://www.riverbankcomputing.com/pipermail/eric/attachments/20230120/22fe8fa2/attachment.sig>


More information about the Eric mailing list