ROSA Linux Bugzilla – Bug 4605
command-not-found seems confused
Last modified: 2014-11-06 17:12:15 MSK
Description of problem:
w_scan was not installed, but cnf seems in trouble.....
$ w_scan -X -P -t 2 -E 0 -c IT > ~/dvb-channels.conf
Traceback (most recent call last):
File "/usr/bin/cnf", line 12, in <module>
outf = codecs.getwriter(sys.stdout.encoding)(sys.stdout, errors='replace')
File "/usr/lib64/python2.7/codecs.py", line 991, in getwriter
TypeError: must be string, not None
Version-Release number of selected component (if applicable):
$ rpm -aq | grep command
The trouble is in output redirection to file. If you drop '> ~/dvb-channels.conf' from the end of line, everything will be fine.
I'll try to improve this behavior.
Should be fixed in version 1.3/
does not seem properly fixed.
in my example the file "dvb-channels.conf" is created even if there is no w_scan installed
it contains the last part of the message
Surely, this file is created. cnf can't prevent this by design, since shell first creates this file and only after this tries to launch w_scan redirecting all stdout to that file.
This is how shell works, and cnf can't affect this behavior.
yes, you are right.