Plastimatch contains a wide variety of features. We only enable building of the core radiation therapy features.
It is not buried at all but nicely linked into Slicer modules and a few command-line applications (as far as I remember, statically). You can run command-line applications using Slicer launcher, without starting the Slicer application GUI.
@lassoan I didnât mean to be snide with my âburiedâ comment; I just meant located somewhere in the internal file structure.
Based on the previous discussion with @pieper, I was under the impression that since I am running on Mac OS, that the Slicer launcher wouldnât work as anticipated? Or is this meant to be resolved when I upgrade to a more recent build?
No, this wouldnât have changed - for mac we donât use the installer because there are constraints about how apps need to be structured (e.g. to allow for signing the binaries). The open question is how environments are shared between Slicer and PythonSlicer - maybe thereâs a fix such that PythonSlicer can import the same packages without needing the launcher.
These installation technicalities are definitely not something I have any real knowledge of. But yes, I agree that your proposed fix would indeed be nice, if possible.
PythonSlicer inherits settings from the ini file of Slicer, starting from 4.10.2 or so. @jcfr why do you think there could be a difference between Slicer and PythonSlicer on Mac?
On MacOS, Slicer.app (or the executable found in Slicer.app/Contents/MacOS) is not a launcher but the actual executable. That said, env. variables are read from a launcher settings file (to be consistent across platform).
PythonSlicer on all platform (including macOS) are inheriting settings from SlicerLauncherSettings.ini
What make you think it is not the case ? What would be a small example to reproduce the problem ?
ok good, needed to make sure I eliminated any issues between chair and keyboard.
here are a couple of the attempts. I havenât tried with konsole as I donât have a kde environment close by.
~/tools/Slicer-4.11.0-2020-08-12-linux-amd64/Slicer --launch gnome-terminal
Failed to import the site module
Traceback (most recent call last):
File "/home/sansomk/tools/Slicer-4.11.0-2020-08-12-linux-amd64/bin/../lib/Python/lib/python3.6/site.py", line 553, in <module>
main()
File "/home/sansomk/tools/Slicer-4.11.0-2020-08-12-linux-amd64/bin/../lib/Python/lib/python3.6/site.py", line 539, in main
known_paths = addusersitepackages(known_paths)
File "/home/sansomk/tools/Slicer-4.11.0-2020-08-12-linux-amd64/bin/../lib/Python/lib/python3.6/site.py", line 282, in addusersitepackages
user_site = getusersitepackages()
File "/home/sansomk/tools/Slicer-4.11.0-2020-08-12-linux-amd64/bin/../lib/Python/lib/python3.6/site.py", line 258, in getusersitepackages
user_base = getuserbase() # this will also set USER_BASE
File "/home/sansomk/tools/Slicer-4.11.0-2020-08-12-linux-amd64/bin/../lib/Python/lib/python3.6/site.py", line 248, in getuserbase
USER_BASE = get_config_var('userbase')
File "/home/sansomk/tools/Slicer-4.11.0-2020-08-12-linux-amd64/lib/Python/lib/python3.6/sysconfig.py", line 601, in get_config_var
return get_config_vars().get(name)
File "/home/sansomk/tools/Slicer-4.11.0-2020-08-12-linux-amd64/lib/Python/lib/python3.6/sysconfig.py", line 550, in get_config_vars
_init_posix(_CONFIG_VARS)
File "/home/sansomk/tools/Slicer-4.11.0-2020-08-12-linux-amd64/lib/Python/lib/python3.6/sysconfig.py", line 421, in _init_posix
_temp = __import__(name, globals(), locals(), ['build_time_vars'], 0)
ModuleNotFoundError: No module named '_sysconfigdata_m_linux_x86_64-linux-gnu