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

Index Error from exe_utils _get_pids_from_name #69

Open
nebukadhezer opened this issue Jul 7, 2023 · 1 comment
Open

Index Error from exe_utils _get_pids_from_name #69

nebukadhezer opened this issue Jul 7, 2023 · 1 comment

Comments

@nebukadhezer
Copy link

nebukadhezer commented Jul 7, 2023

I am getting a lot of

<class 'IndexError'>: list index out of range

Errors when using the is_premiere_running() check.

in exe_utils line 124 onward I changed the current state to this
to overcome the issue that the findall fails and then no index [0] can be pulled.

# parse output lines

lines = output.strip().splitlines()
line = ""
for l in lines:
    if l.lower().startswith(process_name.lower()):
        line += l
return list(map(int, re.findall("   ([0-9]{1,6}) [a-zA-Z]", line)))

I can make a PR if this is wanted.

@nebukadhezer
Copy link
Author

One other addition to this problem.
I realized that when premiere runs under a different user on windows, it will be picked up too...
Is this sth that could be avoided to check for the current user and only use the pids from him ?

Cheers

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

1 participant