py-cpuinfo module not working correctly when compiling using pyinstaller or Cx_freeze

Viewed 34

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.

#testcpu.py
from cpuinfo import get_cpu_info
print(get_cpu_info())

My cpu usage after launching the program

The weird thing about it is that it's perfecty working in developement mode (python code) When launching with python 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 ?

1 Answers
Related