Bug 1745317 - hp-plugin is broken on Rawhide
Summary: hp-plugin is broken on Rawhide
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: hplip
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Dohnal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1745334 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-08-25 10:52 UTC by Mikhail
Modified: 2019-09-06 12:12 UTC (History)
4 users (show)

Fixed In Version: hplip-3.19.6-7.fc32
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-09-06 12:12:52 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Mikhail 2019-08-25 10:52:28 UTC
Description of problem:

$ hp-setup -i
/usr/bin/hp-setup:82: SyntaxWarning: invalid escape sequence \*
  ("To specify the port on a multi-port JetDirect:", "--port=<port> (Valid values are 1\*, 2, and 3. \*default)", "option", False),
/usr/bin/hp-setup:86: SyntaxWarning: invalid escape sequence \*
  ("Type of queue(s) to install:", "-t<typelist> or --type=<typelist>. <typelist>: print*, fax\* (\*default) (-i mode only)", "option", False),
/usr/share/hplip/base/g.py:305: SyntaxWarning: invalid escape sequence \|
  spinner = "\|/-\|/-"
/usr/share/hplip/base/g.py:355: SyntaxWarning: invalid escape sequence \d
  m = re.search('python(\d(\.\d){0,2})', ext_path)            #get the python version where the .so file is found
/usr/share/hplip/base/logger.py:440: SyntaxWarning: invalid escape sequence \<
  elem_start = re.findall("(\<\W{0,1}\w+) ?", line)[0]
/usr/share/hplip/base/logger.py:441: SyntaxWarning: invalid escape sequence \]
  elem_finished = re.findall("([?|\]\]]*\>)", line)[0]
/usr/share/hplip/base/logger.py:443: SyntaxWarning: invalid escape sequence \S
  attrs = re.findall("(\S*?\=\".*?\")", line)
/usr/share/hplip/base/device.py:50: SyntaxWarning: invalid escape sequence \d
  http_result_pat = re.compile("""HTTP/\d.\d\s(\d+)""", re.I)
/usr/share/hplip/base/utils.py:150: SyntaxWarning: invalid escape sequence \w
  lis = ((re.findall('SystemGroup [\w* ]*',fp.read()))[0].replace('SystemGroup ','')).split(' ')
/usr/share/hplip/base/utils.py:1589: SyntaxWarning: invalid escape sequence \*
  USAGE_LOGGING2 = ("", "<level>: none, info\*, error, warn, debug (\*default)", "option", False)
/usr/share/hplip/base/utils.py:1597: SyntaxWarning: invalid escape sequence \*
  USAGE_BUS2 = ("", "<bus>: cups\*, usb\*, net, bt, fw, par\* (\*defaults) (Note: bt and fw not supported in this release.)", 'option', False)
/usr/share/hplip/base/utils.py:1603: SyntaxWarning: invalid escape sequence \*
  USAGE_STD_NOTES2 = ("If -p\* is specified, the default CUPS printer will be used.", "", "note", False)
/usr/share/hplip/base/utils.py:1831: SyntaxWarning: invalid escape sequence \-
  log.info(".SH NAME\n%s \- %s" % (crumb, title))
/usr/share/hplip/base/utils.py:1930: SyntaxWarning: invalid escape sequence \w
  return re.sub("&#?\w+;", fixup, text)
/usr/share/hplip/base/utils.py:1983: SyntaxWarning: invalid escape sequence \d
  pat=re.compile('''(\d{1,})([a-z]{1,})''')
/usr/share/hplip/base/utils.py:2066: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if weburl is "" or weburl is None:
/usr/share/hplip/base/tui.py:220: SyntaxWarning: invalid escape sequence \|
  self.spinner = "\|/-\|/-*"
/usr/share/hplip/base/status.py:1335: SyntaxWarning: invalid escape sequence \s
  pjl_code_pat = re.compile("""^CODE\s*=\s*(\d.*)$""", re.IGNORECASE)
/usr/share/hplip/prnt/cups.py:171: SyntaxWarning: invalid escape sequence \s
  pat_cups_error_log = re.compile("""^loglevel\s?(debug|debug2|warn|info|error|none)""", re.I)
/usr/share/hplip/base/models.py:38: SyntaxWarning: invalid escape sequence \d
  pat_prod_num = re.compile("""(\d+)""", re.I)
/usr/share/hplip/base/models.py:424: SyntaxWarning: invalid escape sequence \d
  re.compile('^r(\d+)-agent(\d+)-kind', re.IGNORECASE) : TYPE_INT,
/usr/share/hplip/base/models.py:425: SyntaxWarning: invalid escape sequence \d
  re.compile('^r(\d+)-agent(\d+)-type', re.IGNORECASE) : TYPE_INT,
/usr/share/hplip/base/models.py:426: SyntaxWarning: invalid escape sequence \d
  re.compile('^r(\d+)-agent(\d+)-sku', re.IGNORECASE) : TYPE_STR,
/usr/share/hplip/base/models.py:427: SyntaxWarning: invalid escape sequence \d
  re.compile('^agent(\d+)-desc', re.IGNORECASE) : TYPE_STR,
/usr/share/hplip/base/models.py:428: SyntaxWarning: invalid escape sequence \d
  re.compile('^agent(\d+)-virgin', re.IGNORECASE) : TYPE_BOOL,
/usr/share/hplip/base/models.py:429: SyntaxWarning: invalid escape sequence \d
  re.compile('^agent(\d+)-dvc', re.IGNORECASE) : TYPE_INT,
/usr/share/hplip/base/models.py:430: SyntaxWarning: invalid escape sequence \d
  re.compile('^agent(\d+)-kind', re.IGNORECASE) : TYPE_INT,
/usr/share/hplip/base/models.py:431: SyntaxWarning: invalid escape sequence \d
  re.compile('^agent(\d+)-type', re.IGNORECASE) : TYPE_INT,
/usr/share/hplip/base/models.py:432: SyntaxWarning: invalid escape sequence \d
  re.compile('^agent(\d+)-id', re.IGNORECASE) : TYPE_INT,
/usr/share/hplip/base/models.py:433: SyntaxWarning: invalid escape sequence \d
  re.compile('^agent(\d+)-hp-ink', re.IGNORECASE) : TYPE_BOOL,
/usr/share/hplip/base/models.py:434: SyntaxWarning: invalid escape sequence \d
  re.compile('^agent(\d+)-health-desc', re.IGNORECASE) : TYPE_STR,
/usr/share/hplip/base/models.py:435: SyntaxWarning: invalid escape sequence \d
  re.compile('^agent(\d+)-health$', re.IGNORECASE) : TYPE_INT,
/usr/share/hplip/base/models.py:436: SyntaxWarning: invalid escape sequence \d
  re.compile('^agent(\d+)-known', re.IGNORECASE) : TYPE_BOOL,
/usr/share/hplip/base/models.py:437: SyntaxWarning: invalid escape sequence \d
  re.compile('^agent(\d+)-level', re.IGNORECASE) : TYPE_INT,
/usr/share/hplip/base/models.py:438: SyntaxWarning: invalid escape sequence \d
  re.compile('^agent(\d+)-ack', re.IGNORECASE) : TYPE_BOOL,
/usr/share/hplip/base/models.py:439: SyntaxWarning: invalid escape sequence \d
  re.compile('^agent(\d+)-sku', re.IGNORECASE) : TYPE_STR,
/usr/share/hplip/base/models.py:440: SyntaxWarning: invalid escape sequence \d
  re.compile('^in-tray(\d+)', re.IGNORECASE) : TYPE_BOOL,
/usr/share/hplip/base/models.py:441: SyntaxWarning: invalid escape sequence \d
  re.compile('^out-tray(\d+)', re.IGNORECASE) : TYPE_BOOL,
/usr/share/hplip/base/models.py:442: SyntaxWarning: invalid escape sequence \d
  re.compile('^model(\d+)', re.IGNORECASE) : TYPE_STR,

HP Linux Imaging and Printing System (ver. 3.19.6)
Printer/Fax Setup Utility ver. 9.0

Copyright (c) 2001-18 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

/usr/share/hplip/base/password.py:221: SyntaxWarning: invalid escape sequence \[
  cb = cb.replace("[", "\[")
/usr/share/hplip/base/password.py:222: SyntaxWarning: invalid escape sequence \]
  cb = cb.replace("]", "\]")
(Note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)


--------------------------------
| SELECT CONNECTION (I/O) TYPE |
--------------------------------

  Num       Connection  Description                                               
            Type                                                                  
  --------  ----------  ----------------------------------------------------------
  0*        usb         Universal Serial Bus (USB)                                
  1         net         Network/Ethernet/Wireless (direct connection or JetDirect)
  2         par         Parallel Port (LPT:)                                      

Enter number 0...2 for connection type (q=quit, enter=usb*) ? 

Using connection type: usb

 
Setting up device: hp:/usb/HP_LaserJet_Professional_M1132_MFP?serial=000000000QH707YTSI1c


/usr/share/hplip/installer/core_install.py:2060: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if home_dir is "":
/usr/share/hplip/installer/dcheck.py:36: SyntaxWarning: invalid escape sequence \d
  ver1_pat = re.compile("""(\d+\.\d+\.\d+)""", re.IGNORECASE)
/usr/share/hplip/installer/dcheck.py:37: SyntaxWarning: invalid escape sequence \d
  ver_pat = re.compile("""(\d+.\d+)""", re.IGNORECASE)
/usr/share/hplip/installer/dcheck.py:361: SyntaxWarning: invalid escape sequence \d
  xsane_ver_pat =re.compile('''xsane-(\d{1,}\.\d{1,}).*''')

-------------------
| UPDATING PLUGIN |
-------------------

/usr/share/hplip/base/g.py:305: SyntaxWarning: invalid escape sequence \|
  spinner = "\|/-\|/-"
/usr/share/hplip/base/g.py:355: SyntaxWarning: invalid escape sequence \d
  m = re.search('python(\d(\.\d){0,2})', ext_path)            #get the python version where the .so file is found
/usr/share/hplip/base/logger.py:440: SyntaxWarning: invalid escape sequence \<
  elem_start = re.findall("(\<\W{0,1}\w+) ?", line)[0]
/usr/share/hplip/base/logger.py:441: SyntaxWarning: invalid escape sequence \]
  elem_finished = re.findall("([?|\]\]]*\>)", line)[0]
/usr/share/hplip/base/logger.py:443: SyntaxWarning: invalid escape sequence \S
  attrs = re.findall("(\S*?\=\".*?\")", line)
/usr/share/hplip/base/device.py:50: SyntaxWarning: invalid escape sequence \d
  http_result_pat = re.compile("""HTTP/\d.\d\s(\d+)""", re.I)
/usr/share/hplip/base/utils.py:150: SyntaxWarning: invalid escape sequence \w
  lis = ((re.findall('SystemGroup [\w* ]*',fp.read()))[0].replace('SystemGroup ','')).split(' ')
/usr/share/hplip/base/utils.py:1589: SyntaxWarning: invalid escape sequence \*
  USAGE_LOGGING2 = ("", "<level>: none, info\*, error, warn, debug (\*default)", "option", False)
/usr/share/hplip/base/utils.py:1597: SyntaxWarning: invalid escape sequence \*
  USAGE_BUS2 = ("", "<bus>: cups\*, usb\*, net, bt, fw, par\* (\*defaults) (Note: bt and fw not supported in this release.)", 'option', False)
/usr/share/hplip/base/utils.py:1603: SyntaxWarning: invalid escape sequence \*
  USAGE_STD_NOTES2 = ("If -p\* is specified, the default CUPS printer will be used.", "", "note", False)
/usr/share/hplip/base/utils.py:1831: SyntaxWarning: invalid escape sequence \-
  log.info(".SH NAME\n%s \- %s" % (crumb, title))
/usr/share/hplip/base/utils.py:1930: SyntaxWarning: invalid escape sequence \w
  return re.sub("&#?\w+;", fixup, text)
/usr/share/hplip/base/utils.py:1983: SyntaxWarning: invalid escape sequence \d
  pat=re.compile('''(\d{1,})([a-z]{1,})''')
/usr/share/hplip/base/utils.py:2066: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if weburl is "" or weburl is None:
/usr/share/hplip/base/tui.py:220: SyntaxWarning: invalid escape sequence \|
  self.spinner = "\|/-\|/-*"
/usr/share/hplip/base/status.py:1335: SyntaxWarning: invalid escape sequence \s
  pjl_code_pat = re.compile("""^CODE\s*=\s*(\d.*)$""", re.IGNORECASE)
/usr/share/hplip/prnt/cups.py:171: SyntaxWarning: invalid escape sequence \s
  pat_cups_error_log = re.compile("""^loglevel\s?(debug|debug2|warn|info|error|none)""", re.I)
/usr/share/hplip/base/models.py:38: SyntaxWarning: invalid escape sequence \d
  pat_prod_num = re.compile("""(\d+)""", re.I)
/usr/share/hplip/base/models.py:424: SyntaxWarning: invalid escape sequence \d
  re.compile('^r(\d+)-agent(\d+)-kind', re.IGNORECASE) : TYPE_INT,
/usr/share/hplip/base/models.py:425: SyntaxWarning: invalid escape sequence \d
  re.compile('^r(\d+)-agent(\d+)-type', re.IGNORECASE) : TYPE_INT,
/usr/share/hplip/base/models.py:426: SyntaxWarning: invalid escape sequence \d
  re.compile('^r(\d+)-agent(\d+)-sku', re.IGNORECASE) : TYPE_STR,
/usr/share/hplip/base/models.py:427: SyntaxWarning: invalid escape sequence \d
  re.compile('^agent(\d+)-desc', re.IGNORECASE) : TYPE_STR,
/usr/share/hplip/base/models.py:428: SyntaxWarning: invalid escape sequence \d
  re.compile('^agent(\d+)-virgin', re.IGNORECASE) : TYPE_BOOL,
/usr/share/hplip/base/models.py:429: SyntaxWarning: invalid escape sequence \d
  re.compile('^agent(\d+)-dvc', re.IGNORECASE) : TYPE_INT,
/usr/share/hplip/base/models.py:430: SyntaxWarning: invalid escape sequence \d
  re.compile('^agent(\d+)-kind', re.IGNORECASE) : TYPE_INT,
/usr/share/hplip/base/models.py:431: SyntaxWarning: invalid escape sequence \d
  re.compile('^agent(\d+)-type', re.IGNORECASE) : TYPE_INT,
/usr/share/hplip/base/models.py:432: SyntaxWarning: invalid escape sequence \d
  re.compile('^agent(\d+)-id', re.IGNORECASE) : TYPE_INT,
/usr/share/hplip/base/models.py:433: SyntaxWarning: invalid escape sequence \d
  re.compile('^agent(\d+)-hp-ink', re.IGNORECASE) : TYPE_BOOL,
/usr/share/hplip/base/models.py:434: SyntaxWarning: invalid escape sequence \d
  re.compile('^agent(\d+)-health-desc', re.IGNORECASE) : TYPE_STR,
/usr/share/hplip/base/models.py:435: SyntaxWarning: invalid escape sequence \d
  re.compile('^agent(\d+)-health$', re.IGNORECASE) : TYPE_INT,
/usr/share/hplip/base/models.py:436: SyntaxWarning: invalid escape sequence \d
  re.compile('^agent(\d+)-known', re.IGNORECASE) : TYPE_BOOL,
/usr/share/hplip/base/models.py:437: SyntaxWarning: invalid escape sequence \d
  re.compile('^agent(\d+)-level', re.IGNORECASE) : TYPE_INT,
/usr/share/hplip/base/models.py:438: SyntaxWarning: invalid escape sequence \d
  re.compile('^agent(\d+)-ack', re.IGNORECASE) : TYPE_BOOL,
/usr/share/hplip/base/models.py:439: SyntaxWarning: invalid escape sequence \d
  re.compile('^agent(\d+)-sku', re.IGNORECASE) : TYPE_STR,
/usr/share/hplip/base/models.py:440: SyntaxWarning: invalid escape sequence \d
  re.compile('^in-tray(\d+)', re.IGNORECASE) : TYPE_BOOL,
/usr/share/hplip/base/models.py:441: SyntaxWarning: invalid escape sequence \d
  re.compile('^out-tray(\d+)', re.IGNORECASE) : TYPE_BOOL,
/usr/share/hplip/base/models.py:442: SyntaxWarning: invalid escape sequence \d
  re.compile('^model(\d+)', re.IGNORECASE) : TYPE_STR,

HP Linux Imaging and Printing System (ver. 3.19.6)
Plugin Download and Install Utility ver. 2.1

Copyright (c) 2001-18 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.


HP Linux Imaging and Printing System (ver. 3.19.6)
Plugin Download and Install Utility ver. 2.1

Copyright (c) 2001-18 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

/usr/share/hplip/base/password.py:221: SyntaxWarning: invalid escape sequence \[
  cb = cb.replace("[", "\[")
/usr/share/hplip/base/password.py:222: SyntaxWarning: invalid escape sequence \]
  cb = cb.replace("]", "\]")
/usr/share/hplip/installer/core_install.py:2060: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if home_dir is "":
/usr/share/hplip/installer/dcheck.py:36: SyntaxWarning: invalid escape sequence \d
  ver1_pat = re.compile("""(\d+\.\d+\.\d+)""", re.IGNORECASE)
/usr/share/hplip/installer/dcheck.py:37: SyntaxWarning: invalid escape sequence \d
  ver_pat = re.compile("""(\d+.\d+)""", re.IGNORECASE)
/usr/share/hplip/installer/dcheck.py:361: SyntaxWarning: invalid escape sequence \d
  xsane_ver_pat =re.compile('''xsane-(\d{1,}\.\d{1,}).*''')
(Note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)


-----------------------------------------
| PLUG-IN INSTALLATION FOR HPLIP 3.19.6 |
-----------------------------------------

  Option      Description                                       
  ----------  --------------------------------------------------
  d           Download plug-in from HP (recommended)            
  p           Specify a path to the plug-in (advanced)          
  q           Quit hp-plugin (skip installation)                

Enter option (d=download*, p=specify path, q=quit) ? 

-------------------
| DOWNLOAD PLUGIN |
-------------------

Checking for network connection...
Downloading plug-in from: 
Downloading plug-in: [\                                                                                                                                                                                                 ] 0%     Traceback (most recent call last):
  File "/usr/bin/hp-plugin", line 367, in <module>
    status, plugin_path, error_str = pluginObj.download(plugin_path, plugin_download_callback)
  File "/usr/share/hplip/installer/pluginhandler.py", line 254, in download
    core = core_install.CoreInstall()
  File "/usr/share/hplip/installer/core_install.py", line 240, in __init__
    self.passwordObj = password.Password(ui_mode)
  File "/usr/share/hplip/base/password.py", line 113, in __init__
    self.__readAuthType()  # self.__authType
  File "/usr/share/hplip/base/password.py", line 135, in __readAuthType
    distro_name = get_distro_name().lower()
  File "/usr/share/hplip/base/password.py", line 81, in get_distro_name
    os_name = platform.dist()[0]
AttributeError: module 'platform' has no attribute 'dist'
error: Failed to install Plugin.
error: The device you are trying to setup requires a binary plug-in. Some functionalities may not work as expected without plug-ins. Please run 'hp-plugin' as normal user to install plug-ins.Visit http://hplipopensource.com for more infomation.

Comment 1 Mikhail 2019-08-25 12:51:33 UTC
# rpm -q hplip
hplip-3.19.6-6.fc32.x86_64

Comment 2 Zdenek Dohnal 2019-09-06 10:31:11 UTC
*** Bug 1745334 has been marked as a duplicate of this bug. ***

Comment 3 Zdenek Dohnal 2019-09-06 12:12:52 UTC
Hi Mikhail,

thank you for reporting the issue, it will be fixed in hplip-3.19.6-7, which will be build in hour or so.

Although I have not cover syntax warnings yet, but with patch I prepared it should be possible to install plugin.


Note You need to log in before you can comment on or make changes to this bug.