hplip is the replacement to hpoj and combines hpijs. Reproducible: Always Steps to Reproduce: 1. 2. 3.
Created attachment 45461 [details] This is the ebuild I generated
I'd also like to see this included in portage, since it adds the unique abality to clean the printheads under linux, together with quite a few other useful features that were only available under windows until now.
BTW: Your ebuild is completly useless, since it circumvents portage. You won't be able to uninstall hplip. I know hplip tries to install files where it's not supposed to, but your way of doing it is even worse. I'd suggest using sed to replace to the parts in the Makefiles that use the wrong directory.
Whoops, sorry, my bad. Your ebuild does not circumvent portage, it simply doesn't install anything at all. But still, it probably won't work anyway without using sed. hplip tries to install stuff in a hardcoded location (e.g. the python-stuff, config-file and init-script). Portage won't allow that, so you have to change the locations in the Makefile(s). Have a look at the hpijs-ebuild.
Anyone feel free to hack up an ebuild. This seemed to work for me but I didn't test it on a clean system. I run Gentoo but this doesn't fall in the top tier distros that we are targeting. So, I will need someone else's help to get this to work correctly...
It won't work since you used "emake" instead of "emake install". :) Hacking up an ebuild is going to be a pain, since for some reason all the Makefiles contain hardcoded paths and don't honour the prefix, plus they're trying to delete files and directories during the installation. Portage will IMHO have massive problems with this and even after having added half a dozend sed-statements, I still haven't got all the cases where the Makefiles try to do something to the filesystem they're not supposed to. I think I'm going to skip the emake install part and copy the files manually. Not very userfriendly, but at least it'll work. Maybe one of the gentoo-devs could comment on this.
if you look at hpoj as an example, it goes to show how ugly it is to do the file copy stuff manually. We have modified the scripts to be more RPM friendly but I would have a tough time concincing my engineer to make it portage friendly as well...
Just a quick comment of encouragement. It would be great to have this in portage and it would be much appreciated if the install integrated more elegantly with portage.
please use econf instead of configure in src_compile and einstall instead of emake in src_install and "inherit eutils" seems no to be used
Created attachment 47774 [details] new ebuild Hi, I make this ebuild, but is imcomplete, TODO: -make /etc/hp - change the home in the hplip.conf - install the init script - and more...
Created attachment 47775 [details] the init script This is the gentoo init script.
And... make an alias for this bug!!, and add the url
Created attachment 48429 [details] hplip 0.8.4 Ebuild I get the following errors with your ebuild and with my modified one (see the attached file): running install running build running build_ext running install_lib copying build/lib.linux-i686-2.3/pcardext.so -> /usr/lib/python2.3/site-packages error: /usr/lib/python2.3/site-packages/pcardext.so: Permission denied make[3]: *** [install-data-hook] Error 1 make[3]: Leaving directory `/var/tmp/portage/hplip-0.8.4/work/hplip-0.8.4/pcard' make[2]: *** [install-data-am] Error 2 make[2]: Leaving directory `/var/tmp/portage/hplip-0.8.4/work/hplip-0.8.4/pcard' make[1]: *** [install-am] Error 2 make[1]: Leaving directory `/var/tmp/portage/hplip-0.8.4/work/hplip-0.8.4/pcard' make: *** [install] Error 2 !!! ERROR: net-print/hplip-0.8.4 failed. !!! Function einstall, Line 478, Exitcode 2 !!! einstall failed !!! If you need support, post the topmost build error, NOT this status message. --------------------------- ACCESS VIOLATION SUMMARY --------------------------- LOG FILE = "/tmp/sandbox-net-print_-_hplip-0.8.4-6834.log" unlink: /usr/share/cups/model/HP*hpijs*.ppd* unlink: /usr/share/cups/model/foomatic/HP/HP*hpijs*.ppd* open_wr: /usr/lib/cups/backend/hp --------------------------------------------------------------------------------
Created attachment 48914 [details] Bugfixed version of the init script previously provided
Now also compiles for PPC. However, there is a defect regarding printing a test page from the toolbox. Other functions seem to work but have not tested well. My test machine is a G3 iMac running Gentoo.
I have also tried this ebuild. I just installed new ink cartridges and I need to calibrate/etc. I do have Windows at all, which makes this task kind of difficult. cheers --------------------------- ACCESS VIOLATION SUMMARY --------------------------- LOG FILE = "/tmp/sandbox-net-print_-_hplip-0.8.4-15001.log" unlink: /usr/share/cups/model/HP*hpijs*.ppd* unlink: /usr/share/cups/model/foomatic/HP/HP*hpijs*.ppd* open_wr: /usr/lib/cups/backend/hp -------------------------------------------------------------------------------- emerge --info: Portage 2.0.51-r3 (default-linux/x86/2004.2, gcc-3.3.5, glibc-2.3.4.20041102-r0, 2.6.10-gentoo-r6 i686) ================================================================= System uname: 2.6.10-gentoo-r6 i686 AMD Athlon(tm) MP 2800+ Gentoo Base System version 1.6.8 Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.92.0.2-r1 Headers: sys-kernel/linux26-headers-2.6.8.1-r2 Libtools: sys-devel/libtool-1.5.2-r7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O2 -pipe -mmmx -msse -m3dnow" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -O2 -pipe -mmmx -msse -m3dnow" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/ http://mirrors.tds.net/gentoo ftp://mirrors.tds.net/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" USE="x86 3dnow 3dnowex X a52 aac acl acpi aim alsa apache2 arts artswrappersuid artworkextra asm audiofile avi berkdb bitmap-fonts bmp bzip2 bzlib cairo cddb cdparanoia cdr cdrom crypt cscope ctype cups curl dhcp divx4linux dnd dtsdv dvd dvdr dvdread emacs encode exif ffmpeg flac foomaticdb freetype freetype2 ftp gd gif gimp gimpprint glade glut gmail gphoto2 graphviz gs gstreamer gtk gtk2 hal icq ieee1394 image imagemagick imap imlib imlib2 innodb ipv6 j2eejabber java joystick jpeg jpeg2k kde lm_sensors lzo lzw lzw-tiff mad mbox mjpeg mmap mmx mmx2 mng mozdevelop mozilla moznocompose moznoirc moznomail mozsvg mozxmlterm mp3 mpeg mpeg4 mplayer msn mysql ncurses nls nntp nptl nvidia offensive oggvorbis openal opengl openssh oss pam pcap pcre pda pdf pdflib pear-db perl php png pnp ppds print pthreads python qt quicktime readline rtc samba sasl sdl slp sounds sox spell sse ssl svg tcltk tcpd tetex theora tiff transcode truetype truetype-fonts type1 type1-fonts usb userlocales v4l v4l2 videos vim-with-x vnc vorbis wifi xine xinerama xinetd xml xml2 xmlrpc xosd xpm xprint xrandr xscreensaver xsl xslt xv xvid zlib video_cards_nvidia"
I tried 0.8.7 and got the same error msg. One thing I noticed was unlink: /usr/share/cups/model/HP*hpijs*.ppd* unlink: /usr/share/cups/model/foomatic/HP/HP*hpijs*.ppd* Both of theses do not even exist. open_wr: /usr/lib/cups/backend/hp Make output: /bin/sh ./mkinstalldirs /usr/lib/cups/backend /bin/install -c hp /usr/lib/cups/backend/hp ACCESS DENIED open_wr: /usr/lib/cups/backend/hp /bin/install: cannot create regular file `/usr/lib/cups/backend/hp': Permission denied make[2]: *** [install-cupsPROGRAMS] Error 1 there is no ``hp" dir in /usr/lib/cups/backend either.
Failed for me the same way as for Joseph (comments 16 and 17). Seems to relate to installation of pcardext.so into the python2.3 site-packages directory. Relevant error and preceding text follow: make[3]: Entering directory `/var/tmp/portage/hplip-0.8.4/work/hplip-0.8.4/pcard' cd pcardext; \ if [ "" = "" ]; then \ python setup.py install; \ else \ python setup.py install --root= --prefix=/var/tmp/portage/hplip-0.8.4/image//usr; \ fi running install running build running build_ext running install_lib copying build/lib.linux-i686-2.3/pcardext.so -> /usr/lib/python2.3/site-packages error: /usr/lib/python2.3/site-packages/pcardext.so: Permission denied make[3]: *** [install-data-hook] Error 1 make[3]: Leaving directory `/var/tmp/portage/hplip-0.8.4/work/hplip-0.8.4/pcard' make[2]: *** [install-data-am] Error 2 make[2]: Leaving directory `/var/tmp/portage/hplip-0.8.4/work/hplip-0.8.4/pcard' make[1]: *** [install-am] Error 2 make[1]: Leaving directory `/var/tmp/portage/hplip-0.8.4/work/hplip-0.8.4/pcard' make: *** [install] Error 2
Me too: configure: WARNING: "no network support will be built" configure.in:8: version mismatch. This is Automake 1.7.9, configure.in:8: but the definition used by this AM_INIT_AUTOMAKE configure.in:8: comes from Automake 1.7.8. You should recreate configure.in:8: aclocal.m4 with aclocal and run automake again. make[1]: *** [Makefile.in] Error 1 xjpg_fix.c: In function `jpgFix_getActualTraits': xjpg_fix.c:512: warning: use of cast expressions as lvalues is deprecated xjpg_fix.c:533: warning: use of cast expressions as lvalues is deprecated xjpg_fix.c:549: warning: use of cast expressions as lvalues is deprecated xjpg_fix.c:560: warning: use of cast expressions as lvalues is deprecated xjpg_fix.c:581: warning: use of cast expressions as lvalues is deprecated xjpg_fix.c:587: warning: use of cast expressions as lvalues is deprecated xjpg_fix.c:595: warning: use of cast expressions as lvalues is deprecated xjpg_fix.c:605: warning: use of cast expressions as lvalues is deprecated xjpg_fix.c:610: warning: use of cast expressions as lvalues is deprecated xtiff.c:147:1: warning: "VERSION" redefined <command line>:10:1: warning: this is the location of the previous definition error: /usr/lib/python2.3/site-packages/cupsext.so: Permission denied make[3]: *** [install-data-hook] Error 1 make[2]: *** [install-data-am] Error 2 make[1]: *** [install-am] Error 2 ACCESS DENIED unlink: /usr/share/cups/model/HP-OfficeJet_6110-hpijs.ppd rm: cannot remove `/usr/share/cups/model/HP-OfficeJet_6110-hpijs.ppd': Permission denied ACCESS DENIED unlink: /usr/share/cups/model/foomatic/HP/HP*hpijs*.ppd* rm: cannot remove `/usr/share/cups/model/foomatic/HP/HP*hpijs*.ppd*': Permission denied make[3]: *** [install-cups] Error 1 make[2]: *** [install-data-am] Error 2 make[1]: *** [install-am] Error 2 ACCESS DENIED open_wr: /usr/lib/cups/backend/hp /bin/install: cannot create regular file `/usr/lib/cups/backend/hp': Permission denied make[2]: *** [install-cupsPROGRAMS] Error 1 make[1]: *** [install-am] Error 2 libtool: install: warning: remember to run `libtool --finish /usr/lib' libtool: install: warning: relinking `libsane-hpaio.la' libtool: install: warning: remember to run `libtool --finish /usr/lib' error: /usr/lib/python2.3/site-packages/pcardext.so: Permission denied make[3]: *** [install-data-hook] Error 1 make[2]: *** [install-data-am] Error 2 make[1]: *** [install-am] Error 2 make: *** [install] Error 2 !!! ERROR: net-print/hplip-0.8.7 failed. !!! Function einstall, Line 524, Exitcode 2 !!! einstall failed !!! If you need support, post the topmost build error, NOT this status message.
Created attachment 54830 [details] hplip 0.9 Ebuild + init.d script
this ebuild didn't create /etc/hp/hplip.conf .. ----------------------------------------------------------------------------- Apr 8 17:03:43 nanami hpiod: unable to open /etc/hp/hplip.conf: No such file or directory Apr 8 17:03:43 nanami hpiod: 0.9 accepting connections at 50000... ----------------------------------------------------------------------------- ..which made /usr/share/hplip/hpssd.py unable to start: ----------------------------------------------------------------------------- nanami ~ # /usr/share/hplip/hpssd.py -ldebug -x hpssd hpssd HP Linux Imaging and Printing System (ver. ) hpssd Services and Status Daemon ver. 4.1 hpssd hpssd Copyright (c) 2003-5 Hewlett-Packard Development Company, LP hpssd This software comes with ABSOLUTELY NO WARRANTY. hpssd This is free software, and you are welcome to distribute it hpssd under certain conditions. See COPYING file for more details. hpssd Traceback (most recent call last): File "/usr/share/hplip/hpssd.py", line 1078, in ? sys.exit( main( sys.argv[1:] ) ) File "/usr/share/hplip/hpssd.py", line 1036, in main server = hpssd_server( prop.hpssd_host, prop.hpssd_cfg_port ) File "/usr/share/hplip/hpssd.py", line 76, in __init__ self.bind( ( ip, port ) ) File "/usr/share/hplip/base/async.py", line 237, in bind return self.socket.bind( addr ) File "<string>", line 1, in bind TypeError: an integer is required ----------------------------------------------------------------------------- (of course it also didn't start as a deamon from /etc/init.d/hplip, but without any info about it - it just printed out: ----------------------------------------------------------------------------- hpssd hpssd HP Linux Imaging and Printing System (ver. ) hpssd Services and Status Daemon ver. 4.1 hpssd hpssd Copyright (c) 2003-5 Hewlett-Packard Development Company, LP hpssd This software comes with ABSOLUTELY NO WARRANTY. hpssd This is free software, and you are welcome to distribute it hpssd under certain conditions. See COPYING file for more details. hpssd ----------------------------------------------------------------------------- but: ----------------------------------------------------------------------------- nanami ~ # ps uax|grep hp root 18220 0.0 0.2 12252 1268 ? Ssl 17:17 0:00 /usr/sbin/hpiod root 18229 0.0 0.1 1820 632 pts/0 R+ 17:17 0:00 grep hp ----------------------------------------------------------------------------- )
hplip-0.9.0.ebuild, line 17 should *not* be commented out because of /usr/share/hplip/toolbox run-time dependency on dev-python/PyQt
Created attachment 55685 [details] hplip-0.9-r1 ebuild + init.d script * hplip-0.9-r1 (08 Apr 2005) 08 Apr 2005; Samuel Robyr <samuel.robyr@gmail.com> hplip-0.9-r1.ebuild : Added hplip.conf installation. Uncommented dev-python/PyQt in DEPEND.
Created attachment 55715 [details] hplip-0.9.1.ebuild and hplit init.d script ebuild for hplip 0.9.1. i've done quite a lot more that just a verion bump - check the Changelog for details :>
I'll save you some time: ------------------------------------------------------------------------------- * hplip-0.9.1 (08 April 2005) 08 April 2005; Grzegorz Dubicki <gdubicki@gazeta.pl> hplip-0.9.1.ebuild : Made it more conforming to the Gentoo ebuild standards (good header etc.). Corrected package name in DESCRIPTION and added ..a description. :> It now builds with 'sandbox' FEATURE. Corrected DEPEND and RDEPEND. More quiet init script. 08 April 2005; Grzegorz Dubicki <gdubicki@gazeta.pl> hplip-0.9.1.ebuild : Version bump. (...) ------------------------------------------------------------------------------- (sorry for flooding the bugzilla.. :/)
Created attachment 55720 [details] hplip-0.9.1-r1.ebuild and hplit init.d script * hplip-0.9.1-r1 (09 April 2005) 09 April 2005; Grzegorz Dubicki <gdubicki@gazeta.pl> hplip-0.9.1-r1.ebuild Added patch hplip-0.9.1-qsizepolicy-patch from: http://sourceforge.net/forum/forum.php?thread_id=1259523&forum_id=53438.
I tried hplip-0.9.1-r1.ebuild on my HP OfficeJet 6110. The ebuild does not automatically install the hplip init.d script (the code is there, but it doesn't seem to work), and I had to copy it manually to /etc/init.d. The HP Device Manager loads without any issues, and printing is perfect. Scanning doesn't work, but it didn't work with the hpijs driver either.
Created attachment 55788 [details] ..with init.d script installing correctly corrected init.d script install part. Sridhar: are you trying to use sane/xsane for scanning, as the hplip_readme.html suggests? - I can't test it myself because I don't have a HP printer with scanner.
There's a small problem with the latest version (attachment id=55788). The archive extracts to the net-print/ directory rather than net-print/hplip. Otherwise, printing is fine with this version. As for scanning, I have read hplip_readme.html but it doesn't seem to help. The sane-find-scanner command says "found USB scanner (vendor=0x03f0, product=0x2d11) at libusb:002:002", but I cannot seem to access the scanner at all. Clicking the Scan button in the HP Device Manager or running xsane manually gives the error: Failed to open device `hpaio:/usb/OfficeJet_6100_Series?serial=MY414H63B22R': Invalid argument.
Created attachment 55857 [details] ...& dir corrected >There's a small problem with the latest version (attachment id=55788). The >archive extracts to the net-print/ directory rather than net-print/hplip. >Otherwise, printing is fine with this version. corrected. can't help you with the scanning problem, though. :(
Keyword "hpaio" (without quotes) needs to be added to /etc/sane.d/dll.conf for scanner support to work. It would be nice to have some kind of ebuild warning or note for scanner usage.
The libsane-hpaio.* libs are placed in /usr/lib instead of /usr/lib/sane Compiling hpaio with hardened gcc causes the message "undefined symbol: MUL32HIHALF" when trying to load the hpaio backend with SANE_DEBUG_DLL=255. Compiling with the hardenendnopie gcc profile solves the problem. (gcc-3.4.3-r1) These problems apart, I've installed it without problems and works very well with my HP PSC-1315 (allinone printer/scanner).
I added "hpaio" to /etc/sane.d/dll.conf. Then: # cd /usr/lib # cp -a /usr/lib/libsane-hpaio* /usr/lib/sane `libsane-hpaio.la' -> `/usr/lib/sane/libsane-hpaio.la' `libsane-hpaio.so' -> `/usr/lib/sane/libsane-hpaio.so' `libsane-hpaio.so.1' -> `/usr/lib/sane/libsane-hpaio.so.1' `libsane-hpaio.so.1.0.0' -> `/usr/lib/sane/libsane-hpaio.so.1.0.0' # Now I can scan without any problem. Thanks everyone. It would be great if the ebuild put the files in the right place do that I wouldn't have to copy them.
Created attachment 56328 [details] hplip-0.9.1-r2 - scanner support added - can't test it though as I don't have a hp scanner. please try it out.
Created attachment 56329 [details] changelog for hplip-0.9.1-r2.ebuild
Created attachment 56341 [details] hplip-0.9.1-r2 - scanner support added this one emerges cleanly and should work. sorry for submiting non-tested version earlier.. ^_^' note: it creates /etc/sane.d/dll.conf with "hpaio", it creates symlinks from /usr/lib/sane/ to sane libs in /usr/lib/ but it *doesn't* correct bug with hardened gcc version.
It works! Printing and scanning both work perfectly, from what I can see. Thank you!
i'm using deskjet 1220c and printing (hpiod part) seems fine, but i can't get toolbox (hpssd part) and bi-di communication with windows clients (namely printer status update) to work. also, when trying to download the tgz attachemts to this bug, i found out that the majority returns corrupted files, which i'm unable to untar/unzip ("...& dir corrected" luckily works though, but "hplip-0.9-r1 ebuild + init.d script" does not). as a test i first run hpssd (as root) and then (on other consoles as normal user) hpguid and toolbox (same user) which opens up the hp device manager window but after a while crashes both daemons - bellow i paste their output... /usr/share/hplip/hpssd.py -ldebug -x: hpssd hpssd HP Linux Imaging and Printing System (ver. 0.9.1) hpssd Services and Status Daemon ver. 4.1 hpssd hpssd Copyright (c) 2003-5 Hewlett-Packard Development Company, LP hpssd This software comes with ABSOLUTELY NO WARRANTY. hpssd This is free software, and you are welcome to distribute it hpssd under certain conditions. See COPYING file for more details. hpssd hpssd [DEBUG]: <hpssd_server listening on localhost:40167 (fd=4)> hpssd [DEBUG]: port=40167 hpssd Listening on localhost port 40167 hpssd [DEBUG]: Starting async loop... hpssd [DEBUG]: <hpssd_handler connected to ('127.0.0.1', 40170) (fd=7)> hpssd [DEBUG]: Reading data on channel (7) hpssd [DEBUG]: ************************************************************ registerguievent ************************************************************ hpssd [DEBUG]: 'msg=registerguievent\nusername=ziga\nadmin-flag=False\nhostname=localhost\npid=29367\nport=40169\n' hpssd [DEBUG]: Registering GUI: ziga 0 localhost:40169 29367 hpssd [DEBUG]: Wrote PID 29367 to /var/run/hpguid-ziga.pid hpssd [DEBUG]: <hpssd_handler connected to ('127.0.0.1', 40171) (fd=8)> hpssd [DEBUG]: Reading data on channel (8) hpssd [DEBUG]: ************************************************************ getgui ************************************************************ hpssd [DEBUG]: 'msg=getgui\nusername=ziga\n' hpssd [DEBUG]: Sending data on channel (8) hpssd [DEBUG]: 'msg=getguiresult\nresult-code=0\nhostname=localhost\nport=40169\n' hpssd [DEBUG]: Reading data on channel (8) hpssd [DEBUG]: ************************************************************ event ************************************************************ hpssd [DEBUG]: 'msg=event\nevent-code=7000\nusername=ziga\njob-id=0\nretry-timeout=0\nevent-type=event\n' hpssd [DEBUG]: code (type): 7000 (event) hpssd [DEBUG]: String query: 7000 hpssd [DEBUG]: Exception: 14 (String/error query failed) hpssd [DEBUG]: String query: 7000 hpssd [DEBUG]: Exception: 14 (String/error query failed) hpssd [DEBUG]: short: hpssd [DEBUG]: long: hpssd [DEBUG]: username (jobid): ziga (0) hpssd [DEBUG]: String query: 7000 hpssd [DEBUG]: Exception: 14 (String/error query failed) hpssd [DEBUG]: String query: 7000 hpssd [DEBUG]: Exception: 14 (String/error query failed) hpssd [DEBUG]: localhost:40169 hpssd [DEBUG]: Sending to GUI... hpssd [DEBUG]: 'msg=eventgui\nevent-code=7000\npopup=False\ndevice-uri=\nevent-type=event\njob-id=0\nretry-timeout=0\nencoding=none\nlength=2\ndata:\n\n\n' hpssd [DEBUG]: Reading data on channel (8) hpssd [DEBUG]: closing channel (8) hpssd [DEBUG]: <hpssd_handler connected to ('127.0.0.1', 40175) (fd=8)> hpssd [DEBUG]: Reading data on channel (8) hpssd [DEBUG]: ************************************************************ devicequery ************************************************************ hpssd [DEBUG]: 'msg=devicequery\ndevice-state-previous=0\ndevice-uri=hp:/usb/DESKJET_1220C?serial=MY288330CH0O\nstatus-code-previous=1000\nmake-history=True\n' hpssd [DEBUG]: URI: backend=hp, is_hp=True, bus=usb, model=DESKJET_1220C, serial=MY288330CH0O, dev=, host=, port=1 hpssd [DEBUG]: Opening device: hp:/usb/DESKJET_1220C?serial=MY288330CH0O hpssd [DEBUG]: Sending: 'msg=deviceopen\ndevice-uri=hp:/usb/DESKJET_1220C?serial=MY288330CH0O\n' hpssd [DEBUG]: Received: 'msg=DeviceOpenResult\nresult-code=0\ndevice-id=1\n' hpssd [DEBUG]: device-id=1 hpssd [DEBUG]: Opened device: hp:/usb/DESKJET_1220C?serial=MY288330CH0O (hp=True,bus=usb,model=DESKJET_1220C,dev=,serial=MY288330CH0O) hpssd [DEBUG]: status-type=1 hpssd [DEBUG]: io-state=0 hpssd [DEBUG]: Sending: 'msg=deviceid\ndevice-id=1\n' hpssd [DEBUG]: Received: 'msg=DeviceIDResult\nresult-code=0\nlength=233\ndata:\nMFG:HEWLETT-PACKARD;MDL:DESKJET 1220C;CMD:MLC,PCL,PML;CLASS:PRINTER;DESCRIPTION:Hewlett-Packard DeskJet 1220C;SERN:MY288330CH0O;VSTATUS:$HB0$NC0,ff,DN,IDLE,CUT,K3,C2,SM,NR,KP000,CP000;VP:0800,FL,B0;BOD:12311;USE:05E208AB,000E13;BLK:;' hpssd [DEBUG]: Sending: 'msg=devicefile\ndevice-uri=hp:/usb/DESKJET_1220C?serial=MY288330CH0O\n' hpssd [DEBUG]: Received: 'msg=DeviceFileResult\nresult-code=0\ndevice-file=hp:/usb/DESKJET_1220C?device=/dev/usb/lp0\n' hpssd [DEBUG]: Sending: 'msg=devicestatus\ndevice-id=1\n' hpssd [DEBUG]: Received: 'msg=DeviceStatusResult\nresult-code=0\nstatus-code=24\nstatus-name=NoFault\n' hpssd [DEBUG]: Type 1/2 (S: or VSTATUS:) status hpssd [DEBUG]: Opening HP-MESSAGE channel... hpssd [DEBUG]: Sending: 'msg=channelopen\ndevice-id=1\nio-control=gusher\nservice-name=hp-message\n' hpssd [DEBUG]: Received: 'msg=ChannelOpenResult\nresult-code=0\nchannel-id=1\n' hpssd [DEBUG]: channel-id=1 hpssd [DEBUG]: Sending: 'msg=getpml\ndevice-id=1\noid=1.3.6.1.4.1.11.2.3.9.4.2.1.1.2.20.2.1.1.0\ntype=16\nchannel-id=1\n' hpssd [DEBUG]: Exception: 99 (Unknown internal error) hpssd [ERROR]: Unhandled exception during processing hpssd [DEBUG]: Reading data on channel (8) hpssd [DEBUG]: ************************************************************ modelquery ************************************************************ hpssd [DEBUG]: 'msg=modelquery\nmodel=DESKJET_1220C\n' hpssd [DEBUG]: ModelQuery: DESKJET_1220C hpssd [DEBUG]: Sending data on channel (8) hpssd [DEBUG]: 'msg=modelqueryresult\ncopy-type=0\nio-control=gusher\nfax-type=0\npcard-type=0\nr0-agent2-sku=78 (C6578AN)\ntech-type=2\nembedded-server-type=0\nstatus-type=1\nr0-agent1-type=1\ncolor-cal-type=0\nalign-type=1\nio-mode=raw\nr0-agent2-kind=3\nclean-type=1\nr0-agent1-kind=3\nresult-code=0\nr0-agent2-type=2\npanel-check-type=1\nr0-agent1-sku=45 (51645A)\nscan-type=0\n' hpssd [DEBUG]: Reading data on channel (8) hpssd [DEBUG]: ************************************************************ historyquery ************************************************************ hpssd [DEBUG]: 'msg=historyquery\ndevice-uri=hp:/usb/DESKJET_1220C?serial=MY288330CH0O\n' hpssd [DEBUG]: HistoryQuery: hp:/usb/DESKJET_1220C?serial=MY288330CH0O hpssd [WARNING]: HistoryQuery failed: Initializing... hpssd [DEBUG]: Initializing history for hp:/usb/DESKJET_1220C?serial=MY288330CH0O hpssd [DEBUG]: URI: backend=hp, is_hp=True, bus=usb, model=DESKJET_1220C, serial=MY288330CH0O, dev=, host=, port=1 hpssd [DEBUG]: Opening device: hp:/usb/DESKJET_1220C?serial=MY288330CH0O hpssd [DEBUG]: Sending: 'msg=deviceopen\ndevice-uri=hp:/usb/DESKJET_1220C?serial=MY288330CH0O\n' hpssd [DEBUG]: Received: 'msg=GetPMLResult\nresult-code=0\npml-result-code=131\ntype=28\nlength=0\ndata:\n' hpssd [ERROR]: Traceback (innermost last): File "/usr/share/hplip/base/device.py", line 606, in open self.device_id = fields[ 'device-id' ] KeyError: 'device-id' hpssd [DEBUG]: Cleaning up... hpssd [DEBUG]: Sending EXIT to all registered GUIs hpssd [DEBUG]: Closing GUI localhost:40169 hpssd [DEBUG]: 'msg=exitguievent\n' /usr/share/hplip/hpguid.py -ldebug -x (as user): hpguid hpguid HP Linux Imaging and Printing System (ver. 0.9.1) hpguid GUI Daemon ver. 3.0 hpguid hpguid Copyright (c) 2003-5 Hewlett-Packard Development Company, LP hpguid This software comes with ABSOLUTELY NO WARRANTY. hpguid This is free software, and you are welcome to distribute it hpguid under certain conditions. See COPYING file for more details. hpguid hpguid Listening on localhost port 40169 hpguid [DEBUG]: 'msg=registerguievent\nusername=ziga\nadmin-flag=False\nhostname=localhost\npid=29367\nport=40169\n' hpguid [DEBUG]: pid=29367 hpguid [DEBUG]: Using default 'C' locale hpguid [DEBUG]: Starting GUI loop... hpguid [DEBUG]: Reading data on channel (10) hpguid [DEBUG]: closing channel (10) hpguid [DEBUG]: Reading data on channel (10) hpguid [DEBUG]: **************************************** eventgui **************************************** hpguid [DEBUG]: 'msg=eventgui\nevent-code=7000\npopup=False\ndevice-uri=\nevent-type=event\njob-id=0\nretry-timeout=0\nencoding=none\nlength=2\ndata:\n\n\n' hpguid [DEBUG]: Event: 7000 'event' hpguid [DEBUG]: Creating toolbox UI hpguid [DEBUG]: Initializing toolbox UI hpguid [DEBUG]: Print command: kprinter -P%PRINTER% --system cups hpguid [DEBUG]: PCard command: python %HOME%/unload -d %DEVICE_URI% hpguid [DEBUG]: Fax command: hpguid [DEBUG]: Copy command: hpguid [DEBUG]: Scan command: hpguid [DEBUG]: Email alerts: False hpguid [DEBUG]: Email address: hpguid [DEBUG]: SMTP server: hpguid [DEBUG]: Popup alerts: True hpguid [DEBUG]: Auto refresh: True hpguid [DEBUG]: Auto refresh rate: 30 hpguid [DEBUG]: Showing toolbox hpguid [DEBUG]: Event: code=7000 type=event string= timeout=0 id=0 uri= hpguid [DEBUG]: Rescanning device list... hpguid [DEBUG]: Reading data on channel (10) hpguid [DEBUG]: closing channel (10) hpguid [DEBUG]: Refresh: ******************** hp:/usb/DESKJET_1220C?serial=MY288330CH0O ******************** hpguid [DEBUG]: Update: ******************** hp:/usb/DESKJET_1220C?serial=MY288330CH0O ******************** hpguid [DEBUG]: Device URI=hp:/usb/DESKJET_1220C?serial=MY288330CH0O hpguid [DEBUG]: Sending: 'msg=devicequery\ndevice-state-previous=0\ndevice-uri=hp:/usb/DESKJET_1220C?serial=MY288330CH0O\nstatus-code-previous=1000\nmake-history=True\n' hpguid [DEBUG]: Exception: 99 (Unknown internal error) hpguid [DEBUG]: Sending: 'msg=modelquery\nmodel=DESKJET_1220C\n' hpguid [DEBUG]: Received: 'msg=modelqueryresult\ncopy-type=0\nio-control=gusher\nfax-type=0\npcard-type=0\nr0-agent2-sku=78 (C6578AN)\ntech-type=2\nembedded-server-type=0\nstatus-type=1\nr0-agent1-type=1\ncolor-cal-type=0\nalign-type=1\nio-mode=raw\nr0-agent2-kind=3\nclean-type=1\nr0-agent1-kind=3\nresult-code=0\nr0-agent2-type=2\npanel-check-type=1\nr0-agent1-sku=45 (51645A)\nscan-type=0\n' hpguid [DEBUG]: Sending: 'msg=historyquery\ndevice-uri=hp:/usb/DESKJET_1220C?serial=MY288330CH0O\n' hpguid [DEBUG]: Received: '' hpguid [DEBUG]: Exception: 5 (Unknown message type) hpguid [ERROR]: History query failed. hpguid [DEBUG]: Device state = -1 hpguid [DEBUG]: Status code = 0 hpguid [DEBUG]: Error state = 3 hpguid [DEBUG]: Refresh timer... hpguid [DEBUG]: Update: ******************** hp:/usb/DESKJET_1220C?serial=MY288330CH0O ******************** hpguid [DEBUG]: Device URI=hp:/usb/DESKJET_1220C?serial=MY288330CH0O hpguid [DEBUG]: Sending: 'msg=devicequery\ndevice-state-previous=-1\ndevice-uri=hp:/usb/DESKJET_1220C?serial=MY288330CH0O\nstatus-code-previous=0\nmake-history=True\n' hpguid [DEBUG]: Received: '' hpguid [DEBUG]: Exception: 5 (Unknown message type) hpguid [DEBUG]: Sending: 'msg=historyquery\ndevice-uri=hp:/usb/DESKJET_1220C?serial=MY288330CH0O\n' hpguid [ERROR]: Traceback (innermost last): File "/usr/share/hplip/base/msg.py", line 228, in xmitMessage sock.send( m ) error: (32, 'Broken pipe') hpguid [DEBUG]: Exception: 99 (Unknown internal error) hpguid [ERROR]: History query failed. hpguid [DEBUG]: Device state = -1 hpguid [DEBUG]: Status code = 0 hpguid [DEBUG]: Error state = 3 hpguid [DEBUG]: Sending: 'msg=historyquery\ndevice-uri=hp:/usb/DESKJET_1220C?serial=MY288330CH0O\n' hpguid [ERROR]: Traceback (innermost last): File "/usr/share/hplip/base/msg.py", line 228, in xmitMessage sock.send( m ) error: (32, 'Broken pipe') hpguid [DEBUG]: Exception: 99 (Unknown internal error) hpguid [ERROR]: History query failed. Traceback (most recent call last): File "/usr/share/hplip/ui/devmgr4.py", line 392, in TimedRefresh self.UpdateDevice() File "/usr/share/hplip/ui/devmgr4.py", line 508, in UpdateDevice self.UpdateTabs() File "/usr/share/hplip/ui/devmgr4.py", line 703, in UpdateTabs self.UpdateStatusTab() File "/usr/share/hplip/ui/devmgr4.py", line 789, in UpdateStatusTab for x in cd.hist: AttributeError: DummyDevice instance has no attribute 'hist' hpguid [DEBUG]: Reading data on channel (10) hpguid [DEBUG]: **************************************** exitguievent **************************************** hpguid [DEBUG]: 'msg=exitguievent\n' hpguid [DEBUG]: 'msg=unregisterguievent\nusername=ziga\npid=29367\n' hpguid [DEBUG]: 'msg=unregisterguievent\nusername=ziga\npid=29367\n' hpguid [ERROR]: Traceback (innermost last): File "/usr/lib/python2.3/socket.py", line 143, in _dummy raise error(EBADF, 'Bad file descriptor') error: (9, 'Bad file descriptor') hpguid [DEBUG]: Exception: 99 (Unknown internal error) hpguid [ERROR]: UnRegister GUI failed (code=99). my system info: Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.4.3-20050110, glibc-2.3.4.20050125-r1,glibc-2.3.4.20040808-r1, 2.6.7-gentoo-r14 i686) ================================================================= System uname: 2.6.7-gentoo-r14 i686 AMD Duron(tm) Processor Gentoo Base System version 1.6.8 Python: dev-lang/python-2.3.5 [2.3.5 (#1, Apr 15 2005, 20:32:02)] dev-lang/python: 2.3.5 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r8 sys-devel/libtool: 1.5.14 virtual/os-headers: 2.6.8.1-r4 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=athlon -O2 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks prelink sandbox sfperms" GENTOO_MIRRORS="ftp://mirror.switch.ch/mirror/gentoo/ http://trumpetti.atm.tut.fi/gentoo/ http://ftp.ntua.gr/pub/linux/gentoo/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo" LANG="sl_SI.UTF-8" MAKEOPTS="-j2" PKGDIR="/usr/src/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 3dnow X aac aalib accessibility acl acpi alsa apache2 apm arts artswrappersuid audiofile avi berkdb bitmap-fonts blas blender-game bonobo bzip2 cdr chroot crypt cups curl dga doc dvb emboss encode f77 faac faad fam flac fmod foomaticdb fortran gd gdbm gif gimpprint gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile hal hbci imagemagick imap imlib imlib2 ithreads jack java jpeg jpeg2k junit kde kerberos kig-scripting krb4 lcms ldap libg++ libwww lm_sensors logitech-mouse mad maildir mailwrapper memlimit mikmod mmx mng monkey motif mozilla mp3 mpeg mpi mule mysql nas ncurses nls nptl nptlonly nvidia oav odbc ofx ogg oggvorbis ooo-kde openexr opengl oss pam pda pdflib perl php pic png postgres ppds pwdb python qt quicktime quotas quotes rdesktop readline real ruby samba sasl scanner sdl slang slp snmp socks5 speex spell ssl svg svga tcltk tcpd tetex theora threads tiff truetype truetype-fonts type1-fonts unicode usb vda vhosts vidix vim-with-x visualization vorbis wmf xine xml xml2 xosd xprint xv xvmc zeroconf zlib" Unset: ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS, LINGUAS
> i'm using deskjet 1220c and printing (hpiod part) seems fine, but i can't get > toolbox (hpssd part) and bi-di communication with windows clients (namely > printer status update) to work. also, when trying to download the tgz attachemts > to this bug, i found out that the majority returns corrupted files, which i'm > unable to untar/unzip ("...& dir corrected" luckily works though, but > "hplip-0.9-r1 ebuild + init.d script" does not). please try newest ebuild first - 'hplip-0.9.1-r2 - scanner support added' (http://bugs.gentoo.org/attachment.cgi?id=56329&action=view)
..sorry, wrong link. the ebuild is here: http://bugs.gentoo.org/attachment.cgi?id=56341&action=view
i did, but as i also needed the init.d script and hplip-0.9.1-qsizepolicy-patch (files section), i took those out of older (tgz) version of attachment. it seems that hpssd crashes when hpguid tries to do some sort of history query: [...] hpguid [DEBUG]: Sending: 'msg=historyquery\ndevice-uri=hp:/usb/DESKJET_1220C?serial=MY288330CH0O\n' hpguid [DEBUG]: Received: '' hpguid [DEBUG]: Exception: 5 (Unknown message type) hpguid [ERROR]: History query failed. [...] if i turn off the printer, toolbox starts ok, but crashes (along with hpssd) as soon as i turn it on and hpguid tries to do the dreaded history query... any other clues/hints/pointers?
please disregard my bug report - especially in the face of the fact that others don't seem to have same problem and as i would really hate to be the one responsible for not getting this ebuild into cvs asap... as a side note, my system is quite "old" (i have been running and upgrading it from pre 1.4 times), so it is probably the issue with some obscure library lying unupdated somewhere. i will look more into this and report back if i find anything... well... worth reporting! ;-) anyhow, thx for your work!
IMHO hplip-0.9.1-r2 should be uploaded to CVS, but there's no reason why Ziga's problem can't be worked on afterward. A few people seem to be having success with the latest ebuild, but that doesn't make it a panacea. There may be others with Ziga's problem. As aside, I don't think the age of the installation is necessarily an issue. If I remember correctly, my Gentoo installation began with 1.2.
0.9.2 is out: https://sourceforge.net/project/showfiles.php?group_id=16846&package_id=137628&release_id=321527 Changelog: http://hpinkjet.sourceforge.net/updates.php#ah092 Can we have an updated ebuild, please?
Created attachment 56633 [details] hplip-0.9.2.ebuild "package" - includes ebuild, Changelog, init.d script & digests. (to put in your PORTDIR_OVERLAY) as reqested. tested and working.
Created attachment 56634 [details] hplip-0.9.2.ebuild (to look at)
I've been making adjustments. Just grabbed a printer that needs this. 24 Apr 2005; Nicholas Jones <carpaski@gentoo.org> hplip-0.9.2-r1.ebuild : Adjusted the ebuild to be a bit more proper. Still need to figure out how to disable the sane libs from being built, and need to identify which HP apps are relevant to the basic installation and aren't sane or general scanner tools. http://zarquon.twobit.net/gentoo/portage/hplip/ http://zarquon.twobit.net/gentoo/portage/hplip-0.9.2-r1.tar.gz Someone using the scanner stuff please check to see using this ebuild works with AND/OR without 'scanner'. I haven't tracked it down yet, but the Makefile is installing libsane at 'make install'. The cups build-time dep is because of the cupsext module of the "prnt" module for python. I haven't investigated it too much, but it would require removing the print module, or editing the package to handle the conditional dep. I changed the 'network' flag to 'snmp' as the network-build is for snmp support explicitly. Odd choice of name. enable-network-build --> network_build --> HAVE_LIBSNMP
the stuff from comment #45 works fine here without changes. with the hpoj and hpijs stuff printing was not possible for me while the scan- driver (ptal-...) was loaded, with hplip this works perfectly well. given the actual problems with hpoj (bug #83290) it would be nice to have hplip added to portage. it seems to be more up-to-date and actively maintained too.
hplip is intended to replace hpoj (which AFAIK isn't maintained anymore), so it should definitely be in portage.
Nicholas, I installed your hplip-0.9.2-r1 package, and with my LaserJet 3030 AIO printing worked with both -scanner and +scanner flags. Scanning threw an I/O error first, but worked flawlessly after I had reverted to hplip-0.9.2 and re-emerged 0.9.2-r1 after that. Either the error source was me or the 0.9.2 install dropped a necessary config file into place, I'm not sure which...
I'll be adding this to portage soon. Andreas Eckstein, I could use more detail on your problem and anything on exactly what fixed it. I'll review the ebuild and the changes I made to see if I changed anything in an odd way, but if you installed -r1, all the associated files should have been removed. So, there shouldn't be any magic from reverting and updating again. Ziga Boehm, Any updates on your problem? Have you investigated their mailing lists?
i have - i also found a solution and reported it to hplip discussion forum (http://sourceforge.net/forum/forum.php?thread_id=1275394&forum_id=426789) though i haven't yet received an answer to whether this indeed is a bug or a fault with my system. so, to me, with the information i was able to gather, it seems to be the bug which concerns my model of printer (deskjet 1220c) only and requires changing a panel-check-type value entry from 1 to 0 in /usr/share/hplip/data/xml/models.xml. i'll keep you updated if i find out anything new or otherwise contradictory to my current findings. thx again for your work - i really appreciate it!
as a side question - i am exporting the printer to windows clients through samba and raw cups so they can use their own native (windows) drivers. printing works fine, but the toolbox on clients seems not to be able to monitor the status of the printer - reporting one-way communication as a probable cause... should this feature work on windows clients or is it just not supported yet? does this work in your (windows) lan environments?
I installed this ebuild on my machine and noticed that for some reason, the cupsext.so python module and the hplip.conf file don't get installed. I poked around the Makefile to see if I could see the problem, but I'm not all that great with them and couldn't see anything blatently wrong. hpssd wouldn't start without that .so module. The module gets built, but just not installed. After copying it to /usr/lib/python2.3/site-packages, hpssd started without any problems. I tried both the 0.9.2 and the 0.9.2-r1 ebuilds and both act the same way.
Created attachment 58278 [details] hpiod.port connect problem I have an HP1220C and I wish to recover the ink/paper/duplex management functions I had with my previous OS. I hope it will help for pushing hplip in the gentoo mainstream. hplip seems to be a good example of blending specific bi_di device support within an open infrastructure and it might be generalized to support other vendors. and that goes well with idea of generalizing the blending of input and output infrastructure, here for the representation of text and "image".
Unfortunately, it doesn't work for me on my HP PSC 1315. Printing works without problem but the scanner is not detected. As requested, I put "hpaio" in the /etc/sane.d/dll.conf but that doesn't change. Strangely, this same scanner wotks on Debian with hplip 0.9.2. I tried under Gentoo with the ebuild from the attachment #56633 [details] What could I do next ? Thanks for your help,
the hplip-0.9.2.ebuild works great on ~amd64 with HP Photosmart 7260
Regarding the init script, should it not wait until hotplug is done? like: depend() { before cupsd after hotplug }
HPLIP 0.9.3 is now out: http://sourceforge.net/forum/forum.php?forum_id=467302
comment #56 i used the ebuild from comment #45 (the tgz) and both printing and scanning works without any problems (sanning via media-gfx/xsane-0.96-r1). a officejet 7310 (only tested via usb up to now) works fine, too.
addition to comment #60 the 7310 also works perfectly fine via network (print + scan) re: comment #47 "network" was not that bad a name for it as it enables exactly that: printing and scanning via network for e.g. the officejets. "snmp" is kinda misleading in that case.
Created attachment 59742 [details] Hplip 0.9.3 ebuild
Just tested hplib 0.9.3 ebuild from attachment 59742 [details], I can confirm the ebuild installs and works without any problems, thanks!
One small suggestion for the last ebuild (0.9.3); add a blocker for hpoj in the ebuild, because it's not needed with hplip.
hplip-0.9.3 now in portage, it's a combination of the hpoj/hpijs ebuilds and your hplip ebuild.
The scanner is not recognized, but printing is fine. I am using a PSC 1215. To use the scanner i need to install hpoj. Thx