View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003871 | Slicer4 | Core: Scripting (Wrapping, Python) | public | 2014-10-10 06:33 | 2020-03-04 12:02 |
Reporter | pinter | Assigned To | jcfr | ||
Priority | low | Severity | minor | Reproducibility | always |
Status | closed | Resolution | unable to reproduce | ||
Product Version | Slicer 4.3.1-2 | ||||
Target Version | Fixed in Version | ||||
Summary | 0003871: Python error logged for scripted modules that do not have FileIO | ||||
Description | the following error is logged onto the python prompt for many scripted modules (AtlasTests, Charting, etc.): className in these cases is always empty, because it is called with an empty argument for className (see call stack below) from the function qSlicerScriptedLoadableModule::registerIO() like this: It appears for me if I add a setup() method in the python class of a scripted module, in my case the DICOM module. I worked around it by adding a dummy class DICOMFileWriter. Probably we shouldn't log an error if a scripted module doesn't have FileIO capabilities, as it is not an expectation. Also it is strange that the error is logged but doesn't appear. Maybe the interactor is not fully initialized yet? | ||||
Additional Information | Call stack: qSlicerBaseQTCore.dll!qSlicerScriptedFileWriter::setPythonSource(const QString & newPythonSource={...}, const QString & className={...}) Line 161 C++ | ||||
Tags | No tags attached. | ||||
Discussion: http://slicer-devel.65872.n3.nabble.com/Python-error-for-lot-of-scripted-modules-td4032664.html |
|
Not reproducible anymore in recent releases (tested in Slicer-4.11.0-2020-03-01 - revision 28798). |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2014-10-10 06:33 | pinter | New Issue | |
2014-10-10 06:33 | pinter | Status | new => assigned |
2014-10-10 06:33 | pinter | Assigned To | => jcfr |
2014-10-10 06:33 | pinter | Note Added: 0012610 | |
2020-03-04 12:02 | lassoan | Status | assigned => closed |
2020-03-04 12:02 | lassoan | Resolution | open => unable to reproduce |
2020-03-04 12:02 | lassoan | Note Added: 0016331 |