Closed baltendo closed 6 years ago
I tried to install and start the tool on mac, but I got 2 errors which I have fixed in a branch.
Unfortunately, I don't have permissions to push the branch.
The first issue is related to a trailing whitespace:
index baef789e..b3964314 100644 --- a/pCO2GUI/src/co2gui/__init__.py +++ b/pCO2GUI/src/co2gui/__init__.py @@ -1393,7 +1393,7 @@ class SimulatePanel(ttk.Frame): frame, text="Dice!", style='DICE.TButton', command=dice_btn_listener) - add_icon(btn, 'icons/to_dice-orange-32.png ') + add_icon(btn, 'icons/to_dice-orange-32.png') btn.pack(side=tk.LEFT, fill=tk.BOTH,)
The second issue is related to an unsupported color 'olive':
index b3964314..71e09b10 100644 --- a/pCO2GUI/src/co2gui/__init__.py +++ b/pCO2GUI/src/co2gui/__init__.py @@ -1932,7 +1932,7 @@ and double-click on the result file to open it, """) textarea = tk.Text(self, font='TkDefaultFont', background='SystemButtonFace', - foreground='olive', + foreground='olive drab', cursor='arrow') textarea.pack(fill=tk.BOTH, expand=1) @@ -2066,7 +2066,7 @@ class TemplatesPanel(ttk.Frame): """) textarea = tk.Text(self, font='TkDefaultFont', background='SystemButtonFace', - foreground='olive', + foreground='olive drab', cursor='arrow') textarea.pack(fill=tk.BOTH, expand=1)
By that I was able to run the application but the UI was kind of incomplete because I didn't see any icons and certain buttons lead to an exception.
2018-10-07 13:20:17.442 python3.7[6500:11357765] CFURLCopyResourcePropertyForKey failed because it was passed an URL which has no scheme 2018-10-07 13:20:17.545 python3.7[6500:11357765] CFURLCopyResourcePropertyForKey failed because it was passed an URL which has no scheme 2018-10-07 13:20:17.557 python3.7[6500:11357765] CFURLCopyResourcePropertyForKey failed because it was passed an URL which has no scheme 2018-10-07 13:20:17.574 python3.7[6500:11357765] CFURLCopyResourcePropertyForKey failed because it was passed an URL which has no scheme 2018-10-07 13:20:19.178 python3.7[6500:11357765] *** Assertion failure in -[_NSCGSWindow setFrame:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/AppKit/AppKit-1561.60.100/CGS.subproj/NSCGSWindow.m:1002 2018-10-07 13:20:19.182 python3.7[6500:11357765] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: CGRectContainsRect(CGRectMake((CGFloat)INT_MIN, (CGFloat)INT_MIN, (CGFloat)INT_MAX - (CGFloat)INT_MIN, (CGFloat)INT_MAX - (CGFloat)INT_MIN), frame)' *** First throw call stack: ( 0 CoreFoundation 0x00007fff4ce242db __exceptionPreprocess + 171 1 libobjc.A.dylib 0x00007fff73fc7c76 objc_exception_throw + 48 2 CoreFoundation 0x00007fff4ce2a072 +[NSException raise:format:arguments:] + 98 3 Foundation 0x00007fff4ef53340 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 193 4 AppKit 0x00007fff4a452f50 -[_NSCGSWindow setFrame:] + 475 5 AppKit 0x00007fff4a50ab07 _NSCreateWindowWithOpaqueShape2 + 248 6 AppKit 0x00007fff4a509763 -[NSWindow _commonAwake] + 1057 7 AppKit 0x00007fff4aeb70e5 -[NSWindow(NSFullScreen) _resolveAutomaticEnterFullScreenFlags] + 51 8 AppKit 0x00007fff4a50917a -[NSWindow makeKeyAndOrderFront:] + 31 9 Tk 0x00007fff5950ae84 XMapWindow + 165 10 Tk 0x00007fff594802f2 Tk_MapWindow + 152 11 Tk 0x00007fff5948856e TkInstallFrameMenu + 271 12 Tcl 0x00007fff5941c882 TclServiceIdle + 75 13 Tcl 0x00007fff59403a76 Tcl_DoOneEvent + 338 14 _tkinter.cpython-37m-darwin.so 0x000000010a09e7ac _tkinter_tkapp_mainloop + 256 15 Python 0x0000000108ce6f42 _PyMethodDef_RawFastCallKeywords + 525 16 Python 0x0000000108ceb81e _PyMethodDescr_FastCallKeywords + 82 17 Python 0x0000000108d7d1a2 call_function + 615 18 Python 0x0000000108d742ec _PyEval_EvalFrameDefault + 2579 19 Python 0x0000000108d7dad1 _PyEval_EvalCodeWithName + 1837 20 Python 0x0000000108ce6474 _PyFunction_FastCallKeywords + 225 21 Python 0x0000000108d7d17a call_function + 575 22 Python 0x0000000108d74305 _PyEval_EvalFrameDefault + 2604 23 Python 0x0000000108ce688e function_code_fastcall + 116 24 Python 0x0000000108d7d17a call_function + 575 25 Python 0x0000000108d742ec _PyEval_EvalFrameDefault + 2579 26 Python 0x0000000108d7dad1 _PyEval_EvalCodeWithName + 1837 27 Python 0x0000000108ce60dd _PyFunction_FastCallDict + 441 28 Python 0x0000000108ce7241 _PyObject_Call_Prepend + 150 29 Python 0x0000000108ce65bd PyObject_Call + 136 30 Python 0x0000000108d74c4e _PyEval_EvalFrameDefault + 4981 31 Python 0x0000000108ce688e function_code_fastcall + 116 32 Python 0x0000000108d7d17a call_function + 575 33 Python 0x0000000108d742ec _PyEval_EvalFrameDefault + 2579 34 Python 0x0000000108d7dad1 _PyEval_EvalCodeWithName + 1837 35 Python 0x0000000108ce6474 _PyFunction_FastCallKeywords + 225 36 Python 0x0000000108d7d17a call_function + 575 37 Python 0x0000000108d74a66 _PyEval_EvalFrameDefault + 4493 38 Python 0x0000000108ce688e function_code_fastcall + 116 39 Python 0x0000000108d7d17a call_function + 575 40 Python 0x0000000108d749a6 _PyEval_EvalFrameDefault + 4301 41 Python 0x0000000108d7dad1 _PyEval_EvalCodeWithName + 1837 42 Python 0x0000000108d73851 PyEval_EvalCode + 42 43 Python 0x0000000108da2a5f run_mod + 54 44 Python 0x0000000108da1a7a PyRun_FileExFlags + 164 45 Python 0x0000000108da1159 PyRun_SimpleFileExFlags + 283 46 Python 0x0000000108db8842 pymain_main + 5114 47 Python 0x0000000108db8fd4 _Py_UnixMain + 104 48 libdyld.dylib 0x00007fff74be1015 start + 1 49 ??? 0x0000000000000002 0x0 + 2 ) libc++abi.dylib: terminating with uncaught exception of type NSException Abort trap: 6
The issue is not of high priority for me, so it is fine if you just don't support mac. Nevertheless I wanted to share my findings.
Sorry but for Mac we are supporting just the command line.
I tried to install and start the tool on mac, but I got 2 errors which I have fixed in a branch.
Unfortunately, I don't have permissions to push the branch.
The first issue is related to a trailing whitespace:
The second issue is related to an unsupported color 'olive':
By that I was able to run the application but the UI was kind of incomplete because I didn't see any icons and certain buttons lead to an exception.
The issue is not of high priority for me, so it is fine if you just don't support mac. Nevertheless I wanted to share my findings.