You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
We are unable to "kill" a frame/job from CueGui running on Windows. os.uname() is not available on Windows, we can safely replace it by platform.uname() (tested on Linux and Windows)
To Reproduce
Steps to reproduce the behavior:
Open CueGui on a Windows host
Kill a frame
AttributeError: module 'os' has no attribute 'uname'.
Expected behavior
Same behavior on Windows and Linux.
Version Number
0.35
The text was updated successfully, but these errors were encountered:
**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):
``` python
>>> 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):
``` python
>>> platform.uname()
uname_result(system='Windows', node='StarChaser', release='10', version='10.0.22631', machine='AMD64')
```
Describe the bug
We are unable to "kill" a frame/job from CueGui running on Windows.
os.uname()
is not available on Windows, we can safely replace it byplatform.uname()
(tested on Linux and Windows)To Reproduce
Steps to reproduce the behavior:
AttributeError: module 'os' has no attribute 'uname'.
Expected behavior
Same behavior on Windows and Linux.
Version Number
0.35
The text was updated successfully, but these errors were encountered: