[issue341] 'TypeError: coercing to Unicode' on smart update

Ed Avis at Labix Tracker tracker at labix.org
Wed Apr 30 03:22:35 PDT 2008


Ed Avis <ed at membled.com> added the comment:

Here is a different occurrence of the same error (note the different call stack).

# smart install lrzip
Loading cache...
Updating cache...               ######################################## [100%]

Computing transaction...

Installing packages (1):
  lrzip-0.19-1.fc9 at i386

75.5kB of package files are needed. 75.5kB will be used.

Confirm changes? (Y/n): y

Fetching packages...
-> http://download.fedora.redhat.com/pub/fedora/.../lrzip-0.19-1.fc9.i386.rpm
lrzip-0.19-1.fc9.i386.rpm                                                (  0%)

Committing transaction...
Traceback (most recent call last):
  File "/usr/bin/smart", line 194, in <module>
    main(sys.argv[1:])
  File "/usr/bin/smart", line 167, in main
    exitcode = iface.run(opts.command, opts.argv)
  File "/usr/lib/python2.5/site-packages/smart/interface.py", line 53, in run
    result = _command.main(self._ctrl, opts)
  File "/usr/lib/python2.5/site-packages/smart/commands/install.py", line 178,
in main
    ctrl.commitTransaction(trans, confirm=confirm)
  File "/usr/lib/python2.5/site-packages/smart/control.py", line 500, in
commitTransaction
    return self.commitChangeSet(trans.getChangeSet(), caching, confirm)
  File "/usr/lib/python2.5/site-packages/smart/control.py", line 558, in
commitChangeSet
    pmclass().commit(pmcs, pkgpaths)
  File "/usr/lib/python2.5/site-packages/smart/backends/rpm/pm.py", line 155, in
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:

_______________________________________
Labix issue tracker <tracker at labix.org>
<http://tracker.labix.org/issue341>
_______________________________________



More information about the Smart mailing list