Ubuntu 20.04 Permission denied: '/var/crash/_usr_share_hplip_setup.py.1000.crash'

Asked by Art Pina on 2020-12-13

I've compiled and installed hplip-3.20.11 with no errors, but hp-setup keeps bringing the error below.
I've installed every package I thought was required, but it just fails with,
Python 3.8.5 as my default under Ubuntu 20.04.1 LTS with kernel 5.4.0-56-generic #62-Ubuntu SMP Mon Nov 23 19:20:19 UTC 2020 x86_64.
I've Googled until I ran in circles.
My initial attempt was just running the script, install hplip-3.20.11.run.

Traceback (most recent call last):
  File "/usr/bin/hp-setup", line 48, in <module>
    from base import device, utils, tui, models, module, services, os_utils
  File "/usr/share/hplip/base/device.py", line 42, in <module>
    from . import status
  File "/usr/share/hplip/base/status.py", line 33, in <module>
    import cupsext
ImportError: libhpipp.so.0: failed to map segment from shared object
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 153, in apport_excepthook
    with os.fdopen(os.open(pr_filename,
PermissionError: [Errno 13] Permission denied: '/var/crash/_usr_share_hplip_setup.py.1000.crash'

Original exception was:
Traceback (most recent call last):
  File "/usr/bin/hp-setup", line 48, in <module>
    from base import device, utils, tui, models, module, services, os_utils
  File "/usr/share/hplip/base/device.py", line 42, in <module>
    from . import status
  File "/usr/share/hplip/base/status.py", line 33, in <module>
    import cupsext
ImportError: libhpipp.so.0: failed to map segment from shared object

Question information

Language:
English Edit question
Status:
Needs information
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Last query:
2021-02-22
Last reply:
2021-02-22
Launchpad Janitor (janitor) said : #1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Art Pina (pinaart) said : #2

I upgraded my kernel to 5.7.1-050701-generic and ran hplip-3.20.11.run again and also sudo apt-get install hplip-gui, but hp-setup still crashes the same way. hp-check -r showed everything was "OK" yesterday, except for a warning, "Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend for HP-Devices."
But this morning, it shows,
warning: ubuntu-20.04 version is not supported. Using ubuntu-19.10 versions dependencies to verify and install...
 error: cups CUPS - Common Unix Printing System REQUIRED 1.1 - INCOMPAT 'CUPS may not be installed or not running'
 error: python3-pyqt4-dbus PyQt 4 DBus - DBus Support for PyQt4 OPTIONAL 4.0 - MISSING 'python3-pyqt4-dbus needs to be installed'
 error: python3-pyqt4 PyQt 4- Qt interface for Python (for Qt version 4.x) REQUIRED 4.0 - MISSING 'python3-pyqt4 needs to be installed'
error: NOT FOUND OR FAILED TO LOAD! Please reinstall HPLIP and check for the proper installation of hpmudext.
 error: hpmudext IO-Extension REQUIRED - 3.20.11 MISSING 'Not Found or Failed to load, Please reinstall HPLIP'

Since I have new information, I'll pursue this, but I'd still appreciate some expert help.
Thank you, Art

Then in the "Missing Required Dependencies" section,
error: 'libcups2' package is missing/incompatible
error: 'python3-pyqt4' package is missing/incompatible
error: 'gtk2-engines-pixbuf' package is missing/incompatible

and in "Missing Optional Dependencies",
error: 'python3-dbus.mainloop.qt' package is missing/incompatible

Total Errors: 4
Total Warnings: 0

Manfred Hampl (m-hampl) said : #3

You should either install the version of HPLIP from the Ubuntu reposirories OR the *.run version from the HPLIP web pages, but not both at the same time.

Art Pina (pinaart) said : #4

I only did both, several times, iteratively since neither method worked.
I.e., I did the .run, got an error. Uninstalled it and purged remnants, installed from repo, failed, uninstalled and purged, repeat.

Manfred Hampl (m-hampl) said : #5

What failure did you get when installing from the Ubuntu repositories?

Can you help with this problem?

Provide an answer of your own, or ask Art Pina for more information if necessary.

To post a message you must log in.