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

Hello,

I confirm this was an incompatibility of the “Replicate.py” script against Python 3.x. This is now fixed in the mainline:
https://hg.orthanc-server.com/orthanc/rev/844ec5ecb6ef

Sébastien-

Thanks its working, keep up the good work