tkinter package in Python Script node

I have a workflow that will pop out a new window after executed for interacting with a user, I realize this via Python Script Node, import Tkinter package. it works well in Windows OS, but it will make the computer hung on or quit the KNIME analytics platform if executing it in Mac OS.
The workflow looks like this


executing this workflow in Windows OS, there is a new window popout:

I shared this workflow in KNIME Hub, here is the link

Appreciate it if anyone help to fix this problem in Mac OS.

1 Like

Hi Hawk326040,

Could you please upload your knime.log of the KNIME installation on MacOS here? This would simplify diagnostics. Thanks!

Marcel

Hi Marcel,

To get the log file, I deleted the old one, and restarted KNIME, then executed the Python Script node. The following is the content of the new generated log file.

2019-11-25 17:55:13,733 : WARN : ModalContext : : Node : GroupBy : 0:50 : 8 invalid aggregation column(s) found.

2019-11-25 17:59:33,289 : WARN : Thread-11 : : PythonKernel : Python Script (1⇒1) : 0:92 : 2019-11-25 17:59:33.288 python3.7[26189:1075959] CGSTrackingRegionSetIsEnabled returned CG error 268435459

2019-11-25 17:59:33,301 : WARN : Thread-11 : : PythonKernel : Python Script (1⇒1) : 0:92 : 2019-11-25 17:59:33.288 python3.7[26189:1075959] CGSTrackingRegionSetIsEnabled returned CG error 268435459

2019-11-25 17:59:33,301 : WARN : Thread-11 : : PythonKernel : Python Script (1⇒1) : 0:92 : 2019-11-25 17:59:33.288 python3.7[26189:1075959] CGSTrackingRegionSetIsEnabled returned CG error 268435459

2019-11-25 17:59:33,301 : WARN : Thread-11 : : PythonKernel : Python Script (1⇒1) : 0:92 : 2019-11-25 17:59:33.289 python3.7[26189:1075959] CGSTrackingRegionSetIsEnabled returned CG error 268435459

2019-11-25 17:59:33,301 : WARN : Thread-11 : : PythonKernel : Python Script (1⇒1) : 0:92 : 2019-11-25 17:59:33.289 python3.7[26189:1075959] CGSTrackingRegionSetIsEnabled returned CG error 268435459

2019-11-25 17:59:33,301 : WARN : Thread-11 : : PythonKernel : Python Script (1⇒1) : 0:92 : 2019-11-25 17:59:33.289 python3.7[26189:1075959] CGSTrackingRegionSetIsEnabled returned CG error 268435459

2019-11-25 17:59:33,301 : WARN : Thread-11 : : PythonKernel : Python Script (1⇒1) : 0:92 : 2019-11-25 17:59:33.289 python3.7[26189:1075959] CGSTrackingRegionSetIsEnabled returned CG error 268435459

2019-11-25 17:59:33,302 : WARN : Thread-11 : : PythonKernel : Python Script (1⇒1) : 0:92 : 2019-11-25 17:59:33.289 python3.7[26189:1075959] CGSTrackingRegionSetIsEnabled returned CG error 268435459

2019-11-25 17:59:33,302 : WARN : Thread-11 : : PythonKernel : Python Script (1⇒1) : 0:92 : 2019-11-25 17:59:33.289 python3.7[26189:1075959] CGSTrackingRegionSetIsEnabled returned CG error 268435459

2019-11-25 17:59:33,302 : WARN : Thread-11 : : PythonKernel : Python Script (1⇒1) : 0:92 : 2019-11-25 17:59:33.289 python3.7[26189:1075959] CGSTrackingRegionSetIsEnabled returned CG error 268435459

2019-11-25 17:59:33,302 : WARN : Thread-11 : : PythonKernel : Python Script (1⇒1) : 0:92 : 2019-11-25 17:59:33.289 python3.7[26189:1075959] CGSTrackingRegionSetIsEnabled returned CG error 268435459

2019-11-25 17:59:33,302 : WARN : Thread-11 : : PythonKernel : Python Script (1⇒1) : 0:92 : 2019-11-25 17:59:33.289 python3.7[26189:1075959] CGSTrackingRegionSetIsEnabled returned CG error 268435459

2019-11-25 17:59:33,302 : WARN : Thread-11 : : PythonKernel : Python Script (1⇒1) : 0:92 : 2019-11-25 17:59:33.289 python3.7[26189:1075959] CGSTrackingRegionSetIsEnabled returned CG error 268435459

2019-11-25 17:59:33,302 : WARN : Thread-11 : : PythonKernel : Python Script (1⇒1) : 0:92 : 2019-11-25 17:59:33.289 python3.7[26189:1075959] CGSTrackingRegionSetIsEnabled returned CG error 268435459

2019-11-25 17:59:33,302 : WARN : Thread-11 : : PythonKernel : Python Script (1⇒1) : 0:92 : 2019-11-25 17:59:33.289 python3.7[26189:1075959] CGSTrackingRegionSetIsEnabled returned CG error 268435459

2019-11-25 17:59:33,302 : WARN : Thread-11 : : PythonKernel : Python Script (1⇒1) : 0:92 : 2019-11-25 17:59:33.289 python3.7[26189:1075959] CGSTrackingRegionSetIsEnabled returned CG error 268435459

2019-11-25 18:07:58,700 : WARN : ModalContext : : Node : Database Reader (legacy) : 2:110 : Could not determine table spec from database query: ORA-00942: table or view does not exist

2019-11-25 18:07:58,780 : WARN : ModalContext : : Node : GroupBy : 2:50 : 8 invalid aggregation column(s) found.

This seems to be the cause. Some workarounds can be found here: https://bugs.python.org/issue37833 , here: https://github.com/pyinstaller/pyinstaller/issues/4334 and here: https://github.com/JuliaPy/PyPlot.jl/issues/454 .
Unfortunately there is not much else we can do since this seems to be independent of KNIME.

Marcel

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.