Bug 1079576 - [abrt] pyp2rpm: package_data.py:56:changelog_date_packager:UnicodeEncodeError: 'ascii' codec can't encode character u'\u010d' in position 9: ordinal not in range(128)
Summary: [abrt] pyp2rpm: package_data.py:56:changelog_date_packager:UnicodeEncodeError...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: pyp2rpm
Version: 20
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Robert Kuska
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:d873e5a0cee66a2e77ec7c34764...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-03-21 21:11 UTC by Miro Hrončok
Modified: 2016-04-18 10:17 UTC (History)
3 users (show)

Fixed In Version: pyp2rpm-1.1.0b-1.fc20
Clone Of:
Environment:
Last Closed: 2014-05-12 05:21:34 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (1.58 KB, text/plain)
2014-03-21 21:11 UTC, Miro Hrončok
no flags Details
File: environ (3.64 KB, text/plain)
2014-03-21 21:11 UTC, Miro Hrončok
no flags Details

Description Miro Hrončok 2014-03-21 21:11:17 UTC
Description of problem:
pyp2rpm -n python-social-auth

Version-Release number of selected component:
pyp2rpm-1.0.1-4.fc20

Additional info:
reporter:       libreport-2.1.12
cmdline:        /usr/bin/python /usr/bin/pyp2rpm -n python-social-auth
dso_list:       python-jinja2-2.7.1-1.fc20.noarch
executable:     /usr/bin/pyp2rpm
kernel:         3.12.10-300.fc20.x86_64
runlevel:       N 5
type:           Python
uid:            1000

Truncated backtrace:
package_data.py:56:changelog_date_packager:UnicodeEncodeError: 'ascii' codec can't encode character u'\u010d' in position 9: ordinal not in range(128)

Traceback (most recent call last):
  File "/usr/bin/pyp2rpm", line 9, in <module>
    load_entry_point('pyp2rpm==1.0.1', 'console_scripts', 'pyp2rpm')()
  File "/usr/lib/python2.7/site-packages/pyp2rpm/bin.py", line 75, in main
    converted = convertor.convert()
  File "/usr/lib/python2.7/site-packages/pyp2rpm/convertor.py", line 75, 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 116, 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 56, in changelog_date_packager
    return '{0} {1}'.format(date_str, packager.decode(encoding))
UnicodeEncodeError: 'ascii' codec can't encode character u'\u010d' in position 9: ordinal not in range(128)

Local variables in innermost frame:
packager: 'Miro Hron\xc4\x8dok <mhroncok>'
date_str: 'Fri Mar 21 2014'
self: <pyp2rpm.package_data.PypiData object at 0x27594d0>
encoding: 'UTF-8'

Potential duplicate: bug 982321

Comment 1 Miro Hrončok 2014-03-21 21:11:22 UTC
Created attachment 877504 [details]
File: backtrace

Comment 2 Miro Hrončok 2014-03-21 21:11:24 UTC
Created attachment 877505 [details]
File: environ

Comment 3 Fedora Update System 2014-04-30 07:28:20 UTC
pyp2rpm-1.1.0b-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/pyp2rpm-1.1.0b-1.fc20

Comment 4 Fedora Update System 2014-05-01 07:01:12 UTC
Package pyp2rpm-1.1.0b-1.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing pyp2rpm-1.1.0b-1.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-5835/pyp2rpm-1.1.0b-1.fc20
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2014-05-12 05:21:34 UTC
pyp2rpm-1.1.0b-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.


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