giampaolo / psutil

Cross-platform lib for process and system monitoring in Python
BSD 3-Clause "New" or "Revised" License
10.11k stars 1.37k forks source link

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

Open wishshi opened 11 months ago

wishshi commented 11 months ago

Summary

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.

SimonHeimberg commented 11 months ago

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, ...)?