usepat / SW-soniccontrol

A python based lightweight GUI to control and communicate with a SonicAmp
Other
1 stars 0 forks source link

Crossplatform support #16

Open iljag00 opened 2 years ago

iljag00 commented 2 years ago

SonicControl does not function in MacOS (darwin) and Windows 7 environments. Pls fix Would research Docker and maybe work with that. image

Error message on MacOS: 2022-08-27 16:01:43.882 python3[61521:17484185] -[NSApplication macMinorVersion]: unrecognized selector sent to instance 0x7f979ec5a5a0

2022-08-27 16:01:43.889 python3[61521:17484185] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSApplication macMinorVersion]: unrecognized selector sent to instance 0x7f979ec5a5a0'

*** First throw call stack:

(

0 CoreFoundation 0x00007fff4ff3bf3b __exceptionPreprocess + 171

1 libobjc.A.dylib 0x00007fff773f0942 objc_exception_throw + 48

2 CoreFoundation 0x00007fff4ffd3414 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132

3 CoreFoundation 0x00007fff4feb2f03 forwarding + 1443

4 CoreFoundation 0x00007fff4feb28d8 _CF_forwarding_prep_0 + 120

5 libtk8.6.dylib 0x000000010c4d9db9 SetCGColorComponents + 265

6 libtk8.6.dylib 0x000000010c4da67a TkpGetColor + 250

7 libtk8.6.dylib 0x000000010c414aa9 Tk_GetColor + 153

8 libtk8.6.dylib 0x000000010c4048e6 Tk_Get3DBorder + 134

9 libtk8.6.dylib 0x000000010c40474f Tk_Alloc3DBorderFromObj + 127

10 libtk8.6.dylib 0x000000010c415fad DoObjConfig + 941

11 libtk8.6.dylib 0x000000010c415ae5 Tk_InitOptions + 357

12 libtk8.6.dylib 0x000000010c4159c5 Tk_InitOptions + 69

13 libtk8.6.dylib 0x000000010c446b5c CreateFrame + 1548

14 libtk8.6.dylib 0x000000010c446e37 TkListCreateFrame + 151

15 libtk8.6.dylib 0x000000010c43e7f8 Initialize + 2168

16 _tkinter.cpython-38-darwin.so 0x000000010aac165b Tcl_AppInit + 91

17 _tkinter.cpython-38-darwin.so 0x000000010aac131e Tkapp_New + 590

18 _tkinter.cpython-38-darwin.so 0x000000010aac10be _tkinter_create_impl + 222

19 _tkinter.cpython-38-darwin.so 0x000000010aac0ba6 _tkinter_create + 182

20 python3 0x0000000105f2b434 cfunction_vectorcall_FASTCALL + 84

21 python3 0x0000000106004cb8 _PyEval_EvalFrameDefault + 45080

22 python3 0x0000000105ff7ebd _PyEval_EvalCodeWithName + 557

23 python3 0x0000000105ececba _PyFunction_Vectorcall + 426

24 python3 0x0000000105ecdfc9 PyVectorcall_Call + 121

25 python3 0x00000001060055c1 _PyEval_EvalFrameDefault + 47393

26 python3 0x0000000105ff7ebd _PyEval_EvalCodeWithName + 557

27 python3 0x0000000105ececba _PyFunction_Vectorcall + 426

28 python3 0x0000000105ed299e method_vectorcall + 494

29 python3 0x0000000105ecdfc9 PyVectorcall_Call + 121

30 python3 0x00000001060055c1 _PyEval_EvalFrameDefault + 47393

31 python3 0x0000000105ff7ebd _PyEval_EvalCodeWithName + 557

32 python3 0x0000000105ececba _PyFunction_Vectorcall + 426

33 python3 0x0000000105ecd2fd _PyObject_FastCallDict + 93

34 python3 0x0000000105f53d82 slot_tp_init + 178

35 python3 0x0000000105f632cf type_call + 255

36 python3 0x0000000105ecd5f7 _PyObject_MakeTpCall + 167

37 python3 0x0000000106004e1e _PyEval_EvalFrameDefault + 45438

38 python3 0x0000000105ff7ebd _PyEval_EvalCodeWithName + 557

39 python3 0x0000000105ff2db9 builtin_exec + 329

40 python3 0x0000000105f2b434 cfunction_vectorcall_FASTCALL + 84

41 python3 0x0000000105ecdfc9 PyVectorcall_Call + 121

42 python3 0x000000010600571c _PyEval_EvalFrameDefault + 47740

43 python3 0x0000000105ff7ebd _PyEval_EvalCodeWithName + 557

44 python3 0x0000000105ececba _PyFunction_Vectorcall + 426

45 python3 0x0000000106004cb8 _PyEval_EvalFrameDefault + 45080

46 python3 0x0000000105ecec08 _PyFunction_Vectorcall + 248

47 python3 0x0000000106004bc3 _PyEval_EvalFrameDefault + 44835

48 python3 0x0000000105ecec08 _PyFunction_Vectorcall + 248

49 python3 0x0000000106005048 _PyEval_EvalFrameDefault + 45992

50 python3 0x0000000105ecec08 _PyFunction_Vectorcall + 248

51 python3 0x0000000106005048 _PyEval_EvalFrameDefault + 45992

52 python3 0x0000000105ecec08 _PyFunction_Vectorcall + 248

53 python3 0x0000000106005048 _PyEval_EvalFrameDefault + 45992

54 python3 0x0000000105ff7ebd _PyEval_EvalCodeWithName + 557

55 python3 0x0000000105ececba _PyFunction_Vectorcall + 426

56 python3 0x0000000106004cb8 _PyEval_EvalFrameDefault + 45080

57 python3 0x0000000105ff7ebd _PyEval_EvalCodeWithName + 557

58 python3 0x0000000105ececba _PyFunction_Vectorcall + 426

59 python3 0x0000000106005048 _PyEval_EvalFrameDefault + 45992

60 python3 0x0000000105ecec08 _PyFunction_Vectorcall + 248

61 python3 0x0000000106004bc3 _PyEval_EvalFrameDefault + 44835

62 python3 0x0000000105ff7ebd _PyEval_EvalCodeWithName + 557

63 python3 0x0000000105ececba _PyFunction_Vectorcall + 426

64 python3 0x0000000106005048 _PyEval_EvalFrameDefault + 45992

65 python3 0x0000000105ff7ebd _PyEval_EvalCodeWithName + 557

66 python3 0x000000010606ff8f pyrun_file + 271

67 python3 0x000000010606f7ba pyrun_simple_file + 394

68 python3 0x000000010606f5de PyRun_SimpleFileExFlags + 110

69 python3 0x00000001060980bf pymain_run_file + 383

70 python3 0x000000010609774b pymain_run_python + 523

71 python3 0x00000001060974e5 Py_RunMain + 37

72 python3 0x0000000106098bf1 pymain_main + 49

73 python3 0x0000000105ea1328 main + 56

74 libdyld.dylib 0x00007fff7800b015 start + 1

75 ??? 0x0000000000000002 0x0 + 2

iljag00 commented 1 year ago

After some research and setup with macOS. The support for Tkinter GUI's on OS X is limited. Looking for solutions

Trying this for the next steps: https://stackoverflow.com/questions/67250747/cannot-use-tkinter-in-python-3-on-macos https://stackoverflow.com/questions/30031063/nsexception-with-tkinter-on-mac https://bugs.python.org/issue35209