workhorsy / py-cpuinfo

A module for getting CPU info with pure Python
MIT License
310 stars 59 forks source link

Doesn't work with pyinstaller #168

Closed kadnass-dz closed 2 years ago

kadnass-dz commented 3 years ago

Doesn't work with pyinstaller can I know what the reason ?

kadnass-dz commented 3 years ago

Sorry, I didn't see this

NOTE: Pyinstaller may spawn infinite processes if main is not used

if name == 'main': from cpuinfo import get_cpu_info from multiprocessing import freeze_support

# NOTE: Pyinstaller also requires freeze_support
freeze_support()
info = get_cpu_info()
print(info)
workhorsy commented 3 years ago

Did it work for you?

workhorsy commented 2 years ago

I'm closing this bug for now. It seems that you have resolved the issue yourself. Feel free to re open it, if you have any more problems. Thanks.