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

Extension has problems with python dependencies #28

Closed
bpaniagua opened this issue Nov 6, 2018 · 4 comments
Closed

Extension has problems with python dependencies #28

bpaniagua opened this issue Nov 6, 2018 · 4 comments

Comments

@bpaniagua
Copy link

Hi @lopezmt @juanprietob

I installed manually sklearn and scipy for the SVA extension downloaded from the extension manager in Ubuntu 16.04. The extension fails to install some python libraries.

Here is the message:
Traceback (most recent call last):
File "", line 1, in
File "/home/bpaniagua/.config/NA-MIC/Extensions-27534/ShapeVariationAnalyzer/lib/Slicer-4.11/qt-scripted-modules/ShapeVariationAnalyzer.py", line 24, in
import shapepcalib as shapca

Could you please look into that?
Thanks,
Bea

@juanprietob
Copy link
Contributor

This commit solves the issue of including the library shapepca
004014a

@bpaniagua
Copy link
Author

Thank you for this quick fix. The module now works and loads. There is a remaining error message when Slicer starts:
"RuntimeError: qSlicerScriptedLoadableModule::setPythonSource - Failed to load scripted loadable module: class shapepcalib was not found in file /home/bpaniagua/.config/NA-MIC/Extensions-27539/ShapeVariationAnalyzer/lib/Slicer-4.11/qt-scripted-modules/shapepcalib.py"

Here is how I try to use SVA:

  1. Download latest Slicer nightly (in this case the one compiled on 11-11-2018)
  2. Manually install sklearn and scipy via ./Slicer --launch bin/python-real -m pip install scikit-learn
    That command works (Successfully installed scikit-learn-0.20.0 scipy-1.1.0)

@lopezmt
Copy link
Contributor

lopezmt commented Nov 14, 2018 via email

@bpaniagua
Copy link
Author

@lopezmt 👍 will try asap

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

3 participants