lincolnloop / python-qrcode

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

Attribute error #270

Closed SOLOMONCHIKEZIE closed 2 years ago

SOLOMONCHIKEZIE commented 2 years ago

raceback (most recent call last): File "C:\Users\hp\PycharmProject\pythonProject\QRcode\qrcode.py", line 1, in import qrcode File "C:\Users\hp\PycharmProject\pythonProject\QRcode\qrcode.py", line 2, in qr = qrcode.QRCode( AttributeError: partially initialized module 'qrcode' has no attribute 'QRCode' (most likely due to a circular import)

SOLOMONCHIKEZIE commented 2 years ago

please I need help

SmileyChris commented 2 years ago

Don't call your module qrcode.py. It can't import the qrcode package.

heuer commented 2 years ago

This error is so common, maybe it should be mentioned in the README?

Just to name a few. ;)