Closed mouadessalim closed 2 years ago
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)
This is exactly what i am looking for ! Thanks.
So basicly i am tring to compile a simple module (py-cpuinfo) with pyinstaller or Cx_freeze with the same issue. It compile correctly but when launching the process, it create a lot of it until my cpu is full.
The weird thing about it is that it's perfecty working in developement mode (python code) When compiling i am using this parameters :
pyinstaller --noconfirm --onedir --console "C:/Users/Mouad/Desktop/Payloads/cookies-grabber/testcpu.py"
Does someone know how to fix this issue ? My CPU: AMD Ryzen 5 2600X Python version: Python 3.9 I am using Windows 10 py-cpuinfo version: 8.0.0