Red Hat Bugzilla – Bug 1002440
[abrt] hplip-3.13.7-1.fc19: models.py:425:read_section:TypeError: coercing to Unicode: need string or buffer, NoneType found
Last modified: 2013-08-29 10:25:52 EDT
Version-Release number of selected component:
cmdline: /usr/bin/python /usr/bin/hp-makeuri -c technik
runlevel: N 5
models.py:425:read_section:TypeError: coercing to Unicode: need string or buffer, NoneType found
Traceback (most recent call last):
File "/usr/bin/hp-makeuri", line 123, in <module>
cups_uri, sane_uri, fax_uri = device.makeURI(param, jd_port)
File "/usr/share/hplip/base/device.py", line 409, in makeURI
mq = queryModelByURI(cups_uri)
File "/usr/share/hplip/base/device.py", line 450, in queryModelByURI
File "/usr/share/hplip/base/device.py", line 439, in queryModelByModel
File "/usr/share/hplip/base/models.py", line 515, in __getitem__
if self.read_section(self.released_dat, model):
File "/usr/share/hplip/base/models.py", line 425, in read_section
fd = file(filename)
TypeError: coercing to Unicode: need string or buffer, NoneType found
Local variables in innermost frame:
self: <base.models.ModelData instance at 0xfc36c8>
Created attachment 791642 [details]
Created attachment 791643 [details]
*** This bug has been marked as a duplicate of bug 957329 ***
The problem is most probably that the script can't read file '/usr/share/hplip/data/models/models.dat'. This file shall be a part of 'hplip-common' package.
Please tell if you have this file and what 'rpm -qf /usr/share/hplip/data/models/models.dat' outputs.
Can you reproduce this bug and how? What you do or which command you use?
The file '/usr/share/hplip/data/models/models.dat' did not existed but:
# rpm -qf /usr/share/hplip/data/models/models.dat
I removed hplip-common.x86_64 with yum and get the error that the file could not be removed - they does not exist.
Then i reinstall hplip-common and now everything works fine.
I have no idea why it was not from the beginning there.
Thanks for reply, nice to see it works well for you now.