thenineteen / Semiology-Visualisation-Tool

Data driven 3D brain visualisation of semiology. Semiology to anatomy translator based on over 4600 patients from 309 peer-reviewed articles.
MIT License
9 stars 6 forks source link

can't load the project #236

Open hamaln opened 1 year ago

hamaln commented 1 year ago

can't load the projects into the program and this is the message I got:

Python 3.9.10 (main, Jan 19 2023, 00:06:32) [MSC v.1930 64 bit (AMD64)] on win32

Loading Slicer RC file [C:/Users/tiger/.slicerrc.py] ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'C:UserstigerDesktopSemiology-Visualisation-Tool-masterSemiology-Visualisation-Tool-masterrequirements.txt'

[notice] A new release of pip available: 22.3 -> 22.3.1 [notice] To update, run: python-real.exe -m pip install --upgrade pip Traceback (most recent call last): File "C:/Users/tiger/Desktop/Semiology-Visualisation-Tool-master/Semiology-Visualisation-Tool-master/slicer/SemiologyVisualisation.py", line 1423, in installRepository import mega_analysis File "C:\Users\tiger\Desktop\Semiology-Visualisation-Tool-master\Semiology-Visualisation-Tool-master\mega_analysis__init__.py", line 2, in from .crosstab.gif_lobes_from_excel_sheets import gif_lobes_from_excel_sheets File "C:\Users\tiger\Desktop\Semiology-Visualisation-Tool-master\Semiology-Visualisation-Tool-master\mega_analysis\crosstab\gif_lobes_from_excel_sheets.py", line 1, in import pandas as pd ModuleNotFoundError: No module named 'pandas'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:/Users/tiger/Desktop/Semiology-Visualisation-Tool-master/Semiology-Visualisation-Tool-master/slicer/SemiologyVisualisation.py", line 99, in setup self.logic.installRepository() File "C:/Users/tiger/Desktop/Semiology-Visualisation-Tool-master/Semiology-Visualisation-Tool-master/slicer/SemiologyVisualisation.py", line 1429, in installRepository slicer.util.pip_install( File "C:\Users\tiger\AppData\Local\NA-MIC\Slicer 5.3.0-2023-01-16\bin\Python\slicer\util.py", line 3586, in pip_install _executePythonModule('pip', args) File "C:\Users\tiger\AppData\Local\NA-MIC\Slicer 5.3.0-2023-01-16\bin\Python\slicer\util.py", line 3548, in _executePythonModule logProcessOutput(proc) File "C:\Users\tiger\AppData\Local\NA-MIC\Slicer 5.3.0-2023-01-16\bin\Python\slicer\util.py", line 3517, in logProcessOutput raise CalledProcessError(retcode, proc.args, output=proc.stdout, stderr=proc.stderr) subprocess.CalledProcessError: Command '['C:/Users/tiger/AppData/Local/NA-MIC/Slicer 5.3.0-2023-01-16/bin/../bin\PythonSlicer.EXE', '-m', 'pip', 'install', '-r', 'C:UserstigerDesktopSemiology-Visualisation-Tool-masterSemiology-Visualisation-Tool-masterrequirements.txt']' returned non-zero exit status 1.

johnthomasphd commented 1 year ago

Same issue!

CompNeural9 commented 1 year ago

Same issue here too

gauerlucas commented 12 months ago

Same issue with Slicer 5.5.0, I've been able to go around the problem after two steps :

  1. (maybe this step is not useful if step 2 and 3 are done before) : Hard-coding the path of the requirements file in line 1425 of SemiologyVisualisation.py, in my case : requirementsPath = 'D:/0_softwares/Semiology-Visualisation-Tool-master/requirements.txt Only doing this was throwing another error saying that pandas module was not found. So I carried on with the following :
  2. Uninstall requirements in the Slicer Python console using : slicer.util.pip_uninstall("matplotlib matplotlib_venn pandas PyYAML seaborn scikit-learn xlrd tqdm colorama openpyxl numpy==1.19.5")
  3. Manually reinstall requirements using : slicer.util.pip_install("matplotlib matplotlib_venn pandas PyYAML seaborn scikit-learn xlrd tqdm colorama openpyxl numpy==1.19.5")
  4. launch SVT

Works well after that ! :)