View Issue Details

IDProjectCategoryView StatusLast Update
0003463Slicer4Core: Scripting (Wrapping, Python)public2017-06-10 08:51
Reporterfelixveysseyre Assigned Tojcfr  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product VersionSlicer 4.3.0 
Target VersionSlicer 4.4.0Fixed in VersionSlicer 4.4.0 
Summary0003463: Error loading python script arguments
Description

I found an issue occurring when loading a Python script at launch of Slicer.

Slicer seems to interpret Python arguments as others Slicer arguments.

Additional Information

For example when I execute the following command line, I have :

/Users/felix/Projects/Slicer-SuperBuild-Debug/Slicer-build/Slicer --disable-builtin-cli-modules --python-script /Users/felix/Projects/LandmarksViewer/Data/ /Users/felix/Projects/LandmarksViewer/inputsFile.txt 500 500


4815162342:LandmarksViewer felix$ ./LandmarksViewer.sh
Number of registered modules: 61
Register compression libraries
TagCacheDatabase not open

TagCacheDatabase verified!

Number of instantiated modules: 61
2013-10-28 09:38:18.095 Slicer[61735:707] invalid drawable
2013-10-28 09:38:18.096 Slicer[61735:707] invalid drawable
When loading module "CropVolume" , the dependency "ResampleScalarVectorDWIVolume" failed to be loaded.
Number of loaded modules: 60
Show module (name): "Welcome"
Warning: In /Users/felix/Projects/Slicer/Libs/MRML/Core/vtkMRMLColorTableStorageNode.cxx, line 211
vtkMRMLColorTableStorageNode (0x7fa8f6530ff0): ReadDataInternal: possibly malformed colour table file:
/Users/felix/Projects/LandmarksViewer/inputsFile.txt.
No RGB values are greater than 1. Valid values are 0-255

"Color" Reader has successfully read the file "/Users/felix/Projects/LandmarksViewer/inputsFile.txt"
Traceback (most recent call last):
File "<string>", line 7, in <module>
IOError: [Errno 21] Is a directory: '/Users/felix/Projects/LandmarksViewer/Data/'

TagsToBeBackported

Activities

jcfr

jcfr

2013-10-28 06:28

administrator   ~0010231

Hint for developer: See qSlicerCoreApplication::handleCommandLineArguments

felixveysseyre

felixveysseyre

2013-10-30 10:36

reporter   ~0010241

Corrected with commit https://github.com/felixveysseyre/Slicer/commit/10ae656d0d2c926098f6452998858d0c3d94e0a2

jcfr

jcfr

2013-10-30 10:54

administrator   ~0010242

Fixed in r22658
See http://viewvc.slicer.org/viewvc.cgi/Slicer4?view=revision&amp;revision=22658

jcfr

jcfr

2014-03-06 05:00

administrator   ~0010884

Closing resolved issues that have not been updated in more than 3 months

jcfr

jcfr

2017-06-07 23:27

administrator   ~0014571

Fix committed to 2145-support-for-installing-extension-from-file branch.

Related Changesets

Slicer: 2145-support-for-installing-extension-from-file 8dfa1ac4

2013-10-30 14:52:27

jcfr

Details Diff
BUG: Ensure python script argument are not loaded as image. Fixes 0003463

Co-authored-by: Jean-Christophe Fillion-Robin <jchris.fillionr@kitware.com>

From: Felix Veysseyre <felix.veysseyre@kitware.com>

git-svn-id: http://svn.slicer.org/Slicer4/trunk@22658 3bd1e089-480b-0410-8dfb-8563597acbee
mod - Base/QTCore/qSlicerCoreApplication.cxx Diff File

Import 2017-06-07 23:51:09: master 8dfa1ac4

2013-10-30 14:52:27

jcfr

Details Diff
BUG: Ensure python script argument are not loaded as image. Fixes 0003463

Co-authored-by: Jean-Christophe Fillion-Robin <jchris.fillionr@kitware.com>

From: Felix Veysseyre <felix.veysseyre@kitware.com>

git-svn-id: http://svn.slicer.org/Slicer4/trunk@22658 3bd1e089-480b-0410-8dfb-8563597acbee
mod - Base/QTCore/qSlicerCoreApplication.cxx Diff File

Issue History

Date Modified Username Field Change
2013-10-28 06:20 felixveysseyre New Issue
2013-10-28 06:20 felixveysseyre Status new => assigned
2013-10-28 06:20 felixveysseyre Assigned To => jcfr
2013-10-28 06:24 jcfr Target Version => Slicer 4.3.2
2013-10-28 06:28 jcfr Note Added: 0010231
2013-10-30 10:36 felixveysseyre Note Added: 0010241
2013-10-30 10:53 jcfr Tag Attached: ToBeBackported
2013-10-30 10:54 jcfr Note Added: 0010242
2013-10-30 10:54 jcfr Status assigned => resolved
2013-10-30 10:54 jcfr Fixed in Version => Slicer 4.3.2
2013-10-30 10:54 jcfr Resolution open => fixed
2014-03-06 05:00 jcfr Note Added: 0010884
2014-03-06 05:01 jcfr Status resolved => closed
2014-03-06 10:16 nicole Target Version Slicer 4.3.2 => Slicer 4.4.0
2014-03-06 10:17 nicole Fixed in Version Slicer 4.3.2 => Slicer 4.4.0
2017-06-07 23:27 jcfr Changeset attached => Slicer 2145-support-for-installing-extension-from-file 8dfa1ac4
2017-06-07 23:27 jcfr Note Added: 0014571
2017-06-10 08:51 jcfr Changeset attached => Slicer master 8dfa1ac4