Bug ID 1116867
Summary udev rule for printer installation fails due to missing python module
Classification openSUSE
Product openSUSE Tumbleweed
Version Current
Hardware Other
OS Other
Status NEW
Severity Normal
Priority P5 - None
Component Printing
Assignee jsmeix@suse.com
Reporter saloution@googlemail.com
QA Contact jsmeix@suse.com
Found By ---
Blocker ---

Hello,

I use:

NAME="openSUSE Tumbleweed"
# VERSION="20181116"
ID="opensuse-tumbleweed"
ID_LIKE="opensuse suse"
VERSION_ID="20181116"
PRETTY_NAME="openSUSE Tumbleweed"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:tumbleweed:20181116"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"


I connected a printer to my computer and found the following error in my system
journal:

Nov 17 08:47:15 mars udev-configure-printer[4884]: URI contains USB serial
number
Nov 17 08:47:15 mars udev-configure-printer[4884]: URI match:
usb://Brother/HL-2140%20series?serial=F8J644819
Nov 17 08:47:15 mars udev-configure-printer[4884]: About to add queue for
usb://Brother/HL-2140%20series?serial=F8J644819
Nov 17 08:47:16 mars udev-configure-printer[4884]: Traceback (most recent call
last):
Nov 17 08:47:16 mars udev-configure-printer[4884]:   File
"/usr/lib/udev/udev-add-printer", line 23, in <module>
Nov 17 08:47:16 mars udev-configure-printer[4884]:     import cupshelpers
Nov 17 08:47:16 mars udev-configure-printer[4884]:   File
"/usr/lib/python3.6/site-packages/cupshelpers/__init__.py", line 60, in
<module>
Nov 17 08:47:16 mars udev-configure-printer[4884]:     from . import
openprinting
Nov 17 08:47:16 mars udev-configure-printer[4884]:   File
"/usr/lib/python3.6/site-packages/cupshelpers/openprinting.py", line 22, in
<module>
Nov 17 08:47:16 mars udev-configure-printer[4884]:     import requests,
urllib.request, urllib.parse, urllib.error, platform, threading, tempfile,
traceback
Nov 17 08:47:16 mars udev-configure-printer[4884]: ModuleNotFoundError: No
module named 'requests'
Nov 17 08:47:16 mars systemd[1]: configure-printer@usb-001-004.service: Main
process exited, code=exited, status=1/FAILURE
Nov 17 08:47:16 mars systemd[1]: configure-printer@usb-001-004.service: Failed
with result 'exit-code'.



I installed then the python3 package requests using Yast2, which was not
installed initially. I think it should be installed.

After the installation (and a restart which may not be required), installation
and printing works.


You are receiving this mail because: