Bug 1130391 - dnf-plugins-core: copr list command fails with TypeError: must be unicode, not str
Summary: dnf-plugins-core: copr list command fails with TypeError: must be unicode, no...
Keywords:
Status: CLOSED DUPLICATE of bug 1123886
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf-plugins-core
Version: 20
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-08-15 06:22 UTC by Mikolaj Izdebski
Modified: 2014-08-15 09:05 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-08-15 09:05:32 UTC


Attachments (Terms of Use)

Description Mikolaj Izdebski 2014-08-15 06:22:05 UTC
Description of problem:
copr list command fails with
TypeError: must be unicode, not str

Version-Release number of selected component (if applicable):
dnf-0.5.4-2.fc20.noarch
dnf-plugins-core-0.1.1-3.fc20.noarch

Steps to Reproduce:
dnf copr list mizdebsk

Actual results:
Traceback (most recent call last):
  File "/bin/dnf", line 36, in <module>
    main.user_main(sys.argv[1:], exit_code=True)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 200, in user_main
    errcode = main(args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 83, in main
    return _main(base, args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 133, in _main
    cli.run()
  File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 1171, in run
    return self.command.run(self.base.extcmds)
  File "/usr/lib/python2.7/site-packages/dnf-plugins/copr.py", line 132, in run
    msg = self.base.output.fmtKeyValFill(msg, desc)
  File "/usr/lib/python2.7/site-packages/dnf/cli/output.py", line 704, in fmtKeyValFill
    keylen = exact_width(key)
  File "/usr/lib/python2.7/site-packages/dnf/i18n.py", line 164, in exact_width
    return sum(_exact_width_char(c) for c in msg)
  File "/usr/lib/python2.7/site-packages/dnf/i18n.py", line 164, in <genexpr>
    return sum(_exact_width_char(c) for c in msg)
  File "/usr/lib/python2.7/site-packages/dnf/i18n.py", line 138, in _exact_width_char
    return 2 if unicodedata.east_asian_width(uchar) in ('W', 'F', 'A') else 1
TypeError: must be unicode, not str

Comment 1 Honza Silhan 2014-08-15 09:05:32 UTC
Hi, thanks for the report, but duplicate.

*** This bug has been marked as a duplicate of bug 1123886 ***


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