error in hp-doctor while open smart_install_run

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

Bug Description

When hp-doctor trying to disable smart install, the script gives an error.

OS: Ubuntu 16.04 x64 with last updates on may 13 2017

The problem is that the file opens in text mode

A path:

--- /usr/share/hplip/base/smart_install.py 2016-03-29 09:59:15.000000000 +0300
+++ smart_install.py 2017-05-13 12:11:30.180647387 +0300
@@ -151,7 +151,7 @@
 def validate(mode, smart_install_run, smart_install_asc, req_checksum=''):

     #Validate Checksum
- calc_checksum = utils.get_checksum(open(smart_install_run, 'r').read())
+ calc_checksum = utils.get_checksum(open(smart_install_run, 'rb').read())
     log.debug("File checksum=%s" % calc_checksum)

     if req_checksum and req_checksum != calc_checksum:

Vladimir (user6923)
summary: - error while open smart_install_run
+ error in hp-doctor while open smart_install_run
description: updated
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.