[gelöst] CUPS - py2.7 vs py3 - filter failed

Dieses Forum dient der grundlegenden Hilfe und Unterstützung :

Stelle hier Deine Fragen zur Grundinstallation und zur Benutzung von Mageia. Beispielsweise gehören hierhin Fragen zum Download der ISOs und deren Installation, zur Einrichtung des Druckers, Benutzung der Textbearbeitung, usw.

Bitte versuche, Deine Fragen im richtigen Subforum zu stellen und gib dabei so viele Informtionen wie möglich. Je präziser die Frage gestellt wird, um so eher bekommst Du eine hilfreiche Antwort.

[gelöst] CUPS - py2.7 vs py3 - filter failed

Beitragvon jkowalzik » Feb 28th, '17, 19:11

Hallo!
An anderer Stelle hatte ich schon geschrieben:
jkowalzik hat geschrieben:Hallo!
Gleicher Fehler, aber letztere Maßnahme brachte nichts.


Der Fehler trat bei mir nur an einem Rechner auf, der ganz neu mit MGA5.1 x64 bespielt wurde.
Die anderen Rechner, die vor ewig langer Zeit von 4 auf 5.x hochgezogen wurden, die haben den Fehler nicht.

Code: Alles auswählen
bash-4.3$ ping 192.168.2.24
PING 192.168.2.24 (192.168.2.24) 56(84) bytes of data.
64 bytes from 192.168.2.24: icmp_seq=1 ttl=255 time=1.44 ms
64 bytes from 192.168.2.24: icmp_seq=2 ttl=255 time=2.66 ms
64 bytes from 192.168.2.24: icmp_seq=3 ttl=255 time=2.97 ms
64 bytes from 192.168.2.24: icmp_seq=4 ttl=255 time=5.87 ms
64 bytes from 192.168.2.24: icmp_seq=5 ttl=255 time=3.48 ms
64 bytes from 192.168.2.24: icmp_seq=6 ttl=255 time=2.02 ms
64 bytes from 192.168.2.24: icmp_seq=7 ttl=255 time=6.83 ms
64 bytes from 192.168.2.24: icmp_seq=8 ttl=255 time=2.08 ms
64 bytes from 192.168.2.24: icmp_seq=9 ttl=255 time=2.01 ms
64 bytes from 192.168.2.24: icmp_seq=10 ttl=255 time=4.15 ms
^C
--- 192.168.2.24 ping statistics ---
10 packets transmitted, 10 received, 0% packet loss, time 9013ms
rtt min/avg/max/mdev = 1.441/3.356/6.839/1.692 ms
Also der Drucker ist "da"

Code: Alles auswählen
[root@Medion-ci5 juergen]# hp-setup -i 192.168.2.24
Traceback (most recent call last):
  File "/usr/sbin/hp-setup", line 45, in <module>
    from base import device, utils, tui, models, module, services, os_utils
  File "/usr/share/hplip/base/device.py", line 43, in <module>
    import status
  File "/usr/share/hplip/base/status.py", line 59, in <module>
    import hpmudext
ImportError: /usr/lib64/python2.7/site-packages/hpmudext.so: undefined symbol: hpmud_mdns_lookup
[root@Medion-ci5 juergen]# systemctl status cups -l -n250
● cups.service - CUPS Scheduler
   Loaded: loaded (/usr/lib/systemd/system/cups.service; enabled)
   Active: active (running) since So 2017-02-26 19:49:18 CET; 38min ago
     Docs: man:cupsd(8)
 Main PID: 21457 (cupsd)
   Status: "Scheduler is running..."
   CGroup: /system.slice/cups.service
           └─21457 /usr/sbin/cupsd -l

Feb 26 20:00:44 Medion-ci5 cupsd[21457]: [Job 2] Job stopped due to filter errors; please consult the error_log file for details.

DEL

Feb 26 20:02:26 Medion-ci5 cupsd[21457]: [Job 2] Job stopped due to filter errors; please consult the error_log file for details.
Feb 26 20:02:48 Medion-ci5 cupsd[21457]: [cups-deviced] PID 22455 (hpfax) stopped with status 1!
Feb 26 20:07:56 Medion-ci5 cupsd[21457]: [Job 2] Job stopped due to filter errors; please consult the error_log file for details.

DEL

[root@Medion-ci5 juergen]#


Fehlermeldung:
Code: Alles auswählen
localhost - - [26/Feb/2017:20:39:48 +0100] "POST / HTTP/1.1" 200 152 Cancel-Subscription successful-ok
localhost - - [26/Feb/2017:20:39:48 +0100] "POST / HTTP/1.1" 200 152 Cancel-Subscription successful-ok
localhost - - [26/Feb/2017:20:40:04 +0100] "POST /printers/HP-Color-LaserJet-CP1510 HTTP/1.1" 200 425 Print-Job successful-ok


Schwer gelogen: Print-Job successful-ok ----> Print-Job fürn Abort-nix ok

Ist das die Lösung: https://tuxanddroid.de/linux/hp-drucker-unter-linux-filter-failed-problem-beheben :?
Dort steht:
Das Problem beläuft sich scheinbar darauf, dass das hp-setup Tool mit der Python 3 Version nicht zurecht kommt. Nun, dachte ich mir, rufst du den Spaß einfach mit „python2.7 /usr/bin/hp-setup“ auf. Das klappte auch nicht.

Wenn man nach sieht, dann schleppt MGA auch 2 py - Versionen mit.

Gruß
J.
Zuletzt geändert von jkowalzik am Mär 7th, '17, 11:57, insgesamt 1-mal geändert.
...Luxus ist alles was sich reparieren läßt
Benutzeravatar
jkowalzik
 
Beiträge: 3330
Registriert: Okt 2nd, '11, 12:34
Wohnort: Plettenberg

Re: CUPS - py2.7 vs py3 - filter failed

Beitragvon alf » Feb 28th, '17, 19:27

jkowalzik hat geschrieben:Wenn man nach sieht, dann schleppt MGA auch 2 py - Versionen mit.

Ja und das schon recht lange, war schon zu Mandrivazeiten so.
Das umbiegen der Verknüpfungen wie im verlinkten Artikel empfohlen erübrigt sich, denn bei Mageia zeigt /usr/bin/python noch immer auf /usr/bin/python2.7.
Das Gehirn ist nicht wie Seife, es wird nicht weniger wenn es benutzt wird. -- Lisa Fitz
Benutzeravatar
alf
 
Beiträge: 2442
Registriert: Jun 1st, '11, 13:39
Wohnort: Paderborn

Re: CUPS - py2.7 vs py3 - filter failed

Beitragvon unklar » Feb 28th, '17, 20:20

Du mußt noch etwas "Mit Fehlermeldungen suchen" üben... ;)

Deine Lösung steht hier: https://forums.mageia.org/en/viewtopic. ... 33&p=62321
El Conkystador (el conquistador = der Sieger) ein Markenzeichen für @Sector11 8-)
unklar
 
Beiträge: 1468
Registriert: Jun 1st, '11, 15:06

Re: CUPS - py2.7 vs py3 - filter failed

Beitragvon jkowalzik » Feb 28th, '17, 22:39

unklar hat geschrieben:Du mußt noch etwas "Mit Fehlermeldungen suchen" üben... ;) Deine Lösung steht hier:


Hallo!
Aller Anfang mal hier:
Code: Alles auswählen
# hp-check -r
Saving output in log file: /home/juergen/hp-check.log

HP Linux Imaging and Printing System (ver. 3.14.6)
Dependency/Version Check Utility ver. 15.1

Copyright (c) 2001-13 Hewlett-Packard 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: hp-check can be run in three modes:
1. Compile-time check mode (-c or --compile): Use this mode before compiling the HPLIP supplied tarball (.tar.gz or .run) to determine if the proper dependencies are installed to           
successfully compile HPLIP.                                                                                                                                                                   
2. Run-time check mode (-r or --run): Use this mode to determine if a distro supplied package (.deb, .rpm, etc) or an already built HPLIP supplied tarball has the proper dependencies       
installed to successfully run.                                                                                                                                                               
3. Both compile- and run-time check mode (-b or --both) (Default): This mode will check both of the above cases (both compile- and run-time dependencies).                                   

Check types:                                                                                                                                                                                 
a. EXTERNALDEP - External Dependencies                                                                                                                                                       
b. GENERALDEP - General Dependencies (required both at compile and run time)                                                                                                                 
c. COMPILEDEP - Compile time Dependencies                                                                                                                                                     
d. [All are run-time checks]                                                                                                                                                                 
PYEXT SCANCONF QUEUES PERMISSION                                                                                                                                                             

Status Types:
    OK
    MISSING       - Missing Dependency or Permission or Plug-in
    INCOMPAT      - Incompatible dependency-version or Plugin-version

warning: mageia distro is not found in AUTH_TYPES
warning: unknown-0.0 version is not supported. Using unknown-0 versions dependencies to verify and install...

---------------
| SYSTEM INFO |
---------------

 Kernel: 4.4.50-desktop-2.mga5 #1 SMP Thu Feb 23 21:21:14 UTC 2017 GNU/Linux
 Host: Medion-ci5
 Proc: 4.4.50-desktop-2.mga5 #1 SMP Thu Feb 23 21:21:14 UTC 2017 GNU/Linux
 Distribution: unknown 0.0
 Bitness: 64 bit


-----------------------
| HPLIP CONFIGURATION |
-----------------------

HPLIP-Version: HPLIP 3.14.6
HPLIP-Home: /usr/share/hplip
warning: HPLIP-Installation: Auto installation is not supported for unknown distro  0.0 version

Current contents of '/etc/hp/hplip.conf' file:
# hplip.conf.  Generated from hplip.conf.in by configure.

[hplip]
version=3.14.6

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-3.14.6
html=/usr/share/doc/hplip-3.14.6
icon=/usr/share/applications
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv/hp
bin=/usr/bin

# 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=yes
foomatic-drv-install=no
foomatic-ppd-install=no
foomatic-rip-hplip-install=no
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=yes
internal-tag=3.14.6
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
policy-kit=yes
lite-build=no
udev_sysfs_rules=no
hpcups-only-build=no
hpijs-only-build=no


Current contents of '/var/lib/hp/hplip.state' file:


Current contents of '~/.hplip/hplip.conf' file:
warning: Could not access file: No such file or directory
 <Package-name>        <Package-Desc>      <Required/Optional> <Min-Version> <Installed-Version> <Status>   <Comment>

--------------------------
|  External Dependencies |
--------------------------

 policykit            Admin-Policy-framework    OPTIONAL        -               0.113           OK         -
 gs                   Ghostscript               REQUIRED        7.05            9.14            OK         -
 network              Network-wget              OPTIONAL        -               1.15            OK         -
 scanimage            Shell-Scanning            OPTIONAL        1.0             1.0.24          OK         -
 avahi-utils          avahi-utils               OPTIONAL        -               0.6.31          OK         -
 error: dbus          DBus                      REQUIRED        -               1.8.20          MISSING    'DBUS may not be installed or not running'
 error: cups          CUPS                      REQUIRED        1.1             -               INCOMPAT   'CUPS may not be installed or not running'
 error: xsane         SANE-GUI                  OPTIONAL        0.9             -               MISSING    'xsane needs to be installed'

-------------------------
|  General Dependencies |
-------------------------

 error: reportlab     Python-PDF-Lib            OPTIONAL        2.0             3.1.8           MISSING    'reportlab needs to be installed'
 error: libcrypto     OpenSSL-Crypto-Lib        REQUIRED        -               1.0.2           MISSING    'libcrypto needs to be installed'
 error: pil           Python-Image-Lib          OPTIONAL        -               -               MISSING    'pil needs to be installed'
 pyqt4-dbus           PyQt4-DBUS                REQUIRED        4.0             4.11.3          OK         -
 error: libjpeg       JPEG-Lib                  REQUIRED        -               -               MISSING    'libjpeg needs to be installed'
 error: libpthread    POSIX-Threads-Lib         REQUIRED        -               2.20            MISSING    'libpthread needs to be installed'
 python-dbus          Python-DBUS               REQUIRED        0.80.0          1.2.0           OK         -
 error: python-devel  Python-SDK                REQUIRED        2.2             2.7.9           MISSING    'python-devel needs to be installed'
 pyqt4                Python-Qt4                REQUIRED        4.0             4.11.3          OK         -
 error: cups-devel    CUPS-SDK                  REQUIRED        -               -               MISSING    'cups-devel needs to be installed'
 error: sane-devel    SANE-SDK                  REQUIRED        -               -               MISSING    'sane-devel needs to be installed'
 error: libusb        USB-Lib                   REQUIRED        -               1.0             MISSING    'libusb needs to be installed'
 sane                 Scan-Lib                  REQUIRED        -               -               OK         -
 error: cups-image    CUPS-Image-Lib            REQUIRED        -               -               MISSING    'cups-image needs to be installed'
 error: libnetsnmp-devel SNMP-Networking-SDK       REQUIRED        5.0.9           -               MISSING    'libnetsnmp-devel needs to be installed'
 python-xml           Python-XML-Lib            REQUIRED        -               2.1.0           OK         -
 error: python-notify Desktop-notifications     OPTIONAL        -               -               MISSING    'python-notify needs to be installed'

----------------------
|  Python Extentions |
----------------------

 cupsext              CUPS-Extension            REQUIRED        -               3.14.6          OK         -
 pcardext             PhotoCard-Extension       REQUIRED        -               3.14.6          OK         -
error: NOT FOUND OR FAILED TO LOAD! Please reinstall HPLIP and check for the proper installation of hpmudext.
 error: hpmudext      IO-Extension              REQUIRED        -               3.14.6          MISSING    'Not Found or Failed to load, Please reinstall HPLIP'

-----------------------
|  Scan Configuration |
-----------------------

 hpaio                HPLIP-SANE-Backend        REQUIRED        -               3.14.6          OK         'hpaio found in /etc/sane.d/dll.conf'
 scanext              Scan-SANE-Extension       REQUIRED        -               3.14.6          OK         -

------------------------------
| DISCOVERED SCANNER DEVICES |
------------------------------

device `v4l:/dev/video0' is a Noname USB2.0 HD UVC WebCam virtual device


--------------
| PERMISSION |
--------------

 
-----------
| SUMMARY |
-----------

Missing Required Dependencies
-----------------------------
None

Missing Optional Dependencies
-----------------------------
None


Total Errors: 16
Total Warnings: 1


Done.


Also bei mir haut der ja jede Menge Fehler raus :(
Gruß
J.
...Luxus ist alles was sich reparieren läßt
Benutzeravatar
jkowalzik
 
Beiträge: 3330
Registriert: Okt 2nd, '11, 12:34
Wohnort: Plettenberg

Re: CUPS - py2.7 vs py3 - filter failed

Beitragvon jkowalzik » Feb 28th, '17, 22:57

Ergänzung:
Code: Alles auswählen
]# rpm -qa|sort| grep -E "lib.*hpip|sane-hpaio"
lib64hpip0-3.15.11-1.mga5
lib64sane-hpaio1-3.15.11-1.mga5

doktor5000 hat geschrieben:That's interesting. Can you post the output from
Code: Alles auswählen
rpm -E "%mklibname hpip 0"

sofort:
Code: Alles auswählen
# rpm -E "%mklibname hpip 0"
%mklibname hpip 0

Code: Alles auswählen
rpm -E "%mklibname hpip 0"
%mklibname hpip 0

Code: Alles auswählen
 %mklibname hpip 0
bash: fg: %mklibname: Kein solcher Job.



Gruß
J.
...Luxus ist alles was sich reparieren läßt
Benutzeravatar
jkowalzik
 
Beiträge: 3330
Registriert: Okt 2nd, '11, 12:34
Wohnort: Plettenberg

Re: CUPS - py2.7 vs py3 - filter failed

Beitragvon doktor5000 » Feb 28th, '17, 23:10

Und ?
Ich bin nicht böse, sondern nur ehrlich. Und wer lesen kann, ist klar im Vorteil.
----
Mageia - the magic continues
Benutzeravatar
doktor5000
 
Beiträge: 6055
Registriert: Jun 2nd, '11, 09:39

Re: CUPS - py2.7 vs py3 - filter failed

Beitragvon jkowalzik » Mär 1st, '17, 11:52

Hallo!
Alles wie in dem EN-Forenbeitrag abgearbeitet,
Ergebnis: Nix, niente, .... :mrgreen:
Gruß
J.
...Luxus ist alles was sich reparieren läßt
Benutzeravatar
jkowalzik
 
Beiträge: 3330
Registriert: Okt 2nd, '11, 12:34
Wohnort: Plettenberg

Re: CUPS - py2.7 vs py3 - filter failed

Beitragvon jkowalzik » Mär 7th, '17, 12:02

doktor5000 hat geschrieben:Und ?


Hallo!

Wenn man der Empfehlung den Postscript - Treiber zu nehmen NICHT folgt, sondern den PCL3 Treiber nimmt, dann funktioniert der CP1514n.
Damit ist allerdings nicht erklärt, warum auf MGA-Installationen, die auf 5.1 upgedatet wurden der Postscript-Druck funktioniert :?
Gruß
J.
...Luxus ist alles was sich reparieren läßt
Benutzeravatar
jkowalzik
 
Beiträge: 3330
Registriert: Okt 2nd, '11, 12:34
Wohnort: Plettenberg


Zurück zu Basis-Support

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 1 Gast