It may take a while, please wait for minutes...
line 16: mode: byte
Traceback (most recent call last):
File "/home/vyacheslav/avito/qrcode/venv/bin/amzqr", line 8, in
sys.exit(main())
File "/home/vyacheslav/avito/qrcode/venv/lib/python3.10/site-packages/amzqr/terminal.py", line 25, in main
ver, ecl, qr_name = run(
File "/home/vyacheslav/avito/qrcode/venv/lib/python3.10/site-packages/amzqr/amzqr.py", line 117, in run
imageio.mimwrite(qr_name, ims, '.gif', { 'duration': duration/1000 })
File "/home/vyacheslav/avito/qrcode/venv/lib/python3.10/site-packages/imageio/v2.py", line 483, in mimwrite
with imopen(uri, "wI", imopen_args) as file:
File "/home/vyacheslav/avito/qrcode/venv/lib/python3.10/site-packages/imageio/core/v3_plugin_api.py", line 367, in exit
self.close()
File "/home/vyacheslav/avito/qrcode/venv/lib/python3.10/site-packages/imageio/plugins/pillow.py", line 120, in close
self._flush_writer()
File "/home/vyacheslav/avito/qrcode/venv/lib/python3.10/site-packages/imageio/plugins/pillow.py", line 428, in _flush_writer
primary_image.save(self._request.get_file(), **self.save_args)
File "/home/vyacheslav/avito/qrcode/venv/lib/python3.10/site-packages/PIL/Image.py", line 2432, in save
save_handler(self, fp, filename)
File "/home/vyacheslav/avito/qrcode/venv/lib/python3.10/site-packages/PIL/GifImagePlugin.py", line 653, in _save_all
_save(im, fp, filename, save_all=True)
File "/home/vyacheslav/avito/qrcode/venv/lib/python3.10/site-packages/PIL/GifImagePlugin.py", line 664, in _save
if not save_all or not _write_multiple_frames(im, fp, palette):
File "/home/vyacheslav/avito/qrcode/venv/lib/python3.10/site-packages/PIL/GifImagePlugin.py", line 643, in _write_multiple_frames
_write_frame_data(fp, im_frame, offset, frame_data["encoderinfo"])
File "/home/vyacheslav/avito/qrcode/venv/lib/python3.10/site-packages/PIL/GifImagePlugin.py", line 975, in _write_frame_data
_write_local_header(fp, im_frame, offset, 0)
File "/home/vyacheslav/avito/qrcode/venv/lib/python3.10/site-packages/PIL/GifImagePlugin.py", line 730, in _write_local_header
palette_bytes = _get_palette_bytes(im)
File "/home/vyacheslav/avito/qrcode/venv/lib/python3.10/site-packages/PIL/GifImagePlugin.py", line 882, in _get_palette_bytes
return im.palette.palette
AttributeError: 'NoneType' object has no attribute 'palette'
amzqr https://github.com -v 10 -p imgonline-com-ua-GIF-Animation-65norxj0k3JcR.gif -n animated_qrcode.gif
It may take a while, please wait for minutes... line 16: mode: byte Traceback (most recent call last): File "/home/vyacheslav/avito/qrcode/venv/bin/amzqr", line 8, in
sys.exit(main())
File "/home/vyacheslav/avito/qrcode/venv/lib/python3.10/site-packages/amzqr/terminal.py", line 25, in main
ver, ecl, qr_name = run(
File "/home/vyacheslav/avito/qrcode/venv/lib/python3.10/site-packages/amzqr/amzqr.py", line 117, in run
imageio.mimwrite(qr_name, ims, '.gif', { 'duration': duration/1000 })
File "/home/vyacheslav/avito/qrcode/venv/lib/python3.10/site-packages/imageio/v2.py", line 483, in mimwrite
with imopen(uri, "wI", imopen_args) as file:
File "/home/vyacheslav/avito/qrcode/venv/lib/python3.10/site-packages/imageio/core/v3_plugin_api.py", line 367, in exit
self.close()
File "/home/vyacheslav/avito/qrcode/venv/lib/python3.10/site-packages/imageio/plugins/pillow.py", line 120, in close
self._flush_writer()
File "/home/vyacheslav/avito/qrcode/venv/lib/python3.10/site-packages/imageio/plugins/pillow.py", line 428, in _flush_writer
primary_image.save(self._request.get_file(), **self.save_args)
File "/home/vyacheslav/avito/qrcode/venv/lib/python3.10/site-packages/PIL/Image.py", line 2432, in save
save_handler(self, fp, filename)
File "/home/vyacheslav/avito/qrcode/venv/lib/python3.10/site-packages/PIL/GifImagePlugin.py", line 653, in _save_all
_save(im, fp, filename, save_all=True)
File "/home/vyacheslav/avito/qrcode/venv/lib/python3.10/site-packages/PIL/GifImagePlugin.py", line 664, in _save
if not save_all or not _write_multiple_frames(im, fp, palette):
File "/home/vyacheslav/avito/qrcode/venv/lib/python3.10/site-packages/PIL/GifImagePlugin.py", line 643, in _write_multiple_frames
_write_frame_data(fp, im_frame, offset, frame_data["encoderinfo"])
File "/home/vyacheslav/avito/qrcode/venv/lib/python3.10/site-packages/PIL/GifImagePlugin.py", line 975, in _write_frame_data
_write_local_header(fp, im_frame, offset, 0)
File "/home/vyacheslav/avito/qrcode/venv/lib/python3.10/site-packages/PIL/GifImagePlugin.py", line 730, in _write_local_header
palette_bytes = _get_palette_bytes(im)
File "/home/vyacheslav/avito/qrcode/venv/lib/python3.10/site-packages/PIL/GifImagePlugin.py", line 882, in _get_palette_bytes
return im.palette.palette
AttributeError: 'NoneType' object has no attribute 'palette'