Closed imvickykumar999 closed 3 years ago
img = qrcode.QRCode(
AttributeError: 'function' object has no attribute 'QRCode'
img = qrcode.make(data)
AttributeError: 'function' object has no attribute 'make'
...neither of above works in cmd but working in jupyter notebook !!!
Probably you've defined a function which is named "qrcode" in your code. Just rename your function into "make_qrcode" or something like that.
See also #185 for a similar problem
This seems to be answered.
AttributeError: 'function' object has no attribute 'QRCode'
AttributeError: 'function' object has no attribute 'make'
...neither of above works in cmd but working in jupyter notebook !!!