'TypeError: coercing to Unicode' on smart update
Bug #244038 reported by
Rehan Khan
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Smart Package Manager |
New
|
Undecided
|
Unassigned |
Bug Description
Imported: http://
Reason for Import: Review Issue, Review Patch
further details: https:/
The proposed patch is in the first post.
To post a comment you must log in.
msg1332 (view) Author: ed Date: 2008-04-30.10:22:35
Here is a different occurrence of the same error (note the different call stack).
# smart install lrzip ####### ####### ####### ####### ##### [100%]
Loading cache...
Updating cache... #######
Computing transaction...
Installing packages (1): 0.19-1. fc9@i386
lrzip-
75.5kB of package files are needed. 75.5kB will be used.
Confirm changes? (Y/n): y
Fetching packages... download. fedora. redhat. com/pub/ fedora/ .../lrzip- 0.19-1. fc9.i386. rpm 19-1.fc9. i386.rpm ( 0%)
-> http://
lrzip-0.
Committing transaction... sys.argv[ 1:]) opts.command, opts.argv) python2. 5/site- packages/ smart/interface .py", line 53, in run main(self. _ctrl, opts) python2. 5/site- packages/ smart/commands/ install. py", line 178, commitTransacti on(trans, confirm=confirm) python2. 5/site- packages/ smart/control. py", line 500, in geSet(trans. getChangeSet( ), caching, confirm) python2. 5/site- packages/ smart/control. py", line 558, in ).commit( pmcs, pkgpaths) python2. 5/site- packages/ smart/backends/ rpm/pm. py", line 155, in
Traceback (most recent call last):
File "/usr/bin/smart", line 194, in <module>
main(
File "/usr/bin/smart", line 167, in main
exitcode = iface.run(
File "/usr/lib/
result = _command.
File "/usr/lib/
in main
ctrl.
File "/usr/lib/
commitTransaction
return self.commitChan
File "/usr/lib/
commitChangeSet
pmclass(
File "/usr/lib/
commit
fd = os.open(path, os.O_RDONLY)
TypeError: coercing to Unicode: need string or buffer, NoneType found
Unhandled exception in thread started by
Error in sys.excepthook:
Original exception was:
msg1254 (view) Author: ed Date: 2007-12-04.16:34:40
I am now able to reproduce this at the console.
root@localhost ~ # smart update ####### ####### ####### ####### ##### [100%]
Loading cache...
Updating cache... #######
Fetching information for 'Fedora 8 - i386'... download. fedora. redhat. com/pub/ fedora/ linux/releases/ 8/.../repomd. xml sys.argv[ 1:]) opts.command, opts.argv) python2. 5/site- packages/ smart/interface .py", line 53, in run main(self. _ctrl, opts) python2. 5/site- packages/ smart/commands/ update. py", line 78, in main nels(channels, caching=NEVER) python2. 5/site- packages/ smart/control. py", line 352, in fetch(self. _fetcher, progress): python2. 5/site- packages/ smart/channels/ rpm_md. py", line 73, in item.getTargetP ath()) python2. 5/site- packages/ smart/util/ filetools. py", line 31, in
-> http://
Traceback (most recent call last): ( 0%)
File "/usr/bin/smart", line 194, in <module>
main(
File "/usr/bin/smart", line 167, in main
exitcode = iface.run(
File "/usr/lib/
result = _command.
File "/usr/lib/
failed = not ctrl.reloadChan
File "/usr/lib/
reloadChannels
if not channel.
File "/usr/lib/
fetch
digest = getFileDigest(
File "/usr/lib/
getFileDigest
file = open(path)
TypeError: coercing to Unicode: need string or buffer, NoneType found
Unhandled exception in thread started by
Error in sys.excepthook:
Original exception was:
msg1239 (view) Author: ed Date: 2007-11-15.15:15:25
When running 'smart update' I saw this error:
Loadin...