You are not logged in.
Hi - I need some assistance with my systems not printing or scanning over WIFI.
The printer/scanner is a HP_LaserJet_100_colorMFP_M175nw
When I try to print I get:
There was a problem sending document 'document name' to the printer.
Cups is running as I can print a pdf to a file and I can see my printer at:
localhost:631/printers/
I have stopped and started cups mulitple times:
systemctl stop cups.service
systemctl disable cups.service
systemctl enable cups.service
systemctl start cups.serive
I've re-installed Cups a few times. I've also downgraded Cups, but that didn't help either.
I'm guessing whatever the issue is, it occured 3 - 4 weeks ago as I don't print or scan that often.
I have 2 systems running Arch and both can no longer print via WIFI
I can print from my cell phone, so I know the printer works.
In
/var/log/cups/error_log
it seems to indicate a broken pipe:
D [11/Jan/2021:16:20:51 -0500] cupsdSetBusyState: newbusy="Not busy", busy="Not busy"
D [11/Jan/2021:16:20:51 -0500] cupsdSetBusyState: newbusy="Active clients", busy="Not busy"
D [11/Jan/2021:16:20:51 -0500] [Client 241] Server address is "/run/cups/cups.sock".
D [11/Jan/2021:16:20:51 -0500] [Client 241] Accepted from localhost (Domain)
D [11/Jan/2021:16:20:51 -0500] [Client 241] Waiting for request.
D [11/Jan/2021:16:20:51 -0500] cupsdSetBusyState: newbusy="Active clients", busy="Active clients"
D [11/Jan/2021:16:20:51 -0500] [Client 242] Server address is "/run/cups/cups.sock".
D [11/Jan/2021:16:20:51 -0500] [Client 242] Accepted from localhost (Domain)
D [11/Jan/2021:16:20:51 -0500] [Client 242] Waiting for request.
D [11/Jan/2021:16:20:51 -0500] [Client 241] HTTP_STATE_WAITING Closing for error 32 (Broken pipe)
D [11/Jan/2021:16:20:51 -0500] [Client 241] Closing connection.
D [11/Jan/2021:16:20:51 -0500] cupsdSetBusyState: newbusy="Not busy", busy="Active clients"
D [11/Jan/2021:16:20:51 -0500] [Client 242] POST / HTTP/1.1
D [11/Jan/2021:16:20:51 -0500] cupsdSetBusyState: newbusy="Active clients", busy="Not busy"
D [11/Jan/2021:16:20:51 -0500] [Client 242] Read: status=200, state=6
D [11/Jan/2021:16:20:51 -0500] [Client 242] No authentication data provided.
D [11/Jan/2021:16:20:51 -0500] [Client 242] 2.0 CUPS-Get-Printers 1
D [11/Jan/2021:16:20:51 -0500] CUPS-Get-Printers
D [11/Jan/2021:16:20:51 -0500] [Client 242] Returning IPP successful-ok for CUPS-Get-Printers (no URI) from localhost.
D [11/Jan/2021:16:20:51 -0500] [Client 242] Content-Length: 1764
D [11/Jan/2021:16:20:51 -0500] [Client 242] cupsdSendHeader: code=200, type="application/ipp", auth_type=0
D [11/Jan/2021:16:20:51 -0500] [Client 242] con->http=0x55befd3af3b0
D [11/Jan/2021:16:20:51 -0500] [Client 242] cupsdWriteClient error=0, used=0, state=HTTP_STATE_POST_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=1764, response=0x55befd3a8720(IPP_STATE_DATA), pipe_pid=0, file=-1
D [11/Jan/2021:16:20:51 -0500] [Client 242] Writing IPP response, ipp_state=IPP_STATE_DATA, old wused=0, new wused=0
D [11/Jan/2021:16:20:51 -0500] [Client 242] bytes=0, http_state=0, data_remaining=1764
D [11/Jan/2021:16:20:51 -0500] [Client 242] Flushing write buffer.
D [11/Jan/2021:16:20:51 -0500] [Client 242] New state is HTTP_STATE_WAITING
D [11/Jan/2021:16:20:51 -0500] [Client 242] Waiting for request.
D [11/Jan/2021:16:20:51 -0500] cupsdSetBusyState: newbusy="Not busy", busy="Active clients"
D [11/Jan/2021:16:20:51 -0500] [Client 242] HTTP_STATE_WAITING Closing for error 32 (Broken pipe)
D [11/Jan/2021:16:20:51 -0500] [Client 242] Closing connection.
D [11/Jan/2021:16:20:51 -0500] cupsdSetBusyState: newbusy="Not busy", busy="Not busy"
D [11/Jan/2021:16:20:51 -0500] cupsdSetBusyState: newbusy="Active clients", busy="Not busy"
D [11/Jan/2021:16:20:51 -0500] [Client 243] Server address is "/run/cups/cups.sock".
D [11/Jan/2021:16:20:51 -0500] [Client 243] Accepted from localhost (Domain)
D [11/Jan/2021:16:20:51 -0500] [Client 243] Waiting for request.
D [11/Jan/2021:16:20:51 -0500] cupsdSetBusyState: newbusy="Active clients", busy="Active clients"
D [11/Jan/2021:16:20:51 -0500] [Client 244] Server address is "/run/cups/cups.sock".
D [11/Jan/2021:16:20:51 -0500] [Client 244] Accepted from localhost (Domain)
D [11/Jan/2021:16:20:51 -0500] [Client 244] Waiting for request.
D [11/Jan/2021:16:20:51 -0500] [Client 243] HTTP_STATE_WAITING Closing for error 32 (Broken pipe)
Not sure if that's a real issue or not.
Any thoughts would be appreciated.
Last edited by Gotit (2021-01-28 23:25:59)
Offline
D [11/Jan/2021:16:20:51 -0500] [Client 241] HTTP_STATE_WAITING Closing for error 32 (Broken pipe)
is from the cups http interface (localhost:631)
Can you ping/nmap the printer IP?
Do you use hplip (and forgot to update hplip-plugin)?
Offline
Yes, I can successfully ping my printer's IP.
I installed the updated hplip and hplip-plugin. This allows me to print, but not scan.
So I ran
$hp-check
Which returned an error that I needed Python3 PyQt4. So I installed that.
Now I get
$hp-check
Traceback (most recent call last):
File "/usr/bin/hp-check", line 862, in <module>
num_errors, num_warns = dep.validate(time_flag, is_quiet_mode)
File "/usr/bin/hp-check", line 367, in validate
self.__update_deps_info(supported_distro_vrs, dep,
File "/usr/bin/hp-check", line 210, in __update_deps_info
installed_ver = self.core.version_func[deps_info[6]]()
File "/usr/share/hplip/installer/dcheck.py", line 303, in get_pyQt4_version
from PyQt4 import QtCore
ModuleNotFoundError: No module named 'PyQt4.sip'
However I do have this directory
/usr/share/sip/PyQt4/
I tried to run
$hp-setup
error: No devices found on bus: net
error: HPLIP cannot detect printers in your network. This may be due to existing firewall settings blocking the required ports.
When you are in a trusted network environment, you may open the ports for network services like mdns and slp in the firewall. For detailed steps follow the link.
http://hplipopensource.com/node/374
Not sure where to go from here
Last edited by Gotit (2021-01-12 20:03:58)
Offline
https://wiki.archlinux.org/index.php/SA … roblems#HP
Also check https://wiki.archlinux.org/index.php/SANE
I don't have a HP scanner, so I also have no experience w/ hplip scanning.
Offline
Wondering if I could have a python problem...
When hplip tries to get the PyQt4 version it reports no PyQt4.sip
$hp-check
Traceback (most recent call last):
File "/usr/bin/hp-check", line 862, in <module>
num_errors, num_warns = dep.validate(time_flag, is_quiet_mode)
File "/usr/bin/hp-check", line 367, in validate
self.__update_deps_info(supported_distro_vrs, dep,
File "/usr/bin/hp-check", line 210, in __update_deps_info
installed_ver = self.core.version_func[deps_info[6]]()
File "/usr/share/hplip/installer/dcheck.py", line 303, in get_pyQt4_version
from PyQt4 import QtCore
ModuleNotFoundError: No module named 'PyQt4.sip'
When I ask python the version, it can only report for PyQt5
$ python
Python 3.9.1 (default, Dec 13 2020, 11:55:53)
[GCC 10.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from PyQt4.QtCore import QT_VERSION_STR
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'PyQt4.sip'
>>> from PyQt5.QtCore import QT_VERSION_STR
>>> print("Qt version:", QT_VERSION_STR)
Qt version: 5.15.2
>>> from sip import SIP_VERSION_STR
>>> print("SIP version:", SIP_VERSION_STR)
SIP version: 5.4.0
>>>
Could PyQt5 have deleted the PyQt4 sip? How would I go about getting PyQt4 back without dropping PyQt5?
Offline
PyQt4 is unnecessary, hplip from the arch repositories should use PyQt5 instead. (The ui-toolkit in /etc/hp/hplip.conf should be qt5)
Last edited by progandy (2021-01-19 16:59:02)
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |
Offline
Yes, the hplip.conf is qt5
# hplip.conf. Generated from hplip.conf.in by configure.
[hplip]
version=3.20.11
[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-3.20.11
html=/usr/share/doc/hplip-3.20.11
icon=/usr/share/applications
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv/hp
bin=/usr/bin
apparmor=/etc/apparmor.d
# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
libusb01-build=no
pp-build=yes
gui-build=yes
scanner-build=yes
fax-build=yes
dbus-build=yes
cups11-build=no
doc-build=yes
shadow-build=no
hpijs-install=no
foomatic-drv-install=no
foomatic-ppd-install=no
foomatic-rip-hplip-install=no
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=no
internal-tag=3.20.11
restricted-build=no
ui-toolkit=qt5
qt3=no
qt4=no
qt5=yes
policy-kit=no
lite-build=no
udev_sysfs_rules=no
hpcups-only-build=no
hpijs-only-build=no
apparmor_build=no
class-driver=no
and I'm running hplip 3.20.11-2 from the arch repos.
But inside usr/share/hplip/installer/dcheck.py there's this:
def get_python_dbus_ver():
try:
import dbus
dbus_version ="-"
try:
dbus_version = dbus.__version__
except AttributeError:
try:
dbus_version = '.'.join([str(x) for x in dbus.version])
except AttributeError:
dbus_version = '-'
except ImportError:
dbus_version = '-'
return dbus_version
def get_pyQt4_version():
log.debug("Checking PyQt 4.x version...")
ver ='-'
# PyQt 4
try:
import PyQt4
except ImportError:
ver='-'
else:
from PyQt4 import QtCore
ver = QtCore.PYQT_VERSION_STR
return ver
def get_pyQt5_version():
log.debug("Checking PyQt 5.x version...")
ver ='-'
# PyQt 5
try:
import PyQt5
except ImportError:
ver='-'
else:
from PyQt5 import QtCore
ver = QtCore.PYQT_VERSION_STR
return ver
This is where it blows up
Offline
That looks like a broken PyQt4 installation is found by the hp drivers. Maybe remove it completely.
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |
Offline
OK, I commented all calls for PyQt4 in
/usr/share/hplip/installer/dcheck.py
/usr/share/hplip/installer/core_install.py
now hp-check and hp-setup run.
However, hp-setup cannot find my network printer/scanner.
Nor can SimpleScan or Xsane.
But, system-config-printer can setup and print to the printer wirelessly.
Again, wireless printing and scanning has been working for 2+ years.
$hp-setup -i <ip_address>
HP Linux Imaging and Printing System (ver. 3.20.11)
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.
(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*) ? 1
Using connection type: net
error: No device selected/specified or that supports this functionality.
$hp-doctor
HP Linux Imaging and Printing System (ver. 3.20.11)
Self Diagnse Utility and Healing Utility ver. 1.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.
HP Linux Imaging and Printing System (ver. 3.20.11)
Self Diagnse Utility and Healing Utility ver. 1.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.
warning: archlinux distro is not found in AUTH_TYPES
Checking for Deprecated items....
error: This distro (i.e archlinux) is either deprecated or not yet supported.
The diagnosis is limited on unsupported platforms. Do you want to continue?(y=yes*, n=no):y
Checking for HPLIP updates....
HP Linux Imaging and Printing System (ver. 3.20.11)
HPLIP upgrade latest version ver. 1.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.
error: HPLIP upgrade is disabled by Archlinux for security reasons, see https://bugs.archlinux.org/task/38083 - if you like to upgrade HPLIP, use the Archlinux software package manager pacman.
Done.
error: Failed to upgrade latest HPLIP. Is hp-upgrade already running (i.e. foreground or background)?
Checking for Dependencies....
warning: 24- version is not supported. Using 24-8.04.1 versions dependencies to verify and install...
---------------
| SYSTEM INFO |
---------------
Kernel: 5.4.90-1-lts #1 SMP Sun, 17 Jan 2021 19:57:30 +0000 GNU/Linux
Host: Asus405
Proc: 5.4.90-1-lts #1 SMP Sun, 17 Jan 2021 19:57:30 +0000 GNU/Linux
Distribution: 24
Bitness: 64 bit
-----------------------
| HPLIP CONFIGURATION |
-----------------------
HPLIP-Version: HPLIP 3.20.11
HPLIP-Home: /usr/share/hplip
warning: HPLIP-Installation: Auto installation is not supported for 24 distro version
Current contents of '/etc/hp/hplip.conf' file:
# hplip.conf. Generated from hplip.conf.in by configure.
[hplip]
version=3.20.11
[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-3.20.11
html=/usr/share/doc/hplip-3.20.11
icon=/usr/share/applications
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv/hp
bin=/usr/bin
apparmor=/etc/apparmor.d
# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
libusb01-build=no
pp-build=yes
gui-build=yes
scanner-build=yes
fax-build=yes
dbus-build=yes
cups11-build=no
doc-build=yes
shadow-build=no
hpijs-install=no
foomatic-drv-install=no
foomatic-ppd-install=no
foomatic-rip-hplip-install=no
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=no
internal-tag=3.20.11
restricted-build=no
ui-toolkit=qt5
qt3=no
qt4=no
qt5=yes
policy-kit=no
lite-build=no
udev_sysfs_rules=no
hpcups-only-build=no
hpijs-only-build=no
apparmor_build=no
class-driver=no
Current contents of '/var/lib/hp/hplip.state' file:
[plugin]
installed = 1
eula = 1
version = 3.20.11
Current contents of '~/.hplip/hplip.conf' file:
[installation]
date_time = 01/21/21 16:32:11
version = 3.20.11
<Package-name> <Package-Desc> <Required/Optional> <Min-Version> <Installed-Version> <Status> <Comment>
-------------------------
| External Dependencies |
-------------------------
cups CUPS - Common Unix Printing System REQUIRED 1.1 2.3.3 OK 'CUPS Scheduler is running'
gs GhostScript - PostScript and PDF language interpreter and previewer REQUIRED 7.05 9.53.3 OK -
xsane xsane - Graphical scanner frontend for SANE OPTIONAL 0.9 0.999 OK -
scanimage scanimage - Shell scanning program OPTIONAL 1.0 1.0.31 OK -
dbus DBus - Message bus system REQUIRED - 1.12.20 OK -
policykit PolicyKit - Administrative policy framework OPTIONAL - 0.118 OK -
network network -wget OPTIONAL - 1.21.1 OK -
avahi-utils avahi-utils OPTIONAL - 0.8 OK -
------------------------
| General Dependencies |
------------------------
libjpeg libjpeg - JPEG library REQUIRED - - OK -
cups-devel CUPS devel- Common Unix Printing System development files REQUIRED - 2.3.3 OK -
cups-image CUPS image - CUPS image development files REQUIRED - 2.3.3 OK -
libpthread libpthread - POSIX threads library REQUIRED - b'2.32' OK -
libusb libusb - USB library REQUIRED - 1.0 OK -
sane SANE - Scanning library REQUIRED - 1.0.31 OK -
sane-devel SANE - Scanning library development files REQUIRED - 1.0.31 OK -
libavahi-dev libavahi-dev REQUIRED - - OK -
libnetsnmp-devel libnetsnmp-devel - SNMP networking library development files REQUIRED 5.0.9 5.9 OK -
libcrypto libcrypto - OpenSSL cryptographic library REQUIRED - 1.1.1 OK -
python3X Python 2.2 or greater - Python programming language REQUIRED 2.2 3.9.1 OK -
python3-notify2 Python libnotify - Python bindings for the libnotify Desktop notifications OPTIONAL - - OK -
python3-dbus Python DBus - Python bindings for DBus REQUIRED 0.80.0 1.2.16 OK -
python3-xml Python XML libraries REQUIRED - 2.2.10 OK -
python3-devel Python devel - Python development files REQUIRED 2.2 3.9.1 OK -
python3-pil PIL - Python Imaging Library (required for commandline scanning with hp-scan) OPTIONAL - 8.1.0 OK -
python3-reportlab Reportlab - PDF library for Python OPTIONAL 2.0 3.5.59 OK -
--------------
| COMPILEDEP |
--------------
libtool libtool - Library building support services REQUIRED - 2.4.6 OK -
gcc gcc - GNU Project C and C++ Compiler REQUIRED - 10.2.0 OK -
make make - GNU make utility to maintain groups of programs REQUIRED 3.0 4.3 OK -
---------------------
| Python Extentions |
---------------------
cupsext CUPS-Extension REQUIRED - 3.20.11 OK -
hpmudext IO-Extension REQUIRED - 3.20.11 OK -
----------------------
| Scan Configuration |
----------------------
hpaio HPLIP-SANE-Backend REQUIRED - 3.20.11 OK 'hpaio found in /etc/sane.d/dll.conf'
scanext Scan-SANE-Extension REQUIRED - 3.20.11 OK -
------------------------------
| DISCOVERED SCANNER DEVICES |
------------------------------
device `v4l:/dev/video0' is a Noname USB2.0 HD UVC WebCam: USB2.0 HD virtual device
--------------------------
| DISCOVERED USB DEVICES |
--------------------------
No devices found.
---------------------------------
| INSTALLED CUPS PRINTER QUEUES |
---------------------------------
HP-LaserJet-100-color-MFP-M175
------------------------------
Type: Unknown
Device URI: socket://192.168.1.122:9100
PPD: /etc/cups/ppd/HP-LaserJet-100-color-MFP-M175.ppd
PPD Description: HP LaserJet 100 color MFP M175 Postscript (recommended)
Printer status: printer HP-LaserJet-100-color-MFP-M175 is idle. enabled since Tue 19 Jan 2021 06:01:44 PM EST
warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend for HP-Devices.
--------------
| PERMISSION |
--------------
Checking Permissions....
Checking for Configured Queues....
warning: Device HP-LaserJet-100-color-MFP-M175 is not HPLIP installed. Device must use the hp: or hpfax: to function in HPLIP.
error: 'HP-LaserJet-100-color-MFP-M175' is not configured using HPLIP. Need to remove and re-cofigure using hp-setup.
Do you want to remove and re-configure? (y=yes*, n=no, q=quit) ? n
Checking for HP Properitery Plugin's....
No plug-in printers are configured.
Diagnose completed...
More information on Troubleshooting,How-To's and Support is available on http://hplipopensource.com/hplip-web/index.html
Oddly, it finds my usb webcam under scanning devices
------------------------------
| DISCOVERED SCANNER DEVICES |
------------------------------
device `v4l:/dev/video0' is a Noname USB2.0 HD UVC WebCam: USB2.0 HD virtual device
but nothing under usb devices
--------------------------
| DISCOVERED USB DEVICES |
--------------------------
No devices found.
and it does see my printer
---------------------------------
| INSTALLED CUPS PRINTER QUEUES |
---------------------------------
HP-LaserJet-100-color-MFP-M175
------------------------------
Type: Unknown
Device URI: socket://192.168.1.122:9100
PPD: /etc/cups/ppd/HP-LaserJet-100-color-MFP-M175.ppd
PPD Description: HP LaserJet 100 color MFP M175 Postscript (recommended)
Printer status: printer HP-LaserJet-100-color-MFP-M175 is idle. enabled since Tue 19 Jan 2021 06:01:44 PM EST
and, of course, it lets me know the printer is not hp installed
warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend for HP-Devices.
because under hp-setup -i <ip_address> it can't find my printer
Using connection type: net
error: No device selected/specified or that supports this functionality.
I've reinstall hplip and associated programs multiple times, read dozens of forums and hundreds of posts.
So far, it seems the common thread is:
Problem occurs after a distribution upgrade
Only resolution found by some folks on other dist. is a complete re-install. Which is here, quite undesirable.
To top it off, this issue is on two different machines that have been wireless printing and scanning for 2+ years
Thoughts anyone??
Offline
However, hp-setup cannot find my network printer/scanner.
Nor can SimpleScan or Xsane.
Did you try to access the scanner by IP (hp-makeuri)
Offline
Yes, but device not found
$ hp-makeuri <ip_address>
HP Linux Imaging and Printing System (ver. 3.20.11)
Device URI Creation Utility ver. 5.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.
error: Device not found
I even booted from an LTS kernel to make sure it wasn't something there, but no joy.
Last edited by Gotit (2021-01-21 23:07:09)
Offline
Not sure if this means anything, but hp-setup uses a python script to look for installed devices.
/usr/share/hplip/probe.py
I stepped through in debug mode and hit this
[DEBUG ON]
>>>
====================== RESTART: /usr/share/hplip/probe.py ======================
Traceback (most recent call last):
File "/usr/share/hplip/probe.py", line 32, in <module>
import getopt
File "<frozen importlib._bootstrap>", line 1004, in _find_and_load
File "<frozen importlib._bootstrap>", line 157, in __enter__
File "<frozen importlib._bootstrap>", line 183, in _get_module_lock
File "<frozen importlib._bootstrap>", line 59, in __init__
File "<frozen importlib._bootstrap>", line 59, in __init__
File "/usr/lib/python3.9/bdb.py", line 88, in trace_dispatch
return self.dispatch_line(frame)
File "/usr/lib/python3.9/bdb.py", line 112, in dispatch_line
self.user_line(frame)
File "/usr/lib/python3.9/idlelib/debugger.py", line 24, in user_line
self.gui.interaction(message, frame)
AttributeError: '_ModuleLock' object has no attribute 'name'
[DEBUG ON]
>>>
during import of getopt
Any python gurus out there know if this is a real problem, or just a red herring?
Offline
python2 script?
https://wiki.archlinux.org/index.php/Python#Python_2
Offline
I'm not sure which script you are referring to as python2? I only know very, very little about python. I did read the wiki post and I get python2 is no longer supported, and can maybe tick it into running. I'm just running what the hplip has in it's directory.
Is there some action I can/should take?
Offline
/usr/share/hplip/probe.py
The error looks like something you'd get if you ran a python 2 script with the python 3 interpreter.
Ensure to have python2 installed, alter the shebang of the script and see whether it now runs correctly.
This might still be a red herring if hp-setup explicitly uses python2 anyway.
Offline
FIXED!!!
I had the same results running with python 2 and modified shebang on probe.py.
Realistically, I didn't think I had a problem with hplip. hplip is just reporting it can't find my printer/scanner. The cause I believed was elsewhere because DoumentScan didn't see the scanner either. So, I was off to troubleshoot from a different angle, scanning. This lead me to sane backend odyssey and back around to hplip.
Ultimately, this post resolved hplip not finding my scanner, which instantly made hplip find my printer.
However, with all this fussing about installing, changing and deleting printers and config files, I ended up with a "ghost printer" in my printer dropdown lists for gedit and libreOffice. Both printer dropdowns list 2 HP printers, but Print Settings only shows 1 HP printer. The "ghost printer", unsurprisingly, doesn't work. However, I cannot find where to delete it so it doesn't show in the printer selection dropdowns for gedit and libreOffice. Does anyone know where that information is stored?
Offline
The "ghost printer" may be created by gtk through its internal AirPrint / IPP Everywhere implementation. https://wiki.debian.org/CUPSDriverlessP … int_Dialog
I do not know why it does not work, it is the same for me.
Edit: That may explain it for gedit, but not libreoffice.
Last edited by progandy (2021-01-24 18:40:59)
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |
Offline
I tried un-commenting a few parameters
/etc/cups/cups-browsed.conf
BrowseProtocols none
CreateRemoteCUPSPrinterQueues No
CreateIPPPrinterQueues No
sudo systemctl restart cups-browsed
sudo systemctl restart cups
This made no difference, the "ghost printer" remained in the printer dropdown for gedit and libreOffice.
Perhaps there's a better parameter to un-comment, but I haven't found it yet.
Offline
Try to remove it from http://localhost:631
Offline
About that "ghost printer", I managed to make it go away here for me. I'm not totally sure if I remember things right.
I'm guessing what made it go away is using a "dnssd://*._ipp._tcp.local" URL for the CUPS printer entry. I'm thinking this perhaps makes the ghost entry and the normal CUPS entry use the same URL and the programs then don't show the ghost entry anymore?
What I mean concretely is, when using the "add printer" page on the cups web-interface, I see the same printer listed multiple times in the "discovered network printers" section. That section has these entries when I try to add my printer:
Discovered Network Printers:
* Brother MFC-L2710DW series (Brother MFC-L2710DW series)
* Brother MFC-L2710DW series (driverless) (Brother MFC-L2710DW series)
* Brother MFC-L2710DW series (Brother MFC-L2710DW series)
One of the entries is the one that uses a "dnssd://" URL (for me it's the first one). The other two are "ipp://" and "lpd://". You can see the connection URL after selecting an entry and clicking "continue".
I'm using the avahi-daemon service, that's what provides the dnssd:// URL support here for me. The cups-browsed service is not enabled/started here for me.
Last edited by Ropid (2021-01-24 22:07:11)
Offline
Well, I tired both suggestions above, but no joy.
So for the "real" printer, I renamed it to "Use this HP Printer" on my machines. This is a poor, poor mans work around, but at least everyone has a fighting chance to use the "real" printer.
So, the original issue was resolved, I'm marking this issue "Solved".
Thanks everyone for all the help, or is that ..."for all the fish"?
Last edited by Gotit (2021-01-28 23:24:01)
Offline