pml.py:177:ConvertFromPMLDataFormat:error: unpack requires a string argument of length 4

Bug #972672 reported by Jiri Popelka
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HPLIP
New
Undecided
Unassigned

Bug Description

hplip-gui-3.12.2 @ Fedora 16

backtrace:
pml.py:177:ConvertFromPMLDataFormat:error: unpack requires a string argument of length 4

Traceback (most recent call last):
  File "/usr/bin/hp-systray", line 141, in <module>
    hpdio.run(r2, w3)
  File "/usr/share/hplip/hpdio.py", line 140, in run
    dev.queryDevice()
  File "/usr/share/hplip/base/device.py", line 1704, in queryDevice
    status_block = status.StatusType3(self, self.deviceID)
  File "/usr/share/hplip/base/status.py", line 507, in StatusType3
    result_code, colorant_index = dev.getPML( oid )
  File "/usr/share/hplip/base/device.py", line 2014, in getPML
    converted_data = pml.ConvertFromPMLDataFormat(data, oid[1],
desired_int_size)
  File "/usr/share/hplip/base/pml.py", line 177, in ConvertFromPMLDataFormat
    return struct.unpack(">i", data)[0]
error: unpack requires a string argument of length 4

Local variables in innermost frame:
data: '\x01\x15CNCJ299144'
desired_int_size: 4
data_type: 8

See also the original bug report https://bugzilla.redhat.com/show_bug.cgi?id=808494

Revision history for this message
goutam kodu (goutam-hplip) wrote :

Hi,

Can you uninstall/ remove the package related with hplip from fedora repository or using yum package manager.

yum remove hplip
yum remove hplip-gui

etc...

And please check this by installing the hplip-3.12.2 from "hplip-3.12.2.run" file . Download the file from http://hplipopensource.com/hplip-web/gethplip.html. And install this by running command "sh hplip-3.12.2.run" in terminal.

Check if you are able to reproduce the same.

Thanks & Regards,
Goutam Kodu

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.