Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pyinstaller exe with console=False causes pop-up window every time nvidia-smi.exe is called #49

Open
sharon92 opened this issue Nov 15, 2023 · 1 comment

Comments

@sharon92
Copy link

Hello,

Packaging gputil with Pyinstaller (console=False [pythonw.exe]) causes a pop-up window to open every time I want to access GPU stats.

I could suppress it by adding creationflags = subprocess.CREATE_NO_WINDOW in the Popen command.

p = Popen([nvidia_smi,"--query-gpu=index,uuid,utilization.gpu,memory.total,memory.used,memory.free,driver_version,name,gpu_serial,display_active,display_mode,temperature.gpu", "--format=csv,noheader,nounits"], stdout=PIPE)

Maybe it's of interest to future users, so I will leave it here :)

@PycraftDeveloper
Copy link

I have already suggested a similar pull request, maybe this helps? #52 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants