Skip to content

Conversation

@KernAttila
Copy link
Contributor

@KernAttila KernAttila commented Sep 29, 2024

Link the Issue(s) this Pull Request is related to.
Fixes: #1519

Summarize your change.
Use platform.uname() instead of os.uname(). They have the same result on Linux, but os.uname() is not available on Windows, making us unable to kill a job from this OS.

Additional information.
Linux (ubuntu 22.04.6):

>>> os.uname()
posix.uname_result(sysname='Linux', nodename='titan', release='6.8.0-45-generic', version='#45~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Sep 11 15:25:05 UTC 2', machine='x86_64')
>>>platform.uname()
uname_result(system='Linux', node='titan', release='6.8.0-45-generic', version='#45~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Sep 11 15:25:05 UTC 2', machine='x86_64')

Windows (11):

>>> platform.uname()
uname_result(system='Windows', node='StarChaser', release='10', version='10.0.22631', machine='AMD64')

…esult on Linux, but os.uname() is not available on Windows, making us unable to kill a job from this OS.
@KernAttila KernAttila changed the title Kill a Job from CueGui running on Windows. [cuegui] Kill a Job from Windows. Sep 29, 2024
@DiegoTavares DiegoTavares merged commit 8f7f23c into AcademySoftwareFoundation:master Oct 1, 2024
@KernAttila KernAttila deleted the cuegui-kill-job-windows branch October 1, 2024 21:56
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

Successfully merging this pull request may close these issues.

Can't kill a job from CueGui if running on Windows

2 participants