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

Attempting to run the extension after locally building is failing: pandas is missing #2

Open
jcfr opened this issue Aug 16, 2023 · 0 comments

Comments

@jcfr
Copy link

jcfr commented Aug 16, 2023

Steps to reproduce:

Here are the steps to reproduce:

$ extension_src_dir=/tmp/Slicer-ThicknessMap \
  extension_build_dir=/tmp/Slicer-ThicknessMap-build

$ git clone [email protected]:fatihtalu/Slicer-ThicknessMap.git ${extension_src_dir}

$ cmake \
  -DSlicer_DIR:PATH=$Slicer_R_DIR \
  -DCMAKE_BUILD_TYPE:STRING=Release \
  -S ${extension_src_dir} \
  -B ${extension_build_dir}

$ cmake --build ${extension_build_dir} --config Release

Then attempting to run reports the following error:

$ ${extension_build_dir}/SlicerWithThicknessMap 
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/jcfr/Projects/Slicer-Release/python-install/lib/python3.9/imp.py", line 169, in load_source
    module = _exec(spec, sys.modules[name])
  File "<frozen importlib._bootstrap>", line 613, in _exec
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/tmp/Slicer-ThicknessMap-build/lib/Slicer-5.3/qt-scripted-modules/ThicknessMap.py", line 6, in <module>
    import pandas as pd
ModuleNotFoundError: No module named 'pandas'
loadSourceAsModule - Failed to load file "/tmp/Slicer-ThicknessMap-build/lib/Slicer-5.3/qt-scripted-modules/ThicknessMap.py"  as module "ThicknessMap" !
Fail to instantiate module  "ThicknessMap"
The following modules failed to be instantiated:
   ThicknessMap
Switch to module:  "Welcome"

Related issues:

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

1 participant