psutil
psutil copied to clipboard
Snowflake -- cpu_count() got an unexpected keyword argument 'logical'
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.
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
, ...)?