Skip to content

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

@sharon92

Description

@sharon92

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 :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions