You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi everyone, I was previously able to run the total segmentator but today I am getting an access denied error in the early stages of running.
The final message I get is PermissionError: [WinError 5] Access is denied: 'C:\\Users\\------\\AppData\\Local\\Temp\\tmp3sifet_4\\dicom
All of this code worked perfectly yesterday but today its failing. Ive checked that I have access to that folder and I tried to execute the code under an administrator account but I get the same error.
Any clues?
the full trace back is:
Traceback (most recent call last):
File "C:\Program Files\Python312\Lib\multiprocessing\process.py", line 314, in _bootstrap
self.run()
File "C:\Program Files\Python312\Lib\multiprocessing\process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "c:\Users\-------\OneDrive -------\Research\Splenic Flexure\CT_segment.py", line 8, in foo
totalsegmentator('451617//CT','451617//segments',fast=True)
File "C:\Users\-------\OneDrive -------\Research\Splenic Flexure\.venv\Lib\site-packages\totalsegmentator\python_api.py", line 467, in totalsegmentator
seg_img, ct_img, stats = nnUNet_predict_image(input, output, task_id, model=model, folds=folds,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\-------\OneDrive -------t\Research\Splenic Flexure\.venv\Lib\site-packages\totalsegmentator\nnunet.py", line 341, in nnUNet_predict_image
dcm_to_nifti(file_in, tmp_dir / "dcm" / "converted_dcm.nii.gz", tmp_dir, verbose=verbose)
File "C:\Users\-------\OneDrive -------\Research\Splenic Flexure\.venv\Lib\site-packages\totalsegmentator\dicom_io.py", line 131, in dcm_to_nifti
dicom2nifti.dicom_series_to_nifti(input_path, output_path, reorient_nifti=True)
File "C:\Users\-------0\OneDrive -------\Research\Splenic Flexure\.venv\Lib\site-packages\dicom2nifti\convert_dicom.py", line 86, in dicom_series_to_nifti
shutil.rmtree(temp_directory)
File "C:\Program Files\Python312\Lib\shutil.py", line 781, in rmtree
return _rmtree_unsafe(path, onexc)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python312\Lib\shutil.py", line 629, in _rmtree_unsafe
onexc(os.rmdir, fullname, err)
File "C:\Program Files\Python312\Lib\shutil.py", line 627, in _rmtree_unsafe
os.rmdir(fullname)
PermissionError: [WinError 5] Access is denied: 'C:\\Users\\-------\\AppData\\Local\\Temp\\tmp3sifet_4\\dicom'
The text was updated successfully, but these errors were encountered:
Hi everyone, I was previously able to run the total segmentator but today I am getting an access denied error in the early stages of running.
The final message I get is
PermissionError: [WinError 5] Access is denied: 'C:\\Users\\------\\AppData\\Local\\Temp\\tmp3sifet_4\\dicom
All of this code worked perfectly yesterday but today its failing. Ive checked that I have access to that folder and I tried to execute the code under an administrator account but I get the same error.
Any clues?
the full trace back is:
The text was updated successfully, but these errors were encountered: