You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for noting this, @williamjacksn! We need to update the docs to make this clear. Since PNG is also an optional dependency, I think the fallback should be SVG, since it doesn't depend on any extra libraries.
I just learned about and installed qrcode for the first time, and ran into exactly this surprise.
At this point I had only read the first part of the README — "Usage" — which gave me the impression I could run qrcode.make( "foo" ) or $ qr "foo" > test.png immediately after install.
After seeing the ModuleNotFoundError, I explicitly installed pypng, but it still kept trying to use PIL.
Only after that did I revisit the README and discover the "Pure Python PNG" section, which worked.
This works with
qrcode
7.4.2.But with
qrcode
8.0,pypng
is no longer automatically installed as a dependency.Even when
pypng
is installed, theqr
command defaults to thepil
factory.The text was updated successfully, but these errors were encountered: