HPLIP and Py Qt4...

Please reproduce your error on a second machine before posting, and check the error by running without saved changes or extra modules (See FAQ No. 13, "How to report a bug"). For unstable Porteus versions (alpha, beta, rc) please use the relevant thread in our "Development" section.
Post Reply
miguipda
Samurai
Samurai
Posts: 157
Joined: 12 Jun 2012, 18:21
Location: france

HPLIP and Py Qt4...

Post#1 by miguipda » 16 Jul 2012, 07:41

Hi,

as I have a HP Photosmart Printer I usually used HPLIP to use it on the other distributions.
Now I found the HPLIP on Porteus 1.2 64 bits I successfully installe it.

But when I click the HPLIP menu icon it does not start.

The I tried to find some hp command lines. I found some of them (hp-...) and tested the hp-check command line.
It returned some libraries errors. i installed them but it stil exist a Py Qt4 error I can not solve. And this even the Qt4 exist in the k Menu Settings.

How could I solve this to be able to use the K Menu HPLIP installed module ?

Sincerely thanks and have a nice day,

Miguipda ;-)

User avatar
wread
Module Guard
Module Guard
Posts: 1108
Joined: 09 Jan 2011, 18:48
Distribution: Porteus v3.2.5-kde5-64 bits
Location: Santo Domingo
Contact:

Re: HPLIP and Py Qt4...

Post#2 by wread » 17 Jul 2012, 02:29

You can get the source here: http://www.riverbankcomputing.co.uk/sta ... 9.4.tar.gz

I have made a module for 32-bits; it is posted in the forum, but I see you are using 64 bits.

Good luck :wink:
Porteus is proud of the FASTEST KDE ever made.....(take akonadi, nepomuk and soprano out and you will have a decent OS).
The Porteus Community never sleeps!

miguipda
Samurai
Samurai
Posts: 157
Joined: 12 Jun 2012, 18:21
Location: france

Re: HPLIP and Py Qt4...

Post#3 by miguipda » 17 Jul 2012, 04:46

Dear wread,

and ...
did you test it to see if work or not ?

Sincerely thanks I will try to make a module on my 64 bits.
I presume I just need to use the dir2xzm tool ?

I did not do it before because I am afraid to make something wrong due to the fact I saw the Qt4 setting icon in the K menu. Then I though there was already a Qt4 and then I though it could cause some conflict...

I will see.

Thanks for your help and comment.

Have a nice day,

Miguipda ;-)

User avatar
wread
Module Guard
Module Guard
Posts: 1108
Joined: 09 Jan 2011, 18:48
Distribution: Porteus v3.2.5-kde5-64 bits
Location: Santo Domingo
Contact:

Re: HPLIP and Py Qt4...

Post#4 by wread » 17 Jul 2012, 12:21

The HPPrinter package for 32 bits works nicely. It contains, besides, a scanning facility. Has been downloaded over 40 times; some included modules over 300 times....

Don't be afraid of doing something wrong; experimenting is the only way to confirm theory.
Read, read, read, and first when you feel you understand a little bit, try it!
Follow my advice and you will succeed :shock:

Regards.
Porteus is proud of the FASTEST KDE ever made.....(take akonadi, nepomuk and soprano out and you will have a decent OS).
The Porteus Community never sleeps!

User avatar
fanthom
Site Admin
Site Admin
Posts: 4623
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Re: HPLIP and Py Qt4...

Post#5 by fanthom » 20 Jul 2012, 08:21

tracking python deps is a pain but yeah - here is a full list of deps needed to start hplip on clean porteus-1.2 installation:

Code: Select all

PyQt-4.8.1-x86_64-1.xzm
aalib-1.4rc5-x86_64-3.xzm
babl-0.1.2-x86_64-1.xzm
dbus-python-0.83.1-x86_64-1.xzm
gegl-0.1.2-x86_64-1.xzm
gimp-2.6.11-x86_64-3.xzm
hal-0.5.14-x86_64-3.xzm
hplip-3.11.3a-x86_64-1.xzm
ilmbase-1.0.2-x86_64-1.xzm
libexif-0.6.20-x86_64-1.xzm
libgphoto2-2.4.10.1-x86_64-1.xzm
libieee1284-0.2.11-x86_64-2.xzm
libwmf-0.2.8.4-x86_64-5.xzm
net-snmp-5.6.1-x86_64-1.xzm
openexr-1.7.0-x86_64-1.xzm
pygobject-2.26.0-x86_64-1.xzm
python-2.6.6-x86_64-1.xzm
sane-1.0.22-x86_64-2.xzm
sip-4.11.2-x86_64-1.xzm
tcl-8.5.9-x86_64-1.xzm
tk-8.5.9-x86_64-1.xzm
some of them are optional (gimp and hal for sure, still - they are pulled by PPM so i didn't remove them) so the list could be probably shorter.
pls give it a try.
Please add [Solved] to your thread title if the solution was found.

User avatar
wread
Module Guard
Module Guard
Posts: 1108
Joined: 09 Jan 2011, 18:48
Distribution: Porteus v3.2.5-kde5-64 bits
Location: Santo Domingo
Contact:

Re: HPLIP and Py Qt4...

Post#6 by wread » 20 Jul 2012, 12:10

I think francois made the HPPrinting package work on 64 bits by adding the 32-bits compatibility module of fanthom to it. You can give it a try! :Search:
Porteus is proud of the FASTEST KDE ever made.....(take akonadi, nepomuk and soprano out and you will have a decent OS).
The Porteus Community never sleeps!

miguipda
Samurai
Samurai
Posts: 157
Joined: 12 Jun 2012, 18:21
Location: france

Re: HPLIP and Py Qt4...

Post#7 by miguipda » 22 Jul 2012, 09:54

Hi,

after having installed the PyQt, pygobjects and sip it works. The HPLIP toolbox appears but I still have 2 errors on a hp-check command line.How to solve them ?

Sincerely thanks and have a nice day,

Miguipda ;-)

Code: Select all

guest@porteus:~$ hp-check 

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

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

Saving output in log file: hp-check.log

Initializing. Please wait...
 
---------------
| SYSTEM INFO |
---------------

Basic system information:
Linux porteus 3.4.4-porteus #1 SMP PREEMPT Tue Jun 26 00:34:17 UTC 2012 x86_64 Intel(R) Atom(TM) CPU  330   @ 1.60GHz GenuineIntel GNU/Linux

Distribution:
unknown 0.0

Checking Python version...
OK, version 2.6.6 installed

Checking PyQt 4.x version...
OK, version 4.8.1 installed.

Checking for CUPS...
Status: scheduler is running
Version: 1.4.6
warning: /etc/cups/cupsd.conf file not found or not accessible.

Checking for dbus/python-dbus...
dbus daemon is running.
python-dbus version: 0.83.1


------------------------------------
| COMPILE AND RUNTIME DEPENDENCIES |
------------------------------------

note: To check for compile-time only dependencies, re-run hp-check with the -c parameter (ie, hp-check -c).
note: To check for run-time only dependencies, re-run hp-check with the -r parameter (ie, hp-check -r).

Checking for dependency: CUPS - Common Unix Printing System...
OK, found.

Checking for dependency: CUPS devel- Common Unix Printing System development files...
OK, found.

Checking for dependency: CUPS image - CUPS image development files...
OK, found.

Checking for dependency: DBus - Message bus system...
OK, found.

Checking for dependency: gcc - GNU Project C and C++ Compiler...
OK, found.

Checking for dependency: GhostScript - PostScript and PDF language interpreter and previewer...
OK, found.

Checking for dependency: libcrypto - OpenSSL cryptographic library...
OK, found.

Checking for dependency: libjpeg - JPEG library...
OK, found.

Checking for dependency: libnetsnmp-devel - SNMP networking library development files...
OK, found.

Checking for dependency: libpthread - POSIX threads library...
OK, found.

Checking for dependency: libtool - Library building support services...
OK, found.

Checking for dependency: libusb - USB library...
OK, found.

Checking for dependency: make - GNU make utility to maintain groups of programs...
OK, found.

Checking for dependency: PIL - Python Imaging Library (required for commandline scanning with hp-scan)...
OK, found.

Checking for dependency: PolicyKit - Administrative policy framework...
OK, found.

Checking for dependency: PyQt 4 DBus - DBus Support for PyQt4...
OK, found.

Checking for dependency: Python DBus - Python bindings for DBus...
OK, found.

Checking for dependency: Python devel - Python development files...
OK, found.

Checking for dependency: Python libnotify - Python bindings for the libnotify Desktop notifications...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.

Checking for dependency: Python XML libraries...
OK, found.

Checking for dependency: Python 2.3 or greater - Required for fax functionality...
OK, found.

Checking for dependency: Python 2.2 or greater - Python programming language...
OK, found.

Checking for dependency: Reportlab - PDF library for Python...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.

Checking for dependency: SANE - Scanning library...
OK, found.

Checking for dependency: SANE - Scanning library development files...
OK, found.

Checking for dependency: scanimage - Shell scanning program...
OK, found.

Checking for dependency: xsane - Graphical scanner frontend for SANE...
OK, found.


----------------------
| HPLIP INSTALLATION |
----------------------


Currently installed HPLIP version...
HPLIP 3.11.3a currently installed in '/usr/share/hplip'.

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

[hplip]
version=3.11.3a

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

# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
pp-build=no
gui-build=yes
scanner-build=yes
fax-build=yes
dbus-build=yes
cups11-build=no
doc-build=yes
shadow-build=yes
hpijs-install=yes
foomatic-drv-install=yes
foomatic-ppd-install=no
foomatic-rip-hplip-install=yes
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=no
internal-tag=3.11.3a
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
policy-kit=yes
hpijs-only-build=no
lite-build=no
udev-acl-rules=no
hpcups-only-build=no
hpijs-only-build=no


Current contents of '/var/lib/hp/hplip.state' file:
# hplip.state - HPLIP runtime persistent variables. 

[plugin]
installed=0
eula=0



Current contents of '~/.hplip/hplip.conf' file:
[installation]
version = 3.11.3a
date_time = 07/22/12 11:41:12



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

No devices found.

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

 
lpstat
------
Type: Unknown
Device URI: No destinations added.


----------------------
| SANE CONFIGURATION |
----------------------

'hpaio' in '/etc/sane.d/dll.conf'...
OK, found. SANE backend 'hpaio' is properly set up.

Checking output of 'scanimage -L'...
 
No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).


---------------------
| PYTHON EXTENSIONS |
---------------------

Checking 'cupsext' CUPS extension...
OK, found.

Checking 'pcardext' Photocard extension...
OK, found.

Checking 'hpmudext' I/O extension...
OK, found.

Checking 'scanext' SANE scanning extension...
OK, found.


 
-----------------
| USB I/O SETUP |
-----------------

Checking for permissions of USB attached printers...

HP Device 0x5111 at 001:003: 
warning:     Device URI: (Makeuri FAILED)

---------------
| USER GROUPS |
---------------

guest disk floppy dialout audio video cdrom games plugdev power netdev scanner vboxusers users


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

error: 2 errors and/or warnings.

Please refer to the installation instructions at:
http://hplip.sourceforge.net/install/index.html


Done.

User avatar
brokenman
Site Admin
Site Admin
Posts: 5652
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: HPLIP and Py Qt4...

Post#8 by brokenman » 26 Jul 2012, 01:42

warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency
These are optional as stated. Does the application work?

If not then please follow fanthom's instructions and install the dependencies.
How do i become super user?
Wear your underpants on the outside and put on a cape.

Post Reply