invesalius / invesalius3

3D medical imaging reconstruction software
https://invesalius.github.io/
GNU General Public License v2.0
622 stars 286 forks source link

Problem with MRIs loading, selecting fiducials and creating markers with invesalius3 on mac #478

Closed giupier95 closed 1 year ago

giupier95 commented 1 year ago

The loading of the resonance happens in a strange way, I attach screen. The software does not allow me to select fiducials and markers on the 3D surface. And if I select them on the sections sometimes the point doesn't match the right position. Also I cannot run it with python or python3 I have to run it necessarily with pythonw, why?

Schermata 2022-11-08 alle 17 20 44 Schermata 2022-11-08 alle 17 04 11
tfmoraes commented 1 year ago

Hi @giupier95. It shows some errors in the terminal? If so, can you paste it here?

About your other question: it's not necessary, I run using python. How did you create your python environment? I recommend you to use the python from homebrew or use something pyenv or asdf.

giupier95 commented 1 year ago

Hi @tfmoraes. In the first picture is terminal screen when I load the .nii file. And then I don't see any other errors. As far as running with python, I can't do that. I attach a screenshot. I created my environment following these instructions https://github.com/invesalius/invesalius3/wiki/Running-InVesalius-3-in-Mac

Schermata 2022-11-09 alle 11 50 48 Schermata 2022-11-09 alle 11 57 45
tfmoraes commented 1 year ago

Please, try to apply this patch:

curl -LO https://gist.githubusercontent.com/tfmoraes/a2fa76426420044df6b4f01afd986d72/raw/21793e1669fab900ec4bfcf7a2aa42be4a04bfa2/test_mac.patch
git apply test_mac.patch
giupier95 commented 1 year ago

Hi @tfmoraes, sorry to be late. I applied this patch, attached you can find my terminal screen.

Schermata 2022-11-13 alle 13 29 26
tfmoraes commented 1 year ago

@giupier95 the patch wasn't applied because you are not at master, or your master is not updated with upstream. Try to clone from upstream:

git clone https://github.com/invesalius/invesalius3.git invesalius3_upstream
cd invesalius3_upstream
python app.py

If the problems you are having are not happening here, so You have to update your master with upstream master. If the problems are happening yet, apply the patch I send before:

curl -LO https://gist.githubusercontent.com/tfmoraes/a2fa76426420044df6b4f01afd986d72/raw/21793e1669fab900ec4bfcf7a2aa42be4a04bfa2/test_mac.patch
git apply test_mac.patch
giupier95 commented 1 year ago

Hi @tfmoraes, sorry for the late. It seems to work. Thank you so much.

vhosouza commented 1 year ago

@tfmoraes , it seems this bug has been fixed, right? Has the patch been applied to the master and the issue can be closed?

tfmoraes commented 1 year ago

@vhosouza closed!