lincolnloop / python-qrcode

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

AttributeError: 'function' object has no attribute 'make', 'QRCode' #217

Closed imvickykumar999 closed 3 years ago

imvickykumar999 commented 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 !!!

heuer commented 3 years ago

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

maribedran commented 3 years ago

This seems to be answered.