Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

need to update psutil usage for psutil 3.0+ API #139

Closed
mperrin opened this issue Jan 21, 2016 · 0 comments
Closed

need to update psutil usage for psutil 3.0+ API #139

mperrin opened this issue Jan 21, 2016 · 0 comments
Labels
Milestone

Comments

@mperrin
Copy link
Owner

mperrin commented Jan 21, 2016

Anand sent an error report of the following:

     if recommendation > psutil.NUM_CPUS: recommendation = psutil.NUM_CPUS
E       AttributeError: 'module' object has no attribute 'NUM_CPUS'

Turns out the psutil.NUM_CPUS syntax was deprecated and was removed in psutil ≥ 3.0. See http://grodola.blogspot.com/2015/06/psutil-30.html

We need to update poppy to use psutil.cpu_count() instead. Luckily this syntax is sufficiently back compatible to work for anyone who still has psutil 2 installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant