Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slicer does not find .so file containing vtkKSlice logic #4

Open
ikolesov opened this issue Mar 28, 2013 · 3 comments
Open

Slicer does not find .so file containing vtkKSlice logic #4

ikolesov opened this issue Mar 28, 2013 · 3 comments

Comments

@ikolesov
Copy link
Owner

Why must the library be copied to the Slicer bin directory for slicer to discover it despite having added the original location of the library to the slicers modules path?

@pkarasev3
Copy link

same fail on windows:
'''
Traceback (most recent call last):
File "C:/pieper/s/Slicer-build/lib/Slicer-4.2/qt-scripted-modules/Editor.py", line 34, in init
parent.icon = qt.QIcon("%s/ToolbarEditorToolbox.png" % EditorLib.ICON_DIR)
AttributeError: 'module' object has no attribute 'ICON_DIR'
Traceback (most recent call last):
File "C:/pieper/s/kslice/src/kslice_wrap/build/lib/Slicer-4.2/qt-scripted-modules/KSliceEffect.py", line 8, in
import vtkSlicerKSliceModuleLogicPython
ImportError: No module named vtkSlicerKSliceModuleLogicPython
RuntimeError: qSlicerScriptedLoadableModule::setPythonSource - Failed to load scripted pythonqt module class definition KSliceEffect from C:/pieper/s/kslice/src/kslice_wrap/build/lib/Slicer-4.2/qt-scripted-modules/KSliceEffect.py
'''

@pkarasev3
Copy link

on windows you "must copy lib/Debug/*.dll and *.pyd

@pkarasev3
Copy link

solved: do make install on linux or right click INSTALL project -> project only -> build, and make sure you have the cmake_install_prefix set correctly to ${Slicer_DIR} , takes care of all this crap @ikolesov please confirm for linux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants