Error when running replication script

I get the following error when running the replication script found here here

does any one know how to solve it, i am not familiar with python

G:>python http://localhost:8042/ http://orthanc:orthanc@
Sending study 76f75288-534d420a-38971d7f-ffc1141b-7a51f093…
Traceback (most recent call last):
File “G:\”, line 192, in
DoPostDicom(‘%s/instances’ % TARGET, dicom)
File “G:\”, line 140, in DoPostDicom
headers = CreateHeaders(parsedUrl)
File “G:\”, line 96, in CreateHeaders
headers[‘authorization’] = 'Basic ’ + base64.b64encode(username + ‘:’ + password)
File “C:\Users\Iggins\AppData\Local\Programs\Python\Python39\lib\”, line 58, in b64encode
encoded = binascii.b2a_base64(s, newline=False)
TypeError: a bytes-like object is required, not ‘str’


I confirm this was an incompatibility of the “” script against Python 3.x. This is now fixed in the mainline:


Thanks its working, keep up the good work