Skip to content

Flashing console when running exe packaged by pyinstaller #8420

Answered by rokm
WISHF-Amoy asked this question in Help
Discussion options

You must be logged in to vote

Sounds like your code (or the 3rd party code you are using) is spawning subprocesses with programs/command that require console. And since the parent application does not have a console, each such subprocesses opens their own console. If you are using ultralytics yolov8 on CPU, then this device auto-selection codepath might be the culprit:

https://github.com/ultralytics/ultralytics/blob/911a0edd2d1b47c28e1eef657859dbb9bcffb13f/ultralytics/utils/torch_utils.py#L164
https://github.com/ultralytics/ultralytics/blob/911a0edd2d1b47c28e1eef657859dbb9bcffb13f/ultralytics/utils/torch_utils.py#L73

It ends up using cpuinfo.get_cpu_info, which seems to do several subprocess calls, e.g. to wmi on Wind…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@WISHF-Amoy
Comment options

Answer selected by WISHF-Amoy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants