You are not logged in.

#1 2017-09-13 10:23:23

Wmog
Member
Registered: 2017-09-13
Posts: 25

Hplip does not work, Python's Cups error [Solved]

Hey,

I'm trying to install driver for printer HP Deskjet P2055 DN. First, i installed hplip 3.17.7-1. Then I tried to install printer from terminal. Here is the output of hp-setup -i:

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
ModuleNotFoundError: No module named 'cupsext'

However Cups is well installed. Also I tried solutions proposed here:
https://bbs.archlinux.org/viewtopic.php?id=210452
https://bugs.archlinux.org/task/45358

My default Python interpreter is Python 3, but I tried the above solutions with Python 2 by putting it as the first position in my $PATH.

Thank you in advance for your help.

Last edited by Wmog (2017-09-13 15:36:17)

Offline

#2 2017-09-13 11:45:15

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,098

Re: Hplip does not work, Python's Cups error [Solved]

Post the output of

pacman -Qkk hplip

and

ls -l $(which python)

Last edited by arojas (2017-09-13 11:45:33)

Offline

#3 2017-09-13 11:56:51

Wmog
Member
Registered: 2017-09-13
Posts: 25

Re: Hplip does not work, Python's Cups error [Solved]

pacman -Qkk hplip

outputs:

hplip: 2582 total files, 0 altered files

and

ls -l $(which python)

outputs:

lrwxrwxrwx 1 <user> <user> 9 Jun 16 11:55 /home/<user>/Libs_and_dists/anaconda3/bin/python -> python3.6

When I set Python 2 as my default interpreter the output of the latter is then:

lrwxrwxrwx 1 <user> <user> 9 Jun 16 11:50 /home/<user>/Libs_and_dists/anaconda2/bin/python -> python2.7

Offline

#4 2017-09-13 12:23:11

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,098

Re: Hplip does not work, Python's Cups error [Solved]

You are overriding the system python installation with your own local anaconda copy. This will lead to all sorts of breakage.

Offline

#5 2017-09-13 13:27:23

Wmog
Member
Registered: 2017-09-13
Posts: 25

Re: Hplip does not work, Python's Cups error [Solved]

arojas wrote:

You are overriding the system python installation with your own local anaconda copy. This will lead to all sorts of breakage.

Problem solved. The problem stemmed from overriding the system python installation with my own local anaconda copy. I restore the native system python installation and now it works.

Thank you arojas !

Last edited by Wmog (2017-09-13 15:36:00)

Offline

#6 2021-09-15 07:36:28

0BADC0DE
Member
From: Regnum Utriusque Siciliae
Registered: 2018-02-21
Posts: 269

Re: Hplip does not work, Python's Cups error [Solved]

Wmog wrote:
arojas wrote:

You are overriding the system python installation with your own local anaconda copy. This will lead to all sorts of breakage.

Problem solved. The problem stemmed from overriding the system python installation with my own local anaconda copy. I restore the native system python installation and now it works.

Thank you arojas !

How have done it?


Maybe Computers Will Never Become As Intelligent
As Humans. Surely They Won't Ever Become So Stupid.

Offline

Board footer

Powered by FluxBB