Hi everyone! Im facing an error that says :
AttributeError: partially initialized module ‘qrcode’ has no attribute ‘QRCode’ (most likely due to a circular import)
Traceback:
File "C:\Users\User\AppData\Local\Programs\Python\Python39\lib\site-packages\streamlit\script_runner.py", line 350, in _run_script
exec(code, module.__dict__)File "C:\Users\User\Desktop\newone.py", line 5, in <module>
import qrcodeFile "C:\Users\User\Desktop\qrcode.py", line 6, in <module>
qr = qrcode.QRCode(version=1,
not sure what i did wrong. Here is the mentioned line 5 and 6 :
import qrcode
qr = qrcode.QRCode(
version=1,
error_correction=qrcode.constants.ERROR_CORRECT_L,
box_size=10,
border=14,
)
And i’ve changed my file name so it doesnt have the word qrcode either. Help!!