lincolnloop / python-qrcode

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

AttributeError: module 'qrcode' has no attribute 'make' #185

Closed Go-Code-Ren closed 3 years ago

Go-Code-Ren commented 4 years ago

Error while running a basic program such as that given in the module documentation.

heuer commented 4 years ago

A code example would be helpful

I guess you're doing something wrong

Works here:

>>> import qrcode
>>> img = qrcode.make('test')
>>> img
<qrcode.image.pil.PilImage object at 0x7f6504239128>
Aishwarya19966 commented 4 years ago

Probably its path issue Try it on the windows command prompt it works fine for me

gokulbhaveshjoshi commented 4 years ago

Attribute error: qrcode has no module make()

sumit-kushwah commented 4 years ago

For me, I have changed my filename from qrcode to another name

Aishwarya19966 commented 4 years ago

Yeah exactly don't keep the file name as qrcode.py please change it other name

wesley9090980 commented 4 years ago

yes it really works just change you filename qrcode.py to another name

cyjaysun commented 3 years ago

don't keep the file name as qrcode.py it works !

PromitiArshi commented 3 years ago

For me, this error appears inside the docker. Works fine outside. How do I solve that?

Brahmjot09 commented 3 years ago

For me, I have changed my filename from qrcode to another name

and I am guessing why this works ...:grin:

Sohaib-radi commented 3 years ago

I just delete an app named qrcode and this works ... oooohaaaa 💯

JaksonCasas19 commented 3 years ago

I also had a problem when running the qr pip, I recommend doing a little test in the shell and it worked for me later!

bitf17m558 commented 2 years ago

I am getting same error where is this qrcode.py file exist

ArtemGames06 commented 2 years ago

When I wanted to create a qr code, I get an error:

AttributeError: partially initialized module 'qrcode' has no attribute 'make' (most likely due to a circular import)

jacksonsophat commented 2 years ago

I don't have any file name qrcode.py but it still says module 'qrcode' has no attribute 'make'

Riti70912 commented 1 year ago

despite changing the name i am getting the same error anyone can help me out

M-0326 commented 1 year ago

AttributeError: partially initialized module 'qrcode' has no attribute 'QRCode' (most likely due to a circular import). Did you mean: 'qrcode'? unable to ressolve..