UnicodeEncodeError: 'ascii' codec can't encode character u'\xa0' during bloom-release [closed]
UPDATE) I removed most of texts from the file (link) where the reported error seemed to happen, but the error message stays the same with bloom-release
0.4.2 and python-catkin-pkg
0.1.16-1, pointing to the same position (1684).
bloom-release
0.4.0 stops in the middle saying:
File "/usr/lib/pymodules/python2.7/catkin_pkg/changelog.py", line 492, in to_txt
lines.append(str(t))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xa0' in position 1684: ordinal not in range(128)
<== Error running command '['/usr/bin/git-bloom-generate', '-y', 'rosdebian', '--prefix', 'release/groovy', 'groovy', '-i', '0']'
Release failed, exiting.
Happens with this .rst file that's generated by catkin_generate_changelog --all
. Although I found that u'\xa0'
is non-breaking space in Latin1 (ISO 8859-1)
according to this page, I don't see that character in the .rst file (or at least I'm not yet sure how to find one).
Thanks!
More error log:
$ bloom-release rqt_robot_plugins --track groovy --rosdistro groovy
==> git-bloom-release groovy
Processing release track settings for 'groovy'
What version are you releasing (version should normally be MAJOR.MINOR.PATCH)? 0.2.16
Executing release track 'groovy'
:
==> git-bloom-import-upstream /tmp/tmpH8MpIp/upstream-0.2.16.tar.gz --release-version 0.2.16 --replace
Skipping transactional safety mechanism, be careful...
The latest upstream tag in the release repository is 'upstream/0.2.15'.
Importing archive into upstream branch...
Creating tag: 'upstream/0.2.16'
I'm happy. You should be too.
:
#### Successfully generated 'quantal' debian for package 'rqt_nav_view' at version '0.2.16-0'
####
Placing debian template files into 'debian/groovy/rqt_robot_dashboard' branch.
==> Placing templates files in the 'debian' folder.
####
#### Generating 'oneiric' debian for package 'rqt_robot_dashboard' at version '0.2.16-0'
####
Generating debian for oneiric...
No historical releaser history, using current maintainer name and email for each versioned changelog entry.
Traceback (most recent call last):
File "/usr/bin/git-bloom-generate", line 9, in <module>
load_entry_point('bloom==0.4.0', 'console_scripts', 'git-bloom-generate')()
File "/usr/lib/pymodules/python2.7/bloom/commands/git/generate.py", line 247, in main
run_generator(generator, args)
File "/usr/lib/pymodules/python2.7/bloom/commands/git/generate.py", line 162, in run_generator
gen.post_rebase, destination)
File "/usr/lib/pymodules/python2.7/bloom/commands/git/generate.py", line 101, in try_execute
retcode = func(*args, **kwargs)
File "/usr/lib/pymodules/python2.7/bloom/generators/debian/generator.py", line 484, in post_rebase
data = self.generate_debian(package, distro)
File "/usr/lib/pymodules/python2.7/bloom/generators/debian/generator.py", line 603, in generate_debian
subs = self.get_subs(package, debian_distro, releaser_history)
File "/usr/lib/pymodules/python2.7/bloom/generators/rosdebian.py", line 42, in get_subs
releaser_history=releaser_history
File "/usr/lib/pymodules/python2.7/bloom/generators/debian/generator.py", line 271, in generate_substitutions_from_package
changelogs = get_changelogs(package, releaser_history)
File "/usr/lib/pymodules/python2.7/bloom/generators/debian/generator.py", line 204, in get_changelogs
changes_str.extend([' ' + i for i in str(item).splitlines()])
File "/usr/lib/pymodules/python2.7/catkin_pkg/changelog.py", line 329, in __str__
return unicode(self).encode('utf-8')
File "/usr/lib/pymodules/python2.7/catkin_pkg/changelog.py", line 332, in ...
I closed this question - see the relevant ticket for the development.