Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: Upgrade from LEAP 15.2 to LEAP 15.3 kills scanner

  1. #11

    Default Re: Upgrade from LEAP 15.2 to LEAP 15.3 kills scanner

    sudo hp-plugin -i -p .

    gives the following:

    Code:
    [01mHP Linux Imaging and Printing System (ver. 3.21.10)[0m
    [01mPlugin Download and Install Utility ver. 2.1[0m
    
    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.
    
    [35;01mwarning: It is not recommended to run 'hp-plugin' in a root mode.[0m
    
    [01mHP Linux Imaging and Printing System (ver. 3.21.10)[0m
    [01mPlugin Download and Install Utility ver. 2.1[0m
    
    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.
    
    (Note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)
    
    
    ------------------------------------------
    | PLUG-IN INSTALLATION FOR HPLIP 3.21.10 |
    ------------------------------------------
    
    
    ---------------
    | COPY PLUGIN |
    ---------------
    
    Downloading plug-in from: file:///home/ajw/hplip-3.21.10-plugin.run
    Traceback (most recent call last):
      File "/usr/bin/hp-plugin", line 361, in <module>
        pm = tui.ProgressMeter("Downloading plug-in:")
      File "/usr/share/hplip/base/tui.py", line 222, in __init__
        self.max_size = ttysize()[1] - len(prompt) - 25
      File "/usr/share/hplip/base/tui.py", line 200, in ttysize
        ln1 = subprocess.getoutput('stty -a').splitlines()[0]
      File "/usr/lib64/python3.6/subprocess.py", line 556, in getoutput
        return getstatusoutput(cmd)[1]
      File "/usr/lib64/python3.6/subprocess.py", line 537, in getstatusoutput
        data = check_output(cmd, shell=True, universal_newlines=True, stderr=STDOUT)
      File "/usr/lib64/python3.6/subprocess.py", line 356, in check_output
        **kwargs).stdout
      File "/usr/lib64/python3.6/subprocess.py", line 423, in run
        with Popen(*popenargs, **kwargs) as process:
      File "/usr/lib64/python3.6/subprocess.py", line 729, in __init__
        restore_signals, start_new_session)
      File "/usr/lib64/python3.6/subprocess.py", line 1364, in _execute_child
        raise child_exception_type(errno_num, err_msg, err_filename)
    PermissionError: [Errno 13] Permission denied: '/bin/sh'
    Looks similar to non sudo output apart from warning about running it as root.

  2. #12

    Default Re: Upgrade from LEAP 15.2 to LEAP 15.3 kills scanner

    sudo hp-plugin gives the following:

    Code:
    [01mHP Linux Imaging and Printing System (ver. 3.21.10)[0m
    [01mPlugin Download and Install Utility ver. 2.1[0m
    
    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.
    
    [35;01mwarning: It is not recommended to run 'hp-plugin' in a root mode.[0m
    
    [01mHP Linux Imaging and Printing System (ver. 3.21.10)[0m
    [01mPlugin Download and Install Utility ver. 2.1[0m
    
    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.
    
    (Note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)
    
    
    ------------------------------------------
    | PLUG-IN INSTALLATION FOR HPLIP 3.21.10 |
    ------------------------------------------
    
    
    ---------------
    | COPY PLUGIN |
    ---------------
    
    Downloading plug-in from: file:///home/ajw/hplip-3.21.10-plugin.run
    Traceback (most recent call last):
      File "/usr/bin/hp-plugin", line 361, in <module>
        pm = tui.ProgressMeter("Downloading plug-in:")
      File "/usr/share/hplip/base/tui.py", line 222, in __init__
        self.max_size = ttysize()[1] - len(prompt) - 25
      File "/usr/share/hplip/base/tui.py", line 200, in ttysize
        ln1 = subprocess.getoutput('stty -a').splitlines()[0]
      File "/usr/lib64/python3.6/subprocess.py", line 556, in getoutput
        return getstatusoutput(cmd)[1]
      File "/usr/lib64/python3.6/subprocess.py", line 537, in getstatusoutput
        data = check_output(cmd, shell=True, universal_newlines=True, stderr=STDOUT)
      File "/usr/lib64/python3.6/subprocess.py", line 356, in check_output
        **kwargs).stdout
      File "/usr/lib64/python3.6/subprocess.py", line 423, in run
        with Popen(*popenargs, **kwargs) as process:
      File "/usr/lib64/python3.6/subprocess.py", line 729, in __init__
        restore_signals, start_new_session)
      File "/usr/lib64/python3.6/subprocess.py", line 1364, in _execute_child
        raise child_exception_type(errno_num, err_msg, err_filename)
    PermissionError: [Errno 13] Permission denied: '/bin/sh'
    Apart from a warning about not running as root looks similar to non-root version.

  3. #13

    Default Re: Upgrade from LEAP 15.2 to LEAP 15.3 kills scanner

    On the basis that the hp-plugin failed, I tried the following:

    sh hplip-3.21.10-plugin.run

    which gave the following:

    Code:
    Verifying archive integrity... All good.
    Uncompressing HPLIP 3.21.10 Plugin Self Extracting Archive..............................................................
    Error importing HPLIP modules.  Is HPLIP installed?
    hplip python files appear to be installed under /usr/share/hplip

    Where is the script looking?


  4. #14

    Default Re: Upgrade from LEAP 15.2 to LEAP 15.3 kills scanner

    To qualify the last comment, what controls the search path of python scripts?

  5. #15

    Default Re: Upgrade from LEAP 15.2 to LEAP 15.3 kills scanner

    I have actually managed to get the install script to run using the follow sequence:

    The following retains the unpacked archive.
    Code:
    sh hplip-3.21.10-plugin.run --keep
    The following allowed me to determine that bash script hplip-plugin-install was the next script in the chain of execution.
    Code:
    bash -x hplip-3.21.10-plugin.run --keep
    hplip-plugin-install
    Code:
    #!/bin/bash
    
    # su/sudo wrapper for HPLIP installer
    
    if [ $# -eq 6 ]
    then
       `$6 --version &> /dev/null`
        if [ $? -eq 0 ]
        then
            $6 ./plugin_install.py $1 $2 $3 $4 $5
        else
            python ./plugin_install.py $1 $2 $3 $4 $5
        fi
    else
        if [ -f /usr/bin/python ]
        then
            python ./plugin_install.py $1 $2 $3 $4 $5
        else
            python3 ./plugin_install.py $1 $2 $3 $4 $5
        fi
    fi
    I'm still not sure whether Leap 15.3 should be defaulting to Python2 or Python3; I opted for Python3; I ran the following command under "pdb":
    Code:
    python3 -m pdb ./plugin_install.py -v 3.21.10 -c 64
    I stepped through the python install script and it worked under pdb; this suggests there is something wrong with the python environment.

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •