The Wayback Machine - https://web.archive.org/web/20250601222919/https://github.com/python/cpython/issues/100191
Skip to content

Software executed using subprocess.Popen() or os.system() may encounter errors due to DLLs. #100191

Open
@nozomichi00

Description

@nozomichi00

Bug report

The following two lines of code execute the software, but the software fails midway due to a missing DLL: "Failed to execute 'regsvr32 /s CommonEvent.dll'".

subprocess.Popen('C:\\BackUp\Backup.exe', shell=True)

os.system('C:\\BackUp\Backup.exe')

擷取
When manually executing C:\BackUp\Backup.exe, the program runs and completes its task without issue. I have looked for a solution but have not been able to find the cause of the problem. I would appreciate any help.

Your environment

OS: Windows10
Python 3.11.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions