Bug 1613263 - [abrt] pyp2rpm: package_data.py:58:get_changelog_date_packager:UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 7: ordinal not in range(128)
Summary: [abrt] pyp2rpm: package_data.py:58:get_changelog_date_packager:UnicodeDecodeE...
Keywords:
Status: ASSIGNED
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: pyp2rpm
Version: epel7
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Kevin Fenzi
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:39f5db7ac54a27eeb4bfac3b450...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-08-07 10:42 UTC by Frank Büttner
Modified: 2019-04-05 03:05 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (2.15 KB, text/plain)
2018-08-07 10:42 UTC, Frank Büttner
no flags Details
File: dso_list (63 bytes, text/plain)
2018-08-07 10:42 UTC, Frank Büttner
no flags Details
File: environ (3.94 KB, text/plain)
2018-08-07 10:42 UTC, Frank Büttner
no flags Details
File: machineid (135 bytes, text/plain)
2018-08-07 10:42 UTC, Frank Büttner
no flags Details

Description Frank Büttner 2018-08-07 10:42:33 UTC
Version-Release number of selected component:
pyp2rpm-2.0.0-4.el7

Additional info:
reporter:       libreport-2.1.11.1
cmdline:        /usr/bin/python /usr/bin/pyp2rpm -b 3 ldap3 -d /home/fbuettn/RPM-Zeugs
executable:     /usr/bin/pyp2rpm
kernel:         3.10.0-862.6.3.el7.x86_64
pkg_fingerprint: 6A2F AEA2 352C 64E5
pkg_vendor:     Fedora Project
reproducible:   Not sure how to reproduce the problem
runlevel:       N 5
type:           Python
uid:            1000

Truncated backtrace:
package_data.py:58:get_changelog_date_packager:UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 7: ordinal not in range(128)

Traceback (most recent call last):
  File "/usr/bin/pyp2rpm", line 9, in <module>
    load_entry_point('pyp2rpm==2.0.0', 'console_scripts', 'pyp2rpm')()
  File "/usr/lib/python2.7/site-packages/click/core.py", line 721, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/click/core.py", line 696, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python2.7/site-packages/click/core.py", line 894, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python2.7/site-packages/click/core.py", line 534, in invoke
    return callback(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/pyp2rpm/bin.py", line 99, in main
    converted = convertor.convert()
  File "/usr/lib/python2.7/site-packages/pyp2rpm/convertor.py", line 96, in convert
    return jinja_template.render(data=data, name_convertor=name_convertor)
  File "/usr/lib/python2.7/site-packages/jinja2/environment.py", line 969, in render
    return self.environment.handle_exception(exc_info, True)
  File "/usr/lib/python2.7/site-packages/jinja2/environment.py", line 742, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/lib/python2.7/site-packages/pyp2rpm/templates/fedora.spec", line 118, in top-level template code
    * {{ data.changelog_date_packager }} - {{ data.version }}-1
  File "/usr/lib/python2.7/site-packages/jinja2/environment.py", line 397, in getattr
    return getattr(obj, attribute)
  File "/usr/lib/python2.7/site-packages/pyp2rpm/package_data.py", line 32, in __getattr__
    return self.get_changelog_date_packager()
  File "/usr/lib/python2.7/site-packages/pyp2rpm/package_data.py", line 58, in get_changelog_date_packager
    return u'{0} {1}'.format(date_str, packager.decode(encoding))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 7: ordinal not in range(128)

Local variables in innermost frame:
packager: 'Frank B\xc3\xbcttner'
date_str: 'Tue Aug 07 2018'
self: <pyp2rpm.package_data.PackageData object at 0x7f6c305a7310>
encoding: 'ANSI_X3.4-1968'

Comment 1 Frank Büttner 2018-08-07 10:42:39 UTC
Created attachment 1473947 [details]
File: backtrace

Comment 2 Frank Büttner 2018-08-07 10:42:40 UTC
Created attachment 1473948 [details]
File: dso_list

Comment 3 Frank Büttner 2018-08-07 10:42:42 UTC
Created attachment 1473949 [details]
File: environ

Comment 4 Frank Büttner 2018-08-07 10:42:43 UTC
Created attachment 1473950 [details]
File: machineid

Comment 5 Kevin Fenzi 2018-08-28 23:13:37 UTC
Can you try this version: 

https://koji.fedoraproject.org/koji/buildinfo?buildID=1140233

and see if it fixes the issue?

Comment 6 Frank Büttner 2018-08-29 07:44:00 UTC
I will test it next week, when I'm back from holiday.

Comment 7 Frank Büttner 2018-09-03 06:40:35 UTC
Yes, it will fix it.


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