It is trying to create a QR for version 1 and medium error correction. The length of the string is 18 long, but a string of 20 long should be capable.
However, if the optimize is changed to 0 as in the below code, it passes. I've repeated this for different error correction levels, different QR versions, python versions, and operating systems. I'm able to repeat the issue. It seems that the issue is from within the optimal_data_chunks method.
The below code which uses the default optimize value in the add_data method fails with the error.
It is trying to create a QR for version 1 and medium error correction. The length of the string is 18 long, but a string of 20 long should be capable.
However, if the optimize is changed to 0 as in the below code, it passes. I've repeated this for different error correction levels, different QR versions, python versions, and operating systems. I'm able to repeat the issue. It seems that the issue is from within the
optimal_data_chunks
method.