Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 438886 - net-print/hplip-3.12.10a - crash and doesn't find the plugin
Summary: net-print/hplip-3.12.10a - crash and doesn't find the plugin
Status: RESOLVED DUPLICATE of bug 414195
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-19 04:40 UTC by Sylvain Alain (RETIRED)
Modified: 2012-11-04 17:46 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sylvain Alain (RETIRED) gentoo-dev 2012-10-19 04:40:30 UTC
Hi,  I want to install hplip on my box and when I'm running hp-setup, it fail to find the plugin.

I tested to install it manually, but it's not working again. I had the problem a couple of months ago, but I tought that it was solved once and for all :P

gentootux hplip-3.12.10a-plugin # ./hplip-plugin-install -i -l debug
  File "./plugin_install.py", line 78
    except ImportError, e:
                      ^
SyntaxError: invalid syntax
gentootux hplip-3.12.10a-plugin # eselect python list
Available Python interpreters:
  [1]   python2.7
  [2]   python3.2 *


Reproducible: Always

Steps to Reproduce:
1. # emerge -av hplip
2. # hp-setup
3.
Actual Results:  
I cannot install my driver, so my printer doesn't work.


gentootux ~ # time emerge -av hplip

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] net-print/hplip-3.12.10a  USE="X hpcups libnotify qt4 -doc -fax -hpijs -kde -minimal -parport -policykit -scanner -snmp -static-ppds" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB

Would you like to merge these packages? [Yes/No]
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2012-10-19 14:35:56 UTC
1) Please post your `emerge --info' output in a comment.
2) Please attach the entire build log to this bug report.
Comment 2 Rafał Mużyło 2012-10-19 16:35:06 UTC
Try with python 2.7 (IIRC that construct was still valid then - in >=3.0 it should most likely be 'except ImportError as e:').
Comment 3 Sylvain Alain (RETIRED) gentoo-dev 2012-10-20 04:30:47 UTC
Portage 2.1.11.30 (default/linux/amd64/10.0/desktop, gcc-4.6.3, glibc-2.15-r3, 3.6.2 x86_64)
=================================================================
System uname: Linux-3.6.2-x86_64-Intel-R-_Core-TM-_i7-3770_CPU_@_3.40GHz-with-gentoo-2.2
Timestamp of tree: Sat, 20 Oct 2012 04:15:01 +0000
app-shells/bash:          4.2_p37
dev-lang/python:          2.7.3-r2, 3.2.3-r1
dev-util/cmake:           2.8.9-r1
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.10.5
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.6, 1.12.4
sys-devel/binutils:       2.22.90
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=corei7-avx -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=corei7-avx -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=8 --load-average=8.0 --with-bdeps y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://distfiles.gentoo.org"
LANG="fr_CA.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="fr"
MAKEOPTS="-j8 -l8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.ca.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif gpm gtk gtk3 iconv ipv6 jpeg lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pppd qt3support qt4 readline sdl session spell sse sse2 ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb userlocales vorbis wxwidgets x264 xcb xcomposite xfce xml xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" GRUB_PLATFORMS="pc efi-64" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="fr" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="vesa nouveau" XFCE_PLUGINS="brightness clock logout trash" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 4 Sylvain Alain (RETIRED) gentoo-dev 2012-10-20 04:36:23 UTC
For the record, I had this bug a while ago :

https://bugs.gentoo.org/show_bug.cgi?id=414195
Comment 5 Sylvain Alain (RETIRED) gentoo-dev 2012-10-20 04:59:54 UTC
 hp-check

HP Linux Imaging and Printing System (ver. 3.12.10a)
Dependency/Version Check Utility ver. 15

Copyright (c) 2001-14 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

Saving output in log file: /root/hp-check.log

Initializing. Please wait...
warning: gentoo-2.2 version is not supported. Using gentoo-any versions dependencies to verify and install...

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

 Kernel: 3.6.2 #1 SMP PREEMPT Thu Oct 18 16:11:40 EDT 2012 GNU/Linux
 Host: gentootux
 Proc: 3.6.2 #1 SMP PREEMPT Thu Oct 18 16:11:40 EDT 2012 GNU/Linux
 Distribution: gentoo 2.2

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

HPLIP-Version: HPLIP 3.12.10a
HPLIP-Home: /usr/share/hplip
warning: HPLIP-Installation: Auto installation is not supported for gentoo distro  2.2 version 

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

[hplip]
version=3.12.10a

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

# Following values are determined at configure time and cannot be changed.
[configure]
network-build=no
libusb01-build=no
pp-build=no
gui-build=yes
scanner-build=no
fax-build=no
dbus-build=yes
cups11-build=no
doc-build=no
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.12.10a
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
policy-kit=yes
hpijs-only-build=no
lite-build=no
udev-acl-rules=no
udev_sysfs_rules=no
hpcups-only-build=no
hpijs-only-build=no


Current contents of '/var/lib/hp/hplip.state' file:
Plugins are not installed. Could not access file: Aucun fichier ou dossier de ce type

Current contents of '~/.hplip/hplip.conf' file:
warning: Could not access file: Aucun fichier ou dossier de ce type
 <Package-name>        <Package-Desc>      <Required/Optional> <Min-Version> <Installed-Version> <Status>   <Comment>

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

 gs                   Ghostscript               REQUIRED        7.05            9.06            OK         -
 network              Network-wget              OPTIONAL        -               1.14            OK         -
 dbus                 DBus                      REQUIRED        -               1.6.8           OK         -
 error: scanimage     Shell-Scanning            OPTIONAL        1.0             -               MISSING    'scanimage needs to be installed'
 error: policykit     Admin-Policy-framework    OPTIONAL        -               0.107           MISSING    'policykit needs to be installed'
 error: xsane         SANE-GUI                  OPTIONAL        0.9             -               MISSING    'xsane needs to be installed'
 error: cups          CUPS                      REQUIRED        1.1             1.6.1           MISSING    'CUPS may not be installed or not running'

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

 error: reportlab     Python-PDF-Lib            OPTIONAL        2.0             -               MISSING    'reportlab needs to be installed'
 libcrypto            OpenSSL-Crypto-Lib        REQUIRED        -               1.0.1           OK         -
 error: pil           Python-Image-Lib          OPTIONAL        -               -               MISSING    'pil needs to be installed'
 pyqt4-dbus           PyQt4-DBUS                REQUIRED        4.0             4.9.5           OK         -
 libjpeg              JPEG-Lib                  REQUIRED        -               -               OK         -
 libpthread           POSIX-Threads-Lib         REQUIRED        -               2.15            OK         -
 python-dbus          Python-DBUS               REQUIRED        0.80.0          1.1.1           OK         -
 python-devel         Python-SDK                REQUIRED        2.2             3.2.3           OK         -
 pyqt4                Python-Qt4                REQUIRED        4.0             4.9.5           OK         -
 cups-devel           CUPS-SDK                  REQUIRED        -               1.6.1           OK         -
 error: sane-devel    SANE-SDK                  REQUIRED        -               -               MISSING    'sane-devel needs to be installed'
 libusb               USB-Lib                   REQUIRED        -               1.0             OK         -
 error: sane          Scan-Lib                  REQUIRED        -               -               MISSING    'sane needs to be installed'
 cups-image           CUPS-Image-Lib            REQUIRED        -               1.6.1           OK         -
 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         -
 python-notify        Desktop-notifications     OPTIONAL        -               -               OK         -

------------------------------
|  Compile Time Dependencies |
------------------------------

 gcc                  gcc-Compiler              REQUIRED        -               4.6.3           OK         -
 libtool              Build-tools               REQUIRED        -               2.4.2           OK         -
 make                 GNU-Build-tools           REQUIRED        3.0             3.82            OK         -

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

 cupsext              CUPS-Extension            REQUIRED        -               3.12.10a        OK         -
 pcardext             PhotoCard-Extension       REQUIRED        -               3.12.10a        OK         -
 hpmudext             IO-Extension              REQUIRED        -               3.12.10a        OK         -

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

error: NOT FOUND OR FAILED TO LOAD! Please reinstall HPLIP and check for the proper installation of scanext.
 error: scanext       Scan-SANE-Extension       REQUIRED        -               3.12.10a        MISSING    'scanext needs to be installed'

--------------------------
| DISCOVERED USB DEVICES |
--------------------------

  Device URI                                Model                                 
  ----------------------------------------  --------------------------------------
  hp:/usb/HP_LaserJet_P1505?serial=CA5618F  HP LaserJet P1505                     

---------------------------------
| INSTALLED CUPS PRINTER QUEUES |
---------------------------------

 
lpstat
------
Type: Unknown
Device URI: Aucun fichier ou dossier de ce type


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

error: groups   user-groups                    Required        -        -        MISSING  ['lp']

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

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

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


Total Errors: 1
Total Warnings: 1

Re-run 'hp-check --fix' command to prompt and fix the issues. 

Done.
gentootux ~ # groups sylvain
lp wheel floppy audio cdrom video cdrw usb users games plugdev sylvain
Comment 6 Sylvain Alain (RETIRED) gentoo-dev 2012-10-21 16:39:05 UTC
The compilation doesn't crash. It's when I run hp-setup that I end up like this old bug : https://bugs.gentoo.org/show_bug.cgi?id=414195

I tought that maybe the problem was solved with the latest release but I'm still having problem with that package.

Right now, I cannot print with my hp p1505, since the hplip setup is not able to download or install the plugin.
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2012-10-29 03:49:01 UTC

*** This bug has been marked as a duplicate of bug 414195 ***
Comment 8 Daniel Pielmeier gentoo-dev 2012-11-04 17:46:53 UTC
(In reply to comment #6)
> The compilation doesn't crash. It's when I run hp-setup that I end up like
> this old bug : https://bugs.gentoo.org/show_bug.cgi?id=414195
> 
> I tought that maybe the problem was solved with the latest release but I'm
> still having problem with that package.
> 
> Right now, I cannot print with my hp p1505, since the hplip setup is not
> able to download or install the plugin.

@Sylvain Alain: This problem is definitely a python3 issue. From your initial comment you have python3.2 set as python interpreter. hplip does not work with python3. This is especially true for the plugin as the downloaded plugin package is not aware of gentoos python specifics.

If I set python3.2 as python interpretor hp-plugin fails with exact the error you have, if I switch back the error does not occur. Please try if you are able to install the plugin with python2.7.

If this succeeds you can try if the remaining problem from bug #414195 is solved. This means testing if you can make the printer work with the policykit use flag enabled and report on bug #414195.