Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1599847 - [abrt] python3-qrcode: _save(): write() argument must be str, not bytes
Summary: [abrt] python3-qrcode: _save(): write(...
Alias: None
Product: Fedora
Classification: Fedora
Component: python-qrcode
Version: 27
Hardware: x86_64
OS: Unspecified
Target Milestone: ---
Assignee: Michel Alexandre Salim
QA Contact: Fedora Extras Quality Assurance
Whiteboard: abrt_hash:65bcee84b58a1946593357c217e...
Depends On:
TreeView+ depends on / blocked
Reported: 2018-07-10 18:11 UTC by Phil Duby
Modified: 2018-11-30 22:09 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2018-11-30 22:09:43 UTC

Attachments (Terms of Use)
File: backtrace (deleted)
2018-07-10 18:11 UTC, Phil Duby
no flags Details
File: cgroup (deleted)
2018-07-10 18:11 UTC, Phil Duby
no flags Details
File: cpuinfo (deleted)
2018-07-10 18:11 UTC, Phil Duby
no flags Details
File: environ (deleted)
2018-07-10 18:11 UTC, Phil Duby
no flags Details
File: mountinfo (deleted)
2018-07-10 18:11 UTC, Phil Duby
no flags Details
File: namespaces (deleted)
2018-07-10 18:11 UTC, Phil Duby
no flags Details
File: open_fds (deleted)
2018-07-10 18:11 UTC, Phil Duby
no flags Details

Description Phil Duby 2018-07-10 18:11:49 UTC
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:

Additional info:
reporter:       libreport-2.9.3
cmdline:        /usr/bin/python3 /usr/bin/qr --factory=pil
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: 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/", line 59, in main
  File "/usr/lib/python3.6/site-packages/qrcode/image/", line 32, in save, kind)
  File "/usr/lib64/python3.6/site-packages/PIL/", line 1928, in save
    save_handler(self, fp, filename)
  File "/usr/lib64/python3.6/site-packages/PIL/", line 709, in _save
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>

Comment 1 Phil Duby 2018-07-10 18:11:53 UTC
Created attachment 1457884 [details]
File: backtrace

Comment 2 Phil Duby 2018-07-10 18:11:54 UTC
Created attachment 1457885 [details]
File: cgroup

Comment 3 Phil Duby 2018-07-10 18:11:55 UTC
Created attachment 1457886 [details]
File: cpuinfo

Comment 4 Phil Duby 2018-07-10 18:11:56 UTC
Created attachment 1457887 [details]
File: environ

Comment 5 Phil Duby 2018-07-10 18:11:57 UTC
Created attachment 1457888 [details]
File: mountinfo

Comment 6 Phil Duby 2018-07-10 18:11:58 UTC
Created attachment 1457889 [details]
File: namespaces

Comment 7 Phil Duby 2018-07-10 18:11:59 UTC
Created attachment 1457890 [details]
File: open_fds

Comment 8 Ben Cotton 2018-11-27 15:01:08 UTC
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.

Comment 9 Ben Cotton 2018-11-30 22:09:43 UTC
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

Thank you for reporting this bug and we are sorry it could not be fixed.

Note You need to log in before you can comment on or make changes to this bug.