Hello!
Thanks for Python script.
Trying it at Debian 11
1.
:~$ /usr/bin/python3 /home/dicom/ArchiveStudiesInTimeRange.py
File "/home/dicom/ArchiveStudiesInTimeRange.py", line 39
print '"%s" is not a valid date!\n' % date
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print('"%s" is not a valid date!\n' % date)?
modified to print('"%s" is not a valid date!\n' % date)
then run and got error 2
2.
:~$ /usr/bin/python3 /home/dicom/ArchiveStudiesInTimeRange.py
http://10.21.25.250:8042/ 20211215 /srv/irpen-synology/
Traceback (most recent call last):
File "/home/dicom/ArchiveStudiesInTimeRange.py", line 27, in <module>
import RestToolbox
ModuleNotFoundError: No module named 'RestToolbox'
run again and got error 3:
3. TypeError: a bytes-like object is required, not 'str'
:~$ /usr/bin/python3 /home/dicom/ArchiveStudiesInTimeRange.py
http://10.21.25.250:8042/ 20211214 20211215 /srv/irpen-synology/
Traceback (most recent call last):
File "/home/dicom/ArchiveStudiesInTimeRange.py", line 87, in <module>
filename = filename.encode('ascii', errors = 'replace').translate(None, r"'\/:*?\"<>|!=").strip()
TypeError: a bytes-like object is required, not 'str'
:(