OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

No module named png [closed]

  • Thread starter Thread starter Евгений
  • Start date Start date
Е

Евгений

Guest
I want to great qrcode generator by pyqrcode i tried to create qr-code like png pic, then i tried to create qr like base64 string and then decode it and open. but in both tries i nave this error: enter image description here

Code:
import pyqrcode
import base64
import png

urr = input("Enter the URL: ")
qrr = pyqrcode.create(urr)
bb64 = qrr.png_as_base64_str()
with open("qrcode.png", "wb") as f:
    f.write(base64.b64decode(bb64))

how to install png module(i cant install it via pip3/pip, cos thats not found)

after installing and importing png

enter image description here
<p>I want to great qrcode generator by pyqrcode
i tried to create qr-code like png pic, then i tried to create qr like base64 string and then decode it and open.
but in both tries i nave this error:
<a href="https://i.sstatic.net/jy08lSkF.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/jy08lSkF.png" alt="enter image description here" /></a></p>
<pre><code>import pyqrcode
import base64
import png

urr = input("Enter the URL: ")
qrr = pyqrcode.create(urr)
bb64 = qrr.png_as_base64_str()
with open("qrcode.png", "wb") as f:
f.write(base64.b64decode(bb64))
</code></pre>
<p>how to install png module(i cant install it via pip3/pip, cos thats not found)</p>
<p>after installing and importing png</p>
<p><a href="https://i.sstatic.net/e88qETev.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/e88qETev.png" alt="enter image description here" /></a></p>
 

Latest posts

Top