Create my own QR code

Hi Allan, I realise this is an old thread, but I have been trying to generate QR codes in Python but ODK never reads them and says the image does not contain QR information (it does). How did you get yours to work? Example code below:

settings = {"general": {"protocol": "google_sheets","constraint_behavior": "on_finalize"},"admin": {"edit_saved": False}}
userSettings = json.dumps(settings)
qr_data = zlib.compress(userSettings)
myCode = qr.add_data(qr_data)
qr.make(fit=True)
img = qr.make_image(fill_color="black", back_color="white")
img.save("test.png","PNG")

Any pointers would be really useful, thanks.

Joe