View Issue Details

IDProjectCategoryView StatusLast Update
0004556Slicer4Core: Packagingpublic2018-05-23 11:10
Reportercquammen Assigned Tojcfr  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product VersionSlicer 4.9.0 
Target VersionSlicer 4.9.0Fixed in VersionSlicer 4.9.0 
Summary0004556: PYTHONPATH in SlicerPythonLauncherSettings.ini needs additional paths to import vtk in SlicerPython
Description

When running scripts that 'import vtk' via SlicerPython, vtk cannot be found. It seems an additional entry under the [PYTHONPATH] section of SlicerPythonLauncherSettings.ini requires an additional entry to make this possible. The additional entry is different on each operating system, which I have listed below. Note the addition of the fifth item at the end of each list - items 1-4 are unmodified.

macOS

[PYTHONPATH]
1\path=<APPLAUNCHER_DIR>/../lib/Python/lib/Python/lib/python2.7
2\path=<APPLAUNCHER_DIR>/../lib/Python/lib/Python/lib/python2.7/lib-dynload
3\path=<APPLAUNCHER_DIR>/../lib/Python/lib/Python/lib/python2.7/site-packages
4\path=<APPLAUNCHER_DIR>/../bin/Python
5\path=<APPLAUNCHER_DIR>/../lib/Slicer-4.9/
size=5

Linux

[PYTHONPATH]
1\path=<APPLAUNCHER_DIR>/../lib/Python/lib/Python/lib/python2.7
2\path=<APPLAUNCHER_DIR>/../lib/Python/lib/Python/lib/python2.7/lib-dynload
3\path=<APPLAUNCHER_DIR>/../lib/Python/lib/Python/lib/python2.7/site-packages
4\path=<APPLAUNCHER_DIR>/../bin/Python
5\path=<APPLAUNCHER_DIR>/../lib/Slicer-4.9/python2.7/site-packages
size=5

Windows

[PYTHONPATH]
1\path=<APPLAUNCHER_DIR>/../lib/Python/lib/Python/lib/python2.7
2\path=<APPLAUNCHER_DIR>/../lib/Python/lib/Python/lib/python2.7/lib-dynload
3\path=<APPLAUNCHER_DIR>/../lib/Python/lib/Python/lib/python2.7/site-packages
4\path=<APPLAUNCHER_DIR>/../bin/Python
5\path=<APPLAUNCHER_DIR>/../bin/Lib/site-packages
size=5

TagsNo tags attached.

Relationships

related to 0004553 closedjcfr SlicerPython does not launch with packaged SlicerPythonLauncherSettings.ini configuration 
related to 0004554 closedjcfr rpath not set for macOS binaries in 4.9.0 

Activities

jcfr

jcfr

2018-05-23 05:25

administrator   ~0015726

See pull request submitted by @cquammen https://github.com/Slicer/Slicer/pull/947

jcfr

jcfr

2018-05-23 05:26

administrator   ~0015727

Expected behavior was implemented in r27198
See http://viewvc.slicer.org/viewvc.cgi/Slicer4?view=revision&amp;revision=27198

cquammen

cquammen

2018-05-23 11:03

developer   ~0015729

I have confirmed that this has been fixed on mac, linux, and windows.

Issue History

Date Modified Username Field Change
2018-05-15 17:40 cquammen New Issue
2018-05-15 17:40 cquammen Status new => assigned
2018-05-15 17:40 cquammen Assigned To => jcfr
2018-05-15 17:55 jcfr Status assigned => acknowledged
2018-05-15 17:55 jcfr Status acknowledged => assigned
2018-05-23 04:13 jcfr Relationship added related to 0004553
2018-05-23 05:24 jcfr Relationship added related to 0004554
2018-05-23 05:25 jcfr Note Added: 0015726
2018-05-23 05:26 jcfr Status assigned => resolved
2018-05-23 05:26 jcfr Resolution open => fixed
2018-05-23 05:26 jcfr Fixed in Version => Slicer 4.9.0
2018-05-23 05:26 jcfr Note Added: 0015727
2018-05-23 11:03 cquammen Note Added: 0015729
2018-05-23 11:10 jcfr Status resolved => closed