Error with output_dir and temp_dir being the same dir (which imho should be the default for simplicity, or temp a sub of output), but error reason might also be something completely different. Download itself worked after making aws available in path:
`python3 URT.py --dataset BTC_preop --bid --output_dir ../../datasets/ --temp_dir ../../datasets/
07/19/2024 16:45:18 INFO: URT downloader version 2.0.3
07/19/2024 16:45:18 INFO: ----- Starting Initialization -----
07/19/2024 16:45:18 INFO: Initializing dataset no. 1 of 1: BTC_preop
07/19/2024 16:45:18 INFO: Found entry in datasets.yaml. Using "AwsDownloader" for the download
07/19/2024 16:45:18 INFO: ----- Starting Download -----
07/19/2024 16:45:18 INFO: Downloading dataset no. 1 of 1: BTC_preop
07/19/2024 16:45:18 INFO: Downloading BTC_preop from openneuro via AWS s3
07/19/2024 16:49:11 INFO: Done
07/19/2024 16:49:11 INFO: Dataset is already in BIDS format. Nothing to do ...
07/19/2024 16:49:11 INFO: Moving data to output directory ../../datasets
07/19/2024 16:49:11 ERROR: An error occurred during download of collections BTC_preop: [Errno 2] No such file or directory: '../../datasets/BTC_preop_BIDS'
Traceback (most recent call last):
File "/mnt/data/iai/micromamba/envs/URT/lib/python3.11/shutil.py", line 825, in move
os.rename(src, real_dst)
FileNotFoundError: [Errno 2] No such file or directory: '../../datasets/BTC_preop_BIDS' -> '../../datasets/BTC_preop_BIDS'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/mnt/data/iai/URT/URT/URT.py", line 400, in main
downloader.run()
File "/mnt/data/iai/URT/URT/URT.py", line 121, in run
shutil.move(temp_folder, self.root_dir)
File "/mnt/data/iai/micromamba/envs/URT/lib/python3.11/shutil.py", line 845, in move
copy_function(src, real_dst)
File "/mnt/data/iai/micromamba/envs/URT/lib/python3.11/shutil.py", line 436, in copy2
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "/mnt/data/iai/micromamba/envs/URT/lib/python3.11/shutil.py", line 256, in copyfile
with open(src, 'rb') as fsrc:
^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '../../datasets/BTC_preop_BIDS'`
Error with output_dir and temp_dir being the same dir (which imho should be the default for simplicity, or temp a sub of output), but error reason might also be something completely different. Download itself worked after making aws available in path:
`python3 URT.py --dataset BTC_preop --bid --output_dir ../../datasets/ --temp_dir ../../datasets/ 07/19/2024 16:45:18 INFO: URT downloader version 2.0.3 07/19/2024 16:45:18 INFO: ----- Starting Initialization ----- 07/19/2024 16:45:18 INFO: Initializing dataset no. 1 of 1: BTC_preop 07/19/2024 16:45:18 INFO: Found entry in datasets.yaml. Using "AwsDownloader" for the download 07/19/2024 16:45:18 INFO: ----- Starting Download ----- 07/19/2024 16:45:18 INFO: Downloading dataset no. 1 of 1: BTC_preop 07/19/2024 16:45:18 INFO: Downloading BTC_preop from openneuro via AWS s3 07/19/2024 16:49:11 INFO: Done 07/19/2024 16:49:11 INFO: Dataset is already in BIDS format. Nothing to do ... 07/19/2024 16:49:11 INFO: Moving data to output directory ../../datasets 07/19/2024 16:49:11 ERROR: An error occurred during download of collections BTC_preop: [Errno 2] No such file or directory: '../../datasets/BTC_preop_BIDS' Traceback (most recent call last): File "/mnt/data/iai/micromamba/envs/URT/lib/python3.11/shutil.py", line 825, in move os.rename(src, real_dst) FileNotFoundError: [Errno 2] No such file or directory: '../../datasets/BTC_preop_BIDS' -> '../../datasets/BTC_preop_BIDS'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/mnt/data/iai/URT/URT/URT.py", line 400, in main downloader.run() File "/mnt/data/iai/URT/URT/URT.py", line 121, in run shutil.move(temp_folder, self.root_dir) File "/mnt/data/iai/micromamba/envs/URT/lib/python3.11/shutil.py", line 845, in move copy_function(src, real_dst) File "/mnt/data/iai/micromamba/envs/URT/lib/python3.11/shutil.py", line 436, in copy2 copyfile(src, dst, follow_symlinks=follow_symlinks) File "/mnt/data/iai/micromamba/envs/URT/lib/python3.11/shutil.py", line 256, in copyfile with open(src, 'rb') as fsrc: ^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: '../../datasets/BTC_preop_BIDS'`