Different output from Eric and Terminal

Mick Sulley mick at sulley.info
Fri Jan 20 09:12:49 GMT 2023


Yes I think you are right.  I am running Eric on my desktop but the file 
is on a remote Raspberry Pi.  I guess when I run the code in Eric it 
picks up the info from the desktop virtual environment but when I run it 
in a terminal it is looking at the actual environment on the Raspberry Pi.

Thanks for your help :)

Mick

On 20/01/2023 07:45, Detlev Offenbach wrote:
> 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
>>


More information about the Eric mailing list