Setup of HP ScanJet Pro 2000 s2 on Ubuntu 18.04 fails

Asked by Klaus Bogotz on 2021-02-05

Got an HP ScanJet Pro 2000 s2 scanner and want to use it with Ubuntu 18.04. The installation fails although it was carried out exactly according to the instructions.
Neither hplip-3.20.6.run
hplip-3.20.11.run (automatic installation) run without errors.
First error message:
sudo -H pip2 install opencv-python (Scanjet-depend step 10)
warning: Failed to install this Scanjet dependency package. Some Scanjet features will not work.
Tried to install opencv-python with apt but it's not in the repositories. Found python3-opencv and installed it. Same error message.
Second error message:
After every installation I get: No system tray detected on this system. Unable to start, exiting.
Additional question:
I have 30 days to return the scanner and would then buy the HP ScanJet Pro 3000 s4 which also accepts the Twain standard. Would I have fewer problems there?
Many thanks in advance.
Klaus

Question information

Language:
English Edit question
Status:
Answered
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Manfred Hampl (m-hampl) said : #1

For diagnostic purposes please provide the output that you receive for the following commands:

uname -a
lsb_release -crid
apt-cache policy python-opencv python3-opencv
sudo -H pip2 install opencv-python

Klaus Bogotz (klabog) said : #2

Hi Manfred,

following the requested informations.
Thanks for your interest!
Klaus

uname -a:

Linux acer-3 5.4.0-65-generic #73~18.04.1-Ubuntu SMP Tue Jan 19 09:02:24
UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

lsb_release -crid:

Distributor ID: Ubuntu
Description: Ubuntu 18.04.5 LTS
Release: 18.04
Codename: bionic

apt-cache policy python-opencv python3-opencv:

python-opencv:
   Installiert: (keine)
   Installationskandidat: 3.2.0+dfsg-4ubuntu0.1
   Versionstabelle:
      3.2.0+dfsg-4ubuntu0.1 500
         500 http://de.archive.ubuntu.com/ubuntu bionic-updates/universe
amd64 Packages
         500 http://security.ubuntu.com/ubuntu bionic-security/universe
amd64 Packages
      3.2.0+dfsg-4build2 500
         500 http://de.archive.ubuntu.com/ubuntu bionic/universe amd64
Packages
python3-opencv:
   Installiert: 3.2.0+dfsg-4ubuntu0.1
   Installationskandidat: 3.2.0+dfsg-4ubuntu0.1
   Versionstabelle:
  *** 3.2.0+dfsg-4ubuntu0.1 500
         500 http://de.archive.ubuntu.com/ubuntu bionic-updates/universe
amd64 Packages
         500 http://security.ubuntu.com/ubuntu bionic-security/universe
amd64 Packages
         100 /var/lib/dpkg/status
      3.2.0+dfsg-4build2 500
         500 http://de.archive.ubuntu.com/ubuntu bionic/universe amd64
Packages

sudo -H pip2 install opencv-python:

DEPRECATION: Python 2.7 reached the end of its life on January 1st,
2020. Please upgrade your Python as Python 2.7 is no longer maintained.
pip 21.0 will drop support for Python 2.7 in January 2021. More details
about Python 2 support in pip can be found at
https://pip.pypa.io/en/latest/development/release-process/#python-2-support
pip 21.0 will remove support for this functionality.
Collecting opencv-python
   Using cached opencv-python-4.3.0.38.tar.gz (88.0 MB)
   Installing build dependencies ... done
   Getting requirements to build wheel ... error
   ERROR: Command errored out with exit status 1:
    command: /usr/bin/python
/usr/local/lib/python2.7/dist-packages/pip/_vendor/pep517/_in_process.py
get_requires_for_build_wheel /tmp/tmpgSLu28
        cwd: /tmp/pip-install-xwAT3B/opencv-python
   Complete output (22 lines):
   Traceback (most recent call last):
     File
"/usr/local/lib/python2.7/dist-packages/pip/_vendor/pep517/_in_process.py",
line 280, in <module>
       main()
     File
"/usr/local/lib/python2.7/dist-packages/pip/_vendor/pep517/_in_process.py",
line 263, in main
       json_out['return_val'] = hook(**hook_input['kwargs'])
     File
"/usr/local/lib/python2.7/dist-packages/pip/_vendor/pep517/_in_process.py",
line 114, in get_requires_for_build_wheel
       return hook(config_settings)
     File
"/tmp/pip-build-env-xUjDA3/overlay/lib/python2.7/site-packages/setuptools/build_meta.py",
line 146, in get_requires_for_build_wheel
       return self._get_build_requires(config_settings,
requirements=['wheel'])
     File
"/tmp/pip-build-env-xUjDA3/overlay/lib/python2.7/site-packages/setuptools/build_meta.py",
line 127, in _get_build_requires
       self.run_setup()
     File
"/tmp/pip-build-env-xUjDA3/overlay/lib/python2.7/site-packages/setuptools/build_meta.py",
line 243, in run_setup
       self).run_setup(setup_script=setup_script)
     File
"/tmp/pip-build-env-xUjDA3/overlay/lib/python2.7/site-packages/setuptools/build_meta.py",
line 142, in run_setup
       exec(compile(code, __file__, 'exec'), locals())
     File "setup.py", line 448, in <module>
       main()
     File "setup.py", line 99, in main
       % {"ext": re.escape(sysconfig.get_config_var("EXT_SUFFIX"))}
     File "/usr/lib/python2.7/re.py", line 210, in escape
       s = list(pattern)
   TypeError: 'NoneType' object is not iterable
   ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python
/usr/local/lib/python2.7/dist-packages/pip/_vendor/pep517/_in_process.py
get_requires_for_build_wheel /tmp/tmpgSLu28 Check the logs for full
command output.

Manfred Hampl (m-hampl) said : #3

"Tried to install opencv-python with apt but it's not in the repositories."

It is named python-opencv in the Ubuntu repositories.

Klaus Bogotz (klabog) said : #4

Installed "python-opencv" manually because the script
"hplip-3.20.11.run" tries to install "opencv-python" which is the wrong
name.

I don't remember all steps I did, but got an error which told me to
install "hp-plugin" manually which gave the following error:

"Plugin installation failed
error: Python gobject/dbus may be not installed
error: Plug-in install failed."

I should mention, that I had to plugin the scanner into an USB 2.0 port,
because with USB 3.0 there was no reaction plugging in and out.

The scanner still not is recognized. Further help would be appreciated.
Klaus

Am 06.02.21 um 15:25 schrieb Manfred Hampl:
> Your question #695389 on HPLIP changed:
> https://answers.launchpad.net/hplip/+question/695389
>
> Status: Open => Answered
>
> Manfred Hampl proposed the following answer:
> "Tried to install opencv-python with apt but it's not in the
> repositories."
>
> It is named python-opencv in the Ubuntu repositories.
>

Manfred Hampl (m-hampl) said : #5

You can manually download the plugin installer from https://developers.hp.com/hp-linux-imaging-and-printing/plugins and then install the pluging with the command "sh hplip-3.20.11-plugin.run" (change the number if applicable, has to be the same as the HPLIP installation that yo already have).

Can you help with this problem?

Provide an answer of your own, or ask Klaus Bogotz for more information if necessary.

To post a message you must log in.