psutil icon indicating copy to clipboard operation
psutil copied to clipboard

Snowflake -- cpu_count() got an unexpected keyword argument 'logical'

Open wishshi opened this issue 1 year ago • 1 comments

Summary

  • Psutil version: 5.9.0
  • Python version: { python3.8 - 3.10 }

Description

Try to build a procedure with statement "psutil.cpu_count(logical=False)" and got error message:

TypeError: cpu_count() got an unexpected keyword argument 'logical'

BTW, without augument, cpu_count() return -1 on Snowflake.

wishshi avatar Aug 01 '23 21:08 wishshi

That is strange. In 5.9.0 psutil.cpu_count() has the argument. And it checks for value < 0 and replaces it with None.

What does os.cpu_count() return? (no argument supported)

What is Snowflake? The cloud service on snowflake . com ? Any more information about the platform (uname -a, ...)?

SimonHeimberg avatar Aug 22 '23 17:08 SimonHeimberg