[Bug 1099589] Re: wrap-and-sort crashed with TypeError in save(): must be str, not bytes
Robert Bruce Park
robert.park at canonical.com
Tue Jan 22 20:50:11 UTC 2013
This bug is not a duplicate of that other one; I am still experiencing
this even with devscripts 2.12.6ubuntu2 installed.
Steps to reproduce:
1. Go into any directory containing a debian/ subdirectory,
2. type 'wrap-and-sort'
3. Observe the following traceback:
$ wrap-and-sort
Traceback (most recent call last):
File "/usr/bin/wrap-and-sort", line 227, in <module>
main()
File "/usr/bin/wrap-and-sort", line 224, in main
wrap_and_sort(options)
File "/usr/bin/wrap-and-sort", line 146, in wrap_and_sort
control.save()
File "/usr/lib/python3/dist-packages/devscripts/control.py", line 70, in save
control_file.write(content.encode("utf-8"))
TypeError: must be str, not bytes
4. Notice that debian/control has become zero-length.
** This bug is no longer a duplicate of bug 1099091
pull-debian-source crashed with ImportError in __main__: No module named devscripts.logger
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to devscripts in Ubuntu.
https://bugs.launchpad.net/bugs/1099589
Title:
wrap-and-sort crashed with TypeError in save(): must be str, not bytes
Status in “devscripts” package in Ubuntu:
New
Bug description:
wrap-and-sort crashed, leaving my debian/control file empty.
ProblemType: Crash
DistroRelease: Ubuntu 13.04
Package: devscripts 2.12.6ubuntu1
ProcVersionSignature: Ubuntu 3.8.0-0.3-generic 3.8.0-rc3
Uname: Linux 3.8.0-0-generic x86_64
ApportVersion: 2.8-0ubuntu1
Architecture: amd64
Date: Mon Jan 14 13:54:44 2013
EcryptfsInUse: Yes
ExecutablePath: /usr/bin/wrap-and-sort
InstallationDate: Installed on 2012-09-14 (121 days ago)
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Alpha amd64 (20120905.2)
InterpreterPath: /usr/bin/python3.3
MarkForUpload: True
ProcCmdline: /usr/bin/python3 /usr/bin/wrap-and-sort
ProcEnviron:
TERM=xterm
SHELL=/bin/bash
PATH=(custom, user)
LANG=en_CA.utf8
XDG_RUNTIME_DIR=<set>
PythonArgs: ['/usr/bin/wrap-and-sort']
SourcePackage: devscripts
Title: wrap-and-sort crashed with TypeError in save(): must be str, not bytes
UpgradeStatus: Upgraded to raring on 2012-11-14 (60 days ago)
UserGroups: adm cdrom debian-tor dip lpadmin plugdev sambashare sudo
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/devscripts/+bug/1099589/+subscriptions
More information about the foundations-bugs
mailing list