Hi community,
I’ve run into a problem with k-means template selection on 2 different mac machines. One is a 2020 MacBook Pro M1, and the second is a 2023 MacBook Pro M3 Max. Working through the tutorial here, I can run steps 1 & 2, generating the reference point cloud, and generating the point clouds for the rest of my samples that match the reference, without error. Everything looks fine.
When I go to the next step called K-means based template selection
, I set my number of templates, my # of iterations, then push the button and nothing happens. Changing the settings doesn’t help. A red stop sign with an error message pops up in the corner. The python console it says:
no package called pandas found
anaconda is built correctly on both computers, and pandas is installed. Error still received.
I found that following the steps outlined in this discourse post from 2019 from @pieper fixes the problem.
Go to the python terminal in Slicer, then:
>>> import os
>>> os.system('PythonSlicer -m pip install pandas')
0
>>> import pandas
(This is @pieper 's work, not mine )
Restart, and everything works like normal! It took me a while to figure out a fix for this. I am hoping that anyone who has this problem will run across this post.
Cheers!