Description of problem: Attempt simple qr code generation from command line with python3 version of qr-code. The problem appears to be on the attempt to write to stdout. Version-Release number of selected component: python3-qrcode-5.1-7.fc27 Additional info: reporter: libreport-2.9.3 cmdline: /usr/bin/python3 /usr/bin/qr --factory=pil https://wcrsyyc.github.io/diy-blinky-bot/astable_multivibrator.html crash_function: _save exception_type: TypeError executable: /usr/bin/qr kernel: 4.17.3-100.fc27.x86_64 runlevel: N 5 type: Python3 uid: 1000 Truncated backtrace: PngImagePlugin.py:709:_save:TypeError: write() argument must be str, not bytes Traceback (most recent call last): File "/usr/bin/qr", line 11, in <module> load_entry_point('qrcode==5.1', 'console_scripts', 'qr')() File "/usr/lib/python3.6/site-packages/qrcode/console_scripts.py", line 59, in main img.save(sys.stdout) File "/usr/lib/python3.6/site-packages/qrcode/image/pil.py", line 32, in save self._img.save(stream, kind) File "/usr/lib64/python3.6/site-packages/PIL/Image.py", line 1928, in save save_handler(self, fp, filename) File "/usr/lib64/python3.6/site-packages/PIL/PngImagePlugin.py", line 709, in _save fp.write(_MAGIC) TypeError: write() argument must be str, not bytes Local variables in innermost frame: rawmode: '1' mode: b'\x01\x00' check: 0 chunk: <function putchunk at 0x7fb07b4d9ae8> filename: '<stdout>' fp: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='UTF-8'> im: <PIL.Image.Image image mode=1 size=450x450 at 0x7FB07BA15B00>
Created attachment 1457884 [details] File: backtrace
Created attachment 1457885 [details] File: cgroup
Created attachment 1457886 [details] File: cpuinfo
Created attachment 1457887 [details] File: environ
Created attachment 1457888 [details] File: mountinfo
Created attachment 1457889 [details] File: namespaces
Created attachment 1457890 [details] File: open_fds
This message is a reminder that Fedora 27 is nearing its end of life. On 2018-Nov-30 Fedora will stop maintaining and issuing updates for Fedora 27. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '27'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 27 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
Fedora 27 changed to end-of-life (EOL) status on 2018-11-30. Fedora 27 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed.