psutil.cpu_freq() is not woking for python3 in amd64 architecture where as same is working for armhf architecture

103 views
Skip to first unread message

shubham....@gmail.com

unread,
May 24, 2019, 9:48:04 AM5/24/19
to psutil
Hello Team,

I am tried to get the cpu freq using psutil.cpu_freq(), but getting error:
"Python 3.5.2 (default, Nov 12 2018, 13:43:14)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import psutil
>>> print (psutil.cpu_freq())
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'psutil' has no attribute 'cpu_freq'
>>> "


Having ::
1- python3
2- Arch - amd64



where as same is working for armhf arch and having python varsion3.
"dev@ssniotr:~$ python3
Python 3.5.2 (default, Nov 12 2018, 13:43:14)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import psutil
>>> print (psutil.cpu_freq())
scpufreq(current=960.0, min=480.0, max=960.0)
>>>
"

Please help me to resolve this issue.
Appreciate your support here.

Thanks,
Shubham Pushpkar

Giampaolo Rodola'

unread,
May 27, 2019, 4:09:45 AM5/27/19
to psu...@googlegroups.com
That means the Linux distro/kernel does not support it.
> --
> You received this message because you are subscribed to the "Python process utilities (psutil)" project group:
> http://code.google.com/p/psutil
> To post to this group, send email to psu...@googlegroups.com
> To unsubscribe from this group, send email to psutil-un...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/psutil
> ---
> You received this message because you are subscribed to the Google Groups "psutil" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to psutil+un...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/psutil/87df9777-3763-49c6-a182-e25bc3e574c4%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
Giampaolo - http://grodola.blogspot.com
Reply all
Reply to author
Forward
0 new messages