lincolnloop / python-qrcode

Python QR Code image generator
https://pypi.python.org/pypi/qrcode
Other
4.36k stars 666 forks source link

use ERROR_CORRECT_H data 2k qrcode.exceptions.DataOverflowError #176

Closed hktalent closed 5 years ago

hktalent commented 5 years ago

174 #102

Traceback (most recent call last):
  File "myqrcode.py", line 61, in <module>
    qr.make(fit=True)
  File "/usr/local/lib/python3.7/site-packages/qrcode/main.py", line 93, in make
    self.best_fit(start=self.version)
  File "/usr/local/lib/python3.7/site-packages/qrcode/main.py", line 165, in best_fit
    raise exceptions.DataOverflowError()
qrcode.exceptions.DataOverflowError
hktalent commented 5 years ago

@see https://blog.qr4.nl/page/QR-Code-Data-Capacity.aspx