lincolnloop / python-qrcode

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

No module named 'qrcode.image.styles.moduledrawers.pil' #278

Closed ewwachter closed 1 year ago

ewwachter commented 2 years ago

Dear,

I have both pil and qrcode installed:

Requirement already satisfied: qrcode[pil] in /usr/local/lib/python3.8/dist-packages (7.3.1)
Requirement already satisfied: pillow; extra == "pil" in /usr/local/lib/python3.8/dist-packages (from qrcode[pil]) (9.2.0)

But I'm getting this error: No module named 'qrcode.image.styles.moduledrawers.pil'

Do you know what is the issue here?

famesjranko commented 1 year ago

In case anyone else comes across this, I had a similar issue with importing RoundedModuleDrawers:

The readme shows:

from qrcode.image.styles.moduledrawers.pil import RoundedModuleDrawer

But the correct import is actually:

from qrcode.image.styles.moduledrawers import RoundedModuleDrawer
SmileyChris commented 1 year ago

readme should be correct now that new version has been released