View Revisions: Issue #4597

Summary 0004597: Python crash creating user interface for EMSegmenter with Atlas
Revision 2018-08-11 13:33 by shinister
Description

When starting the "EMSegmenter with Atlas" module, using the "MRI Human Brain Parcellation" task, "Advanced" mode; and going to the final pre-processing next step the Python module crashes with the following output in Python Interactor:

Python 2.7.13 (default, Aug 9 2018, 23:06:55)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] on darwin

<p>Status: <i>Idle</i>
<b>File already exists in cache - reusing it.</b>
<b>Requesting load</b> <i>MRHead</i> from /var/folders/lx/30ztklx91wq6znjsg3tjb7zh0000gn/T/Slicer/RemoteIO/MR-head.nrrd...
<b>Load finished</b>
[EMSegmentPy 08/11/2018 13:23:46]: Added to List Task: 'CT Hand Bone' File : '/var/folders/lx/30ztklx91wq6znjsg3tjb7zh0000gn/T/Slicer/EMSegmentTaskCopy/CT-Hand-Bone.mrml'
[EMSegmentPy 08/11/2018 13:23:46]: Added to List Task: 'MRI Human Brain Full Parcellation' File : '/var/folders/lx/30ztklx91wq6znjsg3tjb7zh0000gn/T/Slicer/EMSegmentTaskCopy/MRI-Human-Brain-Full-Parcellation.mrml'
[EMSegmentPy 08/11/2018 13:23:46]: Added to List Task: 'MRI Human Brain Hemisphere' File : '/var/folders/lx/30ztklx91wq6znjsg3tjb7zh0000gn/T/Slicer/EMSegmentTaskCopy/MRI-Human-Brain-Hemisphere.mrml'
[EMSegmentPy 08/11/2018 13:23:46]: Added to List Task: 'MRI Human Brain Parcellation' File : '/var/folders/lx/30ztklx91wq6znjsg3tjb7zh0000gn/T/Slicer/EMSegmentTaskCopy/MRI-Human-Brain-Parcellation.mrml'
[EMSegmentPy 08/11/2018 13:23:46]: Added to List Task: 'MRI Human Brain' File : '/var/folders/lx/30ztklx91wq6znjsg3tjb7zh0000gn/T/Slicer/EMSegmentTaskCopy/MRI-Human-Brain.mrml'
[EMSegmentPy 08/11/2018 13:23:46]: Added to List Task: 'Non Human Primate' File : '/var/folders/lx/30ztklx91wq6znjsg3tjb7zh0000gn/T/Slicer/EMSegmentTaskCopy/Non-Human-Primate.mrml'
[EMSegmentPy 08/11/2018 13:23:53]: Attempting to load task 'MRI Human Brain Parcellation' from file '/var/folders/lx/30ztklx91wq6znjsg3tjb7zh0000gn/T/Slicer/EMSegmentTaskCopy/MRI-Human-Brain-Parcellation.mrml'
[EMSegmentPy 08/11/2018 13:23:59]: Loading completed.
Error executing __tpycl_result = slicer.string()
(<type 'exceptions.TypeError'>, TypeError("'module' object is not callable",), <traceback object at 0x11d7f1908>)

...

Traceback (most recent call last):
File "/Applications/Slicer.app/Contents/lib/Slicer-4.9/qt-loadable-modules/Python/EMSegmentWizard/EMSegmentDefineInputChannelsStep.py", line 169, in onExit
if int( returnValue ) != 0:
TypeError: int() argument must be a string or a number, not 'NoneType'

Revision 2018-08-11 13:31 by shinister
Description

When starting the "EMSegmenter with Atlas" module, using the "MRI Human Brain" task (or any of the other Human Brain tasks), "Simple" mode (or advanced mode) and going to the next step, the Python module crashes with the following output in Python Interactor:

Python 2.7.13 (default, Aug 9 2018, 23:06:55)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] on darwin

<p>Status: <i>Idle</i>
<b>File already exists in cache - reusing it.</b>
<b>Requesting load</b> <i>MRHead</i> from /var/folders/lx/30ztklx91wq6znjsg3tjb7zh0000gn/T/Slicer/RemoteIO/MR-head.nrrd...
<b>Load finished</b>
[EMSegmentPy 08/11/2018 13:23:46]: Added to List Task: 'CT Hand Bone' File : '/var/folders/lx/30ztklx91wq6znjsg3tjb7zh0000gn/T/Slicer/EMSegmentTaskCopy/CT-Hand-Bone.mrml'
[EMSegmentPy 08/11/2018 13:23:46]: Added to List Task: 'MRI Human Brain Full Parcellation' File : '/var/folders/lx/30ztklx91wq6znjsg3tjb7zh0000gn/T/Slicer/EMSegmentTaskCopy/MRI-Human-Brain-Full-Parcellation.mrml'
[EMSegmentPy 08/11/2018 13:23:46]: Added to List Task: 'MRI Human Brain Hemisphere' File : '/var/folders/lx/30ztklx91wq6znjsg3tjb7zh0000gn/T/Slicer/EMSegmentTaskCopy/MRI-Human-Brain-Hemisphere.mrml'
[EMSegmentPy 08/11/2018 13:23:46]: Added to List Task: 'MRI Human Brain Parcellation' File : '/var/folders/lx/30ztklx91wq6znjsg3tjb7zh0000gn/T/Slicer/EMSegmentTaskCopy/MRI-Human-Brain-Parcellation.mrml'
[EMSegmentPy 08/11/2018 13:23:46]: Added to List Task: 'MRI Human Brain' File : '/var/folders/lx/30ztklx91wq6znjsg3tjb7zh0000gn/T/Slicer/EMSegmentTaskCopy/MRI-Human-Brain.mrml'
[EMSegmentPy 08/11/2018 13:23:46]: Added to List Task: 'Non Human Primate' File : '/var/folders/lx/30ztklx91wq6znjsg3tjb7zh0000gn/T/Slicer/EMSegmentTaskCopy/Non-Human-Primate.mrml'
[EMSegmentPy 08/11/2018 13:23:53]: Attempting to load task 'MRI Human Brain Parcellation' from file '/var/folders/lx/30ztklx91wq6znjsg3tjb7zh0000gn/T/Slicer/EMSegmentTaskCopy/MRI-Human-Brain-Parcellation.mrml'
[EMSegmentPy 08/11/2018 13:23:59]: Loading completed.
Error executing __tpycl_result = slicer.string()
(<type 'exceptions.TypeError'>, TypeError("'module' object is not callable",), <traceback object at 0x11d7f1908>)

...

Traceback (most recent call last):
File "/Applications/Slicer.app/Contents/lib/Slicer-4.9/qt-loadable-modules/Python/EMSegmentWizard/EMSegmentDefineInputChannelsStep.py", line 169, in onExit
if int( returnValue ) != 0:
TypeError: int() argument must be a string or a number, not 'NoneType'

Revision 2018-08-11 13:30 by shinister
Description

When starting the "EMSegmenter with Atlas" module, using the "MRI Human Brain" task (or any of the other Human Brain tasks), "Simple" mode (or advanced mode) and going to the next step, the Python module crashes with the following output in Python Interactor:

"
Python 2.7.13 (default, Aug 9 2018, 23:06:55)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] on darwin

<p>Status: <i>Idle</i>
<b>File already exists in cache - reusing it.</b>
<b>Requesting load</b> <i>MRHead</i> from /var/folders/lx/30ztklx91wq6znjsg3tjb7zh0000gn/T/Slicer/RemoteIO/MR-head.nrrd...
<b>Load finished</b>
[EMSegmentPy 08/11/2018 13:23:46]: Added to List Task: 'CT Hand Bone' File : '/var/folders/lx/30ztklx91wq6znjsg3tjb7zh0000gn/T/Slicer/EMSegmentTaskCopy/CT-Hand-Bone.mrml'
[EMSegmentPy 08/11/2018 13:23:46]: Added to List Task: 'MRI Human Brain Full Parcellation' File : '/var/folders/lx/30ztklx91wq6znjsg3tjb7zh0000gn/T/Slicer/EMSegmentTaskCopy/MRI-Human-Brain-Full-Parcellation.mrml'
[EMSegmentPy 08/11/2018 13:23:46]: Added to List Task: 'MRI Human Brain Hemisphere' File : '/var/folders/lx/30ztklx91wq6znjsg3tjb7zh0000gn/T/Slicer/EMSegmentTaskCopy/MRI-Human-Brain-Hemisphere.mrml'
[EMSegmentPy 08/11/2018 13:23:46]: Added to List Task: 'MRI Human Brain Parcellation' File : '/var/folders/lx/30ztklx91wq6znjsg3tjb7zh0000gn/T/Slicer/EMSegmentTaskCopy/MRI-Human-Brain-Parcellation.mrml'
[EMSegmentPy 08/11/2018 13:23:46]: Added to List Task: 'MRI Human Brain' File : '/var/folders/lx/30ztklx91wq6znjsg3tjb7zh0000gn/T/Slicer/EMSegmentTaskCopy/MRI-Human-Brain.mrml'
[EMSegmentPy 08/11/2018 13:23:46]: Added to List Task: 'Non Human Primate' File : '/var/folders/lx/30ztklx91wq6znjsg3tjb7zh0000gn/T/Slicer/EMSegmentTaskCopy/Non-Human-Primate.mrml'
[EMSegmentPy 08/11/2018 13:23:53]: Attempting to load task 'MRI Human Brain Parcellation' from file '/var/folders/lx/30ztklx91wq6znjsg3tjb7zh0000gn/T/Slicer/EMSegmentTaskCopy/MRI-Human-Brain-Parcellation.mrml'
[EMSegmentPy 08/11/2018 13:23:59]: Loading completed.
Error executing __tpycl_result = slicer.string()
(<type 'exceptions.TypeError'>, TypeError("'module' object is not callable",), <traceback object at 0x11d7f1908>)

while executing

"py_eval "$pyConstructor()""
(procedure "tpycl::instantiator" line 19)
invoked from within
"tpycl::instantiator string slicer.string $args"
(procedure "string" line 1)
invoked from within
"string match ::* $cmd"
(procedure "auto_qualify" line 14)
invoked from within
"auto_qualify $cmd $namespace"
(procedure "auto_load" line 7)
invoked from within
"auto_load $name [uplevel 1 {::namespace current}]"
(autoloading "::tcl::tm::UnknownHandler")
(procedure "::unknown" line 22)
invoked from within
"::tcl::tm::UnknownHandler {::tcl::MacOSXPkgUnknown ::tclPkgUnknown} Itcl 0-"
("package unknown" script)
invoked from within
"::tpycl::tcl_package require Itcl"
("eval" body line 1)
invoked from within
"eval ::tpycl::tcl_package $option $args"
(procedure "package" line 10)
invoked from within
"package require Itcl"
(file "/var/folders/lx/30ztklx91wq6znjsg3tjb7zh0000gn/T/Slicer/EMSegmentTaskCopy/GenericTask.tcl" line 1)
invoked from within
"source "/var/folders/lx/30ztklx91wq6znjsg3tjb7zh0000gn/T/Slicer/EMSegmentTaskCopy/GenericTask.tcl""
Error executing __tpycl_result = slicer.string()
(<type 'exceptions.TypeError'>, TypeError("'module' object is not callable",), <traceback object at 0x11d7f1a70>)

while executing

"py_eval "$pyConstructor()""
(procedure "tpycl::instantiator" line 19)
invoked from within
"tpycl::instantiator string slicer.string $args"
(procedure "string" line 1)
invoked from within
"string match ::* $cmd"
(procedure "auto_qualify" line 14)
invoked from within
"auto_qualify $cmd $namespace"
(procedure "auto_load" line 7)
invoked from within
"auto_load $name [uplevel 1 {::namespace current}]"
(autoloading "::tcl::tm::UnknownHandler")
(procedure "::unknown" line 22)
invoked from within
"::tcl::tm::UnknownHandler {::tcl::MacOSXPkgUnknown ::tclPkgUnknown} Itcl 0-"
("package unknown" script)
invoked from within
"::tpycl::tcl_package require Itcl"
("eval" body line 1)
invoked from within
"eval ::tpycl::tcl_package $option $args"
(procedure "package" line 10)
invoked from within
"package require Itcl"
(file "/var/folders/lx/30ztklx91wq6znjsg3tjb7zh0000gn/T/Slicer/EMSegmentTaskCopy/MRI-Human-Brain-Parcellation.tcl" line 1)
invoked from within
"source "/var/folders/lx/30ztklx91wq6znjsg3tjb7zh0000gn/T/Slicer/EMSegmentTaskCopy/MRI-Human-Brain-Parcellation.tcl""
Error executing __tpycl_result = slicer.string()
(<type 'exceptions.TypeError'>, TypeError("'module' object is not callable",), <traceback object at 0x11d7f1bd8>)

while executing

"py_eval "$pyConstructor()""
(procedure "tpycl::instantiator" line 19)
invoked from within
"tpycl::instantiator string slicer.string $args"
(procedure "string" line 1)
invoked from within
"string match ::* $cmd"
(procedure "auto_qualify" line 14)
invoked from within
"auto_qualify $cmd $namespace"
(procedure "auto_load" line 7)
invoked from within
"auto_load $name [uplevel 1 {::namespace current}]"
(autoloading "::EMSegmenterSimpleTcl::ShowCheckList")
(procedure "::unknown" line 22)
invoked from within
"::EMSegmenterSimpleTcl::ShowCheckList lxbNuyKK"
Error executing __tpycl_result = slicer.string()
(<type 'exceptions.TypeError'>, TypeError("'module' object is not callable",), <traceback object at 0x11d7f1d88>)

while executing

"py_eval "$pyConstructor()""
(procedure "tpycl::instantiator" line 19)
invoked from within
"tpycl::instantiator string slicer.string $args"
(procedure "string" line 1)
invoked from within
"string match ::* $cmd"
(procedure "auto_qualify" line 14)
invoked from within
"auto_qualify $cmd $namespace"
(procedure "auto_load" line 7)
invoked from within
"auto_load $name [uplevel 1 {::namespace current}]"
(autoloading "::EMSegmenterSimpleTcl::ValidateCheckList")
(procedure "::unknown" line 22)
invoked from within
"::EMSegmenterSimpleTcl::ValidateCheckList"
Traceback (most recent call last):
File "/Applications/Slicer.app/Contents/lib/Slicer-4.9/qt-loadable-modules/Python/EMSegmentWizard/EMSegmentDefineInputChannelsStep.py", line 169, in onExit
if int( returnValue ) != 0:
TypeError: int() argument must be a string or a number, not 'NoneType'

"

Revision 2018-08-11 13:30 by shinister
Description

When starting the "EMSegmenter with Atlas" module, using the "MRI Human Brain" task (or any of the other Human Brain tasks), "Simple" mode (or advanced mode) and going to the next step, the Python module crashes with the following output in Python Interactor:

Python 2.7.13 (default, Aug 9 2018, 23:06:55)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] on darwin

<p>Status: <i>Idle</i>
<b>File already exists in cache - reusing it.</b>
<b>Requesting load</b> <i>MRHead</i> from /var/folders/lx/30ztklx91wq6znjsg3tjb7zh0000gn/T/Slicer/RemoteIO/MR-head.nrrd...
<b>Load finished</b>
[EMSegmentPy 08/11/2018 13:23:46]: Added to List Task: 'CT Hand Bone' File : '/var/folders/lx/30ztklx91wq6znjsg3tjb7zh0000gn/T/Slicer/EMSegmentTaskCopy/CT-Hand-Bone.mrml'
[EMSegmentPy 08/11/2018 13:23:46]: Added to List Task: 'MRI Human Brain Full Parcellation' File : '/var/folders/lx/30ztklx91wq6znjsg3tjb7zh0000gn/T/Slicer/EMSegmentTaskCopy/MRI-Human-Brain-Full-Parcellation.mrml'
[EMSegmentPy 08/11/2018 13:23:46]: Added to List Task: 'MRI Human Brain Hemisphere' File : '/var/folders/lx/30ztklx91wq6znjsg3tjb7zh0000gn/T/Slicer/EMSegmentTaskCopy/MRI-Human-Brain-Hemisphere.mrml'
[EMSegmentPy 08/11/2018 13:23:46]: Added to List Task: 'MRI Human Brain Parcellation' File : '/var/folders/lx/30ztklx91wq6znjsg3tjb7zh0000gn/T/Slicer/EMSegmentTaskCopy/MRI-Human-Brain-Parcellation.mrml'
[EMSegmentPy 08/11/2018 13:23:46]: Added to List Task: 'MRI Human Brain' File : '/var/folders/lx/30ztklx91wq6znjsg3tjb7zh0000gn/T/Slicer/EMSegmentTaskCopy/MRI-Human-Brain.mrml'
[EMSegmentPy 08/11/2018 13:23:46]: Added to List Task: 'Non Human Primate' File : '/var/folders/lx/30ztklx91wq6znjsg3tjb7zh0000gn/T/Slicer/EMSegmentTaskCopy/Non-Human-Primate.mrml'
[EMSegmentPy 08/11/2018 13:23:53]: Attempting to load task 'MRI Human Brain Parcellation' from file '/var/folders/lx/30ztklx91wq6znjsg3tjb7zh0000gn/T/Slicer/EMSegmentTaskCopy/MRI-Human-Brain-Parcellation.mrml'
[EMSegmentPy 08/11/2018 13:23:59]: Loading completed.
Error executing __tpycl_result = slicer.string()
(<type 'exceptions.TypeError'>, TypeError("'module' object is not callable",), <traceback object at 0x11d7f1908>)

while executing

"py_eval "$pyConstructor()""
(procedure "tpycl::instantiator" line 19)
invoked from within
"tpycl::instantiator string slicer.string $args"
(procedure "string" line 1)
invoked from within
"string match ::* $cmd"
(procedure "auto_qualify" line 14)
invoked from within
"auto_qualify $cmd $namespace"
(procedure "auto_load" line 7)
invoked from within
"auto_load $name [uplevel 1 {::namespace current}]"
(autoloading "::tcl::tm::UnknownHandler")
(procedure "::unknown" line 22)
invoked from within
"::tcl::tm::UnknownHandler {::tcl::MacOSXPkgUnknown ::tclPkgUnknown} Itcl 0-"
("package unknown" script)
invoked from within
"::tpycl::tcl_package require Itcl"
("eval" body line 1)
invoked from within
"eval ::tpycl::tcl_package $option $args"
(procedure "package" line 10)
invoked from within
"package require Itcl"
(file "/var/folders/lx/30ztklx91wq6znjsg3tjb7zh0000gn/T/Slicer/EMSegmentTaskCopy/GenericTask.tcl" line 1)
invoked from within
"source "/var/folders/lx/30ztklx91wq6znjsg3tjb7zh0000gn/T/Slicer/EMSegmentTaskCopy/GenericTask.tcl""
Error executing __tpycl_result = slicer.string()
(<type 'exceptions.TypeError'>, TypeError("'module' object is not callable",), <traceback object at 0x11d7f1a70>)

while executing

"py_eval "$pyConstructor()""
(procedure "tpycl::instantiator" line 19)
invoked from within
"tpycl::instantiator string slicer.string $args"
(procedure "string" line 1)
invoked from within
"string match ::* $cmd"
(procedure "auto_qualify" line 14)
invoked from within
"auto_qualify $cmd $namespace"
(procedure "auto_load" line 7)
invoked from within
"auto_load $name [uplevel 1 {::namespace current}]"
(autoloading "::tcl::tm::UnknownHandler")
(procedure "::unknown" line 22)
invoked from within
"::tcl::tm::UnknownHandler {::tcl::MacOSXPkgUnknown ::tclPkgUnknown} Itcl 0-"
("package unknown" script)
invoked from within
"::tpycl::tcl_package require Itcl"
("eval" body line 1)
invoked from within
"eval ::tpycl::tcl_package $option $args"
(procedure "package" line 10)
invoked from within
"package require Itcl"
(file "/var/folders/lx/30ztklx91wq6znjsg3tjb7zh0000gn/T/Slicer/EMSegmentTaskCopy/MRI-Human-Brain-Parcellation.tcl" line 1)
invoked from within
"source "/var/folders/lx/30ztklx91wq6znjsg3tjb7zh0000gn/T/Slicer/EMSegmentTaskCopy/MRI-Human-Brain-Parcellation.tcl""
Error executing __tpycl_result = slicer.string()
(<type 'exceptions.TypeError'>, TypeError("'module' object is not callable",), <traceback object at 0x11d7f1bd8>)

while executing

"py_eval "$pyConstructor()""
(procedure "tpycl::instantiator" line 19)
invoked from within
"tpycl::instantiator string slicer.string $args"
(procedure "string" line 1)
invoked from within
"string match ::* $cmd"
(procedure "auto_qualify" line 14)
invoked from within
"auto_qualify $cmd $namespace"
(procedure "auto_load" line 7)
invoked from within
"auto_load $name [uplevel 1 {::namespace current}]"
(autoloading "::EMSegmenterSimpleTcl::ShowCheckList")
(procedure "::unknown" line 22)
invoked from within
"::EMSegmenterSimpleTcl::ShowCheckList lxbNuyKK"
Error executing __tpycl_result = slicer.string()
(<type 'exceptions.TypeError'>, TypeError("'module' object is not callable",), <traceback object at 0x11d7f1d88>)

while executing

"py_eval "$pyConstructor()""
(procedure "tpycl::instantiator" line 19)
invoked from within
"tpycl::instantiator string slicer.string $args"
(procedure "string" line 1)
invoked from within
"string match ::* $cmd"
(procedure "auto_qualify" line 14)
invoked from within
"auto_qualify $cmd $namespace"
(procedure "auto_load" line 7)
invoked from within
"auto_load $name [uplevel 1 {::namespace current}]"
(autoloading "::EMSegmenterSimpleTcl::ValidateCheckList")
(procedure "::unknown" line 22)
invoked from within
"::EMSegmenterSimpleTcl::ValidateCheckList"
Traceback (most recent call last):
File "/Applications/Slicer.app/Contents/lib/Slicer-4.9/qt-loadable-modules/Python/EMSegmentWizard/EMSegmentDefineInputChannelsStep.py", line 169, in onExit
if int( returnValue ) != 0:
TypeError: int() argument must be a string or a number, not 'NoneType'