Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#26666 - [hplip] hp-setup -i

Attached to Project: Arch Linux
Opened by webdawg (webdawg) - Friday, 28 October 2011, 15:16 GMT
Last edited by Andreas Radke (AndyRTR) - Saturday, 23 February 2013, 12:53 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Andreas Radke (AndyRTR)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:


hp-setup[9714]: debug: Restarting CUPS...
hp-setup[9714]: debug: Restart CUPS returned: exit=0 output=
hp-setup[9714]: debug: addPrinter('HP_Color_LaserJet_CM3530_MFP', 'hp:/net/HP_Color_LaserJet_CM3530_MFP?zc=NETT-HPCM3530-STANDS', '', '', 'lsb/usr/HP/hp-color_laserjet_cm3530_mfp-ps.ppd.gz', '')
hp-setup[9714]: debug: addPrinter() returned (0, Unable to connect to CUPS server)
error: Printer queue setup failed. Please restart CUPS and try again.


Additional info:
* package version: newest
* config and/or log files etc.


Steps to reproduce:

run hp setup to install a printer and this is what you get.

Reference this forum post: https://bbs.archlinux.org/post.php?tid=129061

I can add the printer manually but not using hp setup.
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Saturday, 23 February 2013, 12:53 GMT
Reason for closing:  No response
Comment by Jelle van der Waa (jelly) - Sunday, 30 October 2011, 11:15 GMT
Looks like a duplicate of  FS#22788 
Comment by webdawg (webdawg) - Sunday, 30 October 2011, 16:13 GMT
I have linked python to python2 and it does the same thing.
Comment by webdawg (webdawg) - Sunday, 30 October 2011, 16:13 GMT
It has something to do with cups but I do not understand how it adds the printer. Though the web interface or in a config file?
Comment by Ali Sarchami (daashali) - Thursday, 10 November 2011, 11:09 GMT
I have the same problem here and I'm not able to setup my printer (laserjet 1212mfp). It works perfectly in ubuntu.
Comment by Eric Belanger (Snowman) - Tuesday, 10 January 2012, 03:25 GMT
Is it fixed in hplip-3.11.12-1 in [testing] ?
Comment by webdawg (webdawg) - Saturday, 11 February 2012, 19:35 GMT
I do not dabble in testing.

To get hp-setup to work in arch you need to:

In addition to installing hplip you also have to install dbus-python and python-gobject

You also need to link /usr/bin/python to python two instead of 3. Though make sure to link it back when the setup is complete.

rm /usr/bin/python
ln -s /usr/bin/python2 /usr/bin/python

Do the setup/plugin build.

rm /usr/bin/python
ln -s /usr/bin/python3 /usr/bin/python

These instructions make hp-setup work and hp-plugin

One of the debian guys filed something upstream @ https://bugs.launchpad.net/hplip/+bug/718069


I am about to login and talk to upstream in a sec.
Comment by webdawg (webdawg) - Saturday, 11 February 2012, 19:41 GMT
Someone needs to add dbus-python and python-gobject to the deps of hplip and also figure out if anything can be done with the python issue.
Comment by Eric Belanger (Snowman) - Sunday, 12 February 2012, 04:34 GMT
You mean python2-gobject, right? Or is it python2-gobject2 ? You'll need to be precise here. I'm taking care of the package because it's orphaned but I don't have a printer. So I can't really test anything.

It's already patched to use python2 but I might have missed a reference somewhere. I'll need to check.

BTW, hplip-3.11.12-1 is now in [extra] repo.
Comment by webdawg (webdawg) - Sunday, 12 February 2012, 17:58 GMT
Even I am confused now.

The best way to test what I am complaining about is to do the "hp-plugin -i" command. Though I am removing the plugins I have installed and seeing if hp-plugin -i is working and it is working without

python2-gobject

I know in debian it was http://packages.debian.org/squeeze/python-gobject

I think the new version is working different. All I have installed now is:

[root@matrix ~]# pacman -Q | grep gobject
gobject-introspection 1.30.0-1
pygobject2-devel 2.28.6-4
python2-gobject2 2.28.6-4


And it is working fine.
Comment by Eric Belanger (Snowman) - Sunday, 12 February 2012, 19:00 GMT
On Arch, it's python2-gobject2. When you say that it's working fine in your last comment, is it with the python symlink workaround that you mentionnened earlier?
Comment by webdawg (webdawg) - Sunday, 12 February 2012, 19:11 GMT
Just tested hp-plugin

if I:

rm /usr/bin/python
ln -s /usr/bin/python3 /usr/bin/python

I get:

[root@matrix ~]# hp-plugin -i

HP Linux Imaging and Printing System (ver. 3.12.2)
Plugin Download and Install Utility ver. 2.1

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: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)

/
-----------------------------------------
| PLUG-IN INSTALLATION FOR HPLIP 3.12.2 |
-----------------------------------------

The driver plugin for HPLIP 3.12.2 appears to already be installed.
Do you wish to download and re-install the plug-in? (y=yes*, n=no, q=quit) ? y
Option Description
---------- --------------------------------------------------
d Download plug-in from HP (recomended)
p Specify a path to the plug-in (advanced)
q Quit hp-plugin (skip installation)

Enter option (d=download*, p=specify path, q=quit) ? d

--------------------------
| DOWNLOAD CONFIGURATION |
--------------------------

Checking for network connection...
Downloading configuration file from: http://hplip.sf.net/plugin.conf
Downloading configuration: [\ ] 0% error: Plugin download failed with error code = 4


---------------
| COPY PLUGIN |
---------------

Downloading plug-in from: file://
Downloading plug-in: [\ ] 0% Receiving digital keys: /usr/bin/gpg --no-permission-warning --keyserver pgp.mit.edu --recv-keys 0xA59047B9


----------------------
| INSTALLING PLUG-IN |
----------------------

Verifying archive integrity... All good.
Uncompressing HPLIP 3.12.2 Plugin Self Extracting Archive.........................................
File "./plugin_install.py", line 78
except ImportError, e:
^
SyntaxError: invalid syntax
error: Python gobject/dbus may be not installed

Done.



If I:


[root@matrix ~]# rm /usr/bin/python
[root@matrix ~]# ln -s /usr/bin/python2 /usr/bin/python
[root@matrix ~]# hp-plugin -i

HP Linux Imaging and Printing System (ver. 3.12.2)
Plugin Download and Install Utility ver. 2.1

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: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)

/
-----------------------------------------
| PLUG-IN INSTALLATION FOR HPLIP 3.12.2 |
-----------------------------------------

The driver plugin for HPLIP 3.12.2 appears to already be installed.
Do you wish to download and re-install the plug-in? (y=yes*, n=no, q=quit) ? y
Option Description
---------- --------------------------------------------------
d Download plug-in from HP (recomended)
p Specify a path to the plug-in (advanced)
q Quit hp-plugin (skip installation)

Enter option (d=download*, p=specify path, q=quit) ? d

--------------------------
| DOWNLOAD CONFIGURATION |
--------------------------

Checking for network connection...
Downloading configuration file from: http://hplip.sf.net/plugin.conf
Downloading configuration: [\ ] 0%

-------------------
| DOWNLOAD PLUGIN |
-------------------

Checking for network connection...
Downloading plug-in from: http://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/hplip-3.12.2-plugin.run
Downloading plug-in: [\ ] 0% Receiving digital keys: /usr/bin/gpg --no-permission-warning --keyserver pgp.mit.edu --recv-keys 0xA59047B9


----------------------
| INSTALLING PLUG-IN |
----------------------

Verifying archive integrity... All good.
Uncompressing HPLIP 3.12.2 Plugin Self Extracting Archive.........................................

HP Linux Imaging and Printing System (ver. 3.12.2)
Plugin Installer ver. 3.0

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.

Plug-in version: 3.12.2
Installed HPLIP version: 3.12.2
Number of files to install: 36

You must agree to the license terms before installing the plug-in:

LICENSE TERMS FOR HP Linux Imaging and Printing (HPLIP) Driver Plug-in


These License Terms govern your Use of the HPLIP Driver Plug-in Software (the "Software"). USE OF THE SOFTWARE INCLUDING,
WITHOUT LIMITATION, ANY DOCUMENTATION, IS SUBJECT TO THESE LICENSE TERMS AND THE APPLICABLE AS-IS WARRANTY STATEMENT. BY
DOWNLOADING AND INSTALLING THE SOFTWARE, YOU ARE AGREEING TO BE BOUND BY THESE TERMS. IF YOU DO NOT AGREE TO ALL OF THESE
TERMS, DO NOT DOWNLOAD AND INSTALL THE SOFTWARE ON YOUR SYSTEM.


1. License Grant. HP grants you a license to Use one copy of the Software with HP printing products only. "Use" includes
using, storing, loading, installing, executing, and displaying the Software. You may not modify the Software or disable any
licensing or control features of the Software.


2. Ownership. The Software is owned and copyrighted by HP or its third party suppliers. Your license confers no title to,
or ownership in, the Software and is not a sale of any rights in the Software. HP's third party suppliers may protect their
rights in the Software in the event of any violation of these license terms.


3. Copies and Adaptations. You may only make copies or adaptations of the Software for archival purposes or when copying or
adaptation is an essential step in the authorized Use of the Software. You must reproduce all copyright notices in the
original Software on all copies or adaptations. You may not copy the Software onto any public network.


4. No Disassembly. You may not Disassemble the Software unless HP's prior written consent is obtained. "Disassemble"
includes disassembling, decompiling, decrypting, and reverse engineering. In some jurisdictions, HP's consent may not be
required for limited Disassembly. Upon request, you will provide HP with reasonably detailed information regarding any
Disassembly.


5. No Transfer. You may not assign, sublicense or otherwise transfer all or any part of these License Terms or the
Software.


6. Termination. HP may terminate your license, upon notice, for failure to comply with any of these License Terms. Upon
termination, you must immediately destroy the Software, together with all copies, adaptations and merged portions in any
form.


7. Export Requirements. You may not export or re-export the Software or any copy or adaptation in violation of any
applicable laws or regulations.


8. U.S. Government Restricted Rights. The Software has been developed entirely at private expense. It is delivered and
licensed, as defined in any applicable DFARS, FARS, or other equivalent federal agency regulation or contract clause, as
either "commercial computer software" or "restricted computer software", whichever is applicable. You have only those
rights provided for such Software by the applicable clause or regulation or by these License Terms.


9. DISCLAIMER OF WARRANTIES. TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, HP AND ITS SUPPLIERS PROVIDE THE SOFTWARE
"AS IS" AND WITH ALL FAULTS, AND HEREBY DISCLAIM ALL OTHER WARRANTIES AND CONDITIONS, EITHER EXPRESS, IMPLIED, OR
STATUTORY, INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF TITLE AND NON-INFRINGEMENT, ANY IMPLIED WARRANTIES, DUTIES OR
CONDITIONS OF MERCHANTABILITY, OF FITNESS FOR A PARTICULAR PURPOSE, AND OF LACK OF VIRUSES ALL WITH REGARD TO THE SOFTWARE.
Some states/jurisdictions do not allow exclusion of implied warranties or limitations on the duration of implied
warranties, so the above disclaimer may not apply to you in its entirety.


10. LIMITATION OF LIABILITY. Notwithstanding any damages that you might incur, the entire liability of HP and any of its
suppliers under any provision of this agreement and your exclusive remedy for all of the foregoing shall be limited to the
greater of the amount actually paid by you separately for the Software or U.S. $5.00. TO THE MAXIMUM EXTENT PERMITTED BY
APPLICABLE LAW, IN NO EVENT SHALL HP OR ITS SUPPLIERS BE LIABLE FOR ANY SPECIAL, INCIDENTAL,
INDIRECT, OR CONSEQUENTIAL DAMAGES WHATSOEVER (INCLUDING, BUT NOT LIMITED TO, DAMAGES FOR LOSS OF PROFITS OR CONFIDENTIAL
OR OTHER INFORMATION, FOR BUSINESS INTERRUPTION, FOR PERSONAL INJURY, FOR LOSS OF PRIVACY ARISING OUT OF OR IN ANY WAY
RELATED TO THE USE OF OR INABILITY TO USE THE SOFTWARE, OR OTHERWISE IN CONNECTION WITH ANY PROVISION OF THIS AGREEMENT,
EVEN IF HP OR ANY SUPPLIER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES AND EVEN IF THE REMEDY FAILS OF ITS
ESSENTIAL PURPOSE. Some states/jurisdictions do not allow the exclusion or limitation of incidental or consequential
damages, so the above limitation or exclusion may not apply to you.

Do you accept the license terms for the plug-in (y=yes*, n=no, q=quit) ? y

Done.

Done.
[root@matrix ~]#


-------------


I still have the same gobject installed. What do you want me to try next?


Comment by Andreas Radke (AndyRTR) - Saturday, 02 June 2012, 21:17 GMT
How's 3.12.4-4 ?
Comment by Simon Schneider (schneida) - Tuesday, 27 November 2012, 01:24 GMT
  • Field changed: Percent Complete (100% → 0%)
The issue still exists in newest version: hplip-3.12.10.a-3
Comment by Andreas Radke (AndyRTR) - Friday, 28 December 2012, 10:40 GMT
How's 3.12.11-2 ? Anything we can do downstream?

Loading...