-
Notifications
You must be signed in to change notification settings - Fork 295
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
Access denied error when running TotalSegmentator #391
Comments
Unfortunately I have no idea what the reason might be. |
run as admin when open pycharm may help |
@nforwood Have you solved your problem? I also encountered a similar problem when running on Windows. |
Not an actual fix to the problem, but the following workaround should work:
finally:
# remove the copied data
shutil.rmtree(temp_directory)
Your TEMP folder will eventually fill up though, so you may want to clean it manually. |
Thank you for your reply! I tried to remove the read-only attribute of the source folder, and then it worked properly.
程辉
***@***.***
签名由 网易灵犀办公 定制
Original:
From:Matias Lavik ***@***.***>Date:2025-03-13 04:18:55(中国 (GMT+08:00))To:wasserth/TotalSegmentator ***@***.***>Cc:chzuhuich ***@***.***> , Comment ***@***.***>Subject:Re: [wasserth/TotalSegmentator] Access denied error when running TotalSegmentator (Issue #391)Not an actual fix to the problem, but the following workaround should work:
Open the file convert_dicom.py (your path from above: C:\Users-------0\OneDrive -------\Research\Splenic Flexure.venv\Lib\site-packages\dicom2nifti\convert_dicom.py) Search for "rmtree" and remove the whole "finally" block where it calls shutil.rmtree(temp_directory) finally:
# remove the copied data
shutil.rmtree(temp_directory)
Run it again.Your TEMP folder will eventually fill up though, so you may want to clean it manually.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
mlavik1 left a comment (wasserth/TotalSegmentator#391)
Not an actual fix to the problem, but the following workaround should work:
Open the file convert_dicom.py (your path from above: C:\Users-------0\OneDrive -------\Research\Splenic Flexure.venv\Lib\site-packages\dicom2nifti\convert_dicom.py) Search for "rmtree" and remove the whole "finally" block where it calls shutil.rmtree(temp_directory) finally:
# remove the copied data
shutil.rmtree(temp_directory)
Run it again.Your TEMP folder will eventually fill up though, so you may want to clean it manually.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: