Bug 642771 - [abrt] hplip-3.10.9-1.fc14: utils.py:89:list_to_string:AttributeError: 'str' object has no attribute 'pop'
Summary: [abrt] hplip-3.10.9-1.fc14: utils.py:89:list_to_string:AttributeError: 'str' ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: hplip
Version: 14
Hardware: i686
OS: Linux
low
medium
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:6df20b2f
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-10-13 19:39 UTC by Frantisek Hanzlik
Modified: 2011-01-12 05:25 UTC (History)
6 users (show)

Fixed In Version: hplip-3.10.9-9.fc13
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-01-12 05:25:49 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (758 bytes, text/plain)
2010-10-13 19:39 UTC, Frantisek Hanzlik
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Launchpad 660441 0 None None None Never

Description Frantisek Hanzlik 2010-10-13 19:39:11 UTC
abrt version: 1.1.13
architecture: i686
cmdline: /usr/bin/python /usr/bin/hp-setup -u
component: hplip
executable: /usr/bin/hp-setup
kernel: 2.6.35.6-39.fc14.i686.PAE
package: hplip-3.10.9-1.fc14
reason: utils.py:89:list_to_string:AttributeError: 'str' object has no attribute 'pop'
release: Fedora release 14 (Laughlin)
time: 1286998458
uid: 500

backtrace
-----
utils.py:89:list_to_string:AttributeError: 'str' object has no attribute 'pop'

Traceback (most recent call last):
  File "/usr/share/hplip/ui4/setupdialog.py", line 1241, in NextButton_clicked
    self.addPrinter()
  File "/usr/share/hplip/ui4/setupdialog.py", line 945, in addPrinter
    self.setupPrinter()
  File "/usr/share/hplip/ui4/setupdialog.py", line 983, in setupPrinter
    FailureUI(self, self.__tr("<b>Printer queue setup failed.</b><p>Please add user to %s group(s)" %utils.list_to_string(utils.addgroup())))
  File "/usr/share/hplip/base/utils.py", line 89, in list_to_string
    return "\""+"\", \"".join(lis)+"\" and \""+str(lis.pop())+"\""
AttributeError: 'str' object has no attribute 'pop'

Local variables in innermost frame:
lis: 'lp'

How to reproduce
-----
1. I want install first printer - network printer Officejet k5400
2. hplip-gui found printer, but in final step - printer adding, apps crashed

Comment 1 Frantisek Hanzlik 2010-10-13 19:39:14 UTC
Created attachment 453301 [details]
File: backtrace

Comment 3 Jiri Popelka 2010-10-14 10:28:41 UTC
You can try this build if you want
http://koji.fedoraproject.org/koji/taskinfo?taskID=2534421

Comment 4 Łukasz Jernaś 2010-10-15 03:50:52 UTC
Package: hplip-3.10.9-1.fc14
Architecture: x86_64
OS Release: Fedora release 14 (Laughlin)


How to reproduce
-----
Trying to add a Networked HP Multifunction printer


Comment
-----
When I click the "Add printer" button an exception happens and the window stays where it was - printer isn't added to the list :/

Comment 5 Fedora Update System 2010-10-15 08:32:26 UTC
hplip-3.10.9-2.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/hplip-3.10.9-2.fc14

Comment 6 Frantisek Hanzlik 2010-10-15 10:50:21 UTC
I just test this packages. Device is rightly found, but when clicking to "Add Printer" button, "HP Device Manager - Setup" error window appears:

'Printer queue setup failed. Please add user to "lp" group(s)'

and printer isn't added.

Comment 7 Jiri Popelka 2010-10-15 11:33:45 UTC
Seems like some access problem.
I guess when you run hp-setup as root the queue is added, isn't it ?

Comment 8 Frantisek Hanzlik 2010-10-15 12:05:05 UTC
Yes, when running as root, then printer is added.
But e.g. hp-toolbox isn't possible (as seems to me) run as root, it wrote:

Oct 15 13:48:15 ws22 hp-toolbox: hp-toolbox[16032]: warning: hp-toolbox should not be run as root/superuser.
Oct 15 13:48:15 ws22 hp-toolbox: hp-toolbox(UI)[16032]: error: dBus initialization error. Exiting.

This messages appears in all cases I was trying:
- run from gnome-terminal (after "su [-]")
- after startx as root from runlevel 3 (because gdm in default configuration refuse root login)

Comment 9 Fedora Update System 2010-10-15 19:07:32 UTC
hplip-3.10.9-2.fc14 has been pushed to the Fedora 14 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update hplip'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/hplip-3.10.9-2.fc14

Comment 10 Jiri Popelka 2010-10-19 15:07:25 UTC
(In reply to comment #6)
> I just test this packages. Device is rightly found, but when clicking to "Add
> Printer" button, "HP Device Manager - Setup" error window appears:
> 
> 'Printer queue setup failed. Please add user to "lp" group(s)'
> 
> and printer isn't added.
This is bug #540721.

Comment 11 Fedora Update System 2010-10-19 16:06:27 UTC
hplip-3.10.9-2.fc13 has been submitted as an update for Fedora 13.
https://admin.fedoraproject.org/updates/hplip-3.10.9-2.fc13

Comment 12 Bug Zapper 2010-11-03 09:31:30 UTC
This message is a reminder that Fedora 12 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 12.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '12'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 12's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 12 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 13 PRABIN KUMAR DATTA 2010-11-08 14:57:39 UTC
Package: hplip-3.10.6-3.fc14
Architecture: i686
OS Release: Fedora release 14 (Laughlin)


How to reproduce
-----
1.Adding Printer using HP Driver Manager after installing driver using hplip-3.10.9.run
2.
3.

Comment 14 Tim Waugh 2010-11-08 15:30:23 UTC
(In reply to comment #13)
> 1.Adding Printer using HP Driver Manager after installing driver using
> hplip-3.10.9.run

If you install 3rd party software, you need to report bugs in it to the 3rd party you obtained it from.  In this case, hplipopensource.com.

Fedora provides packaged versions of HPLIP which include bug fixes and adaptations for Fedora.  Bugzilla is for reporting bugs in these packages.

Comment 15 PRABIN KUMAR DATTA 2010-11-09 00:40:27 UTC
@Tim Waugh:
I think there is some misconception here.
hplip-3.10.9.run just a simple program which use to install,
1. hplip-3.10.6-3.fc14.i686.
2. hplip-libs-3.10.6-3.fc14.i686.
3. hplip-common-3.10.6-3.fc14.i686.
and other packages required to install the above three.

Also, the package that crashed is /usr/bin/hp-setup which is part of hplip-3.10.6-3.fc14.i686.

# rpm -ql hplip-3.10.6-3.fc14.i686
......
...skipped...
/usr/bin/hp-setup <- hp-setup file 
/usr/bin/hp-testpage
/usr/bin/hp-timedate
/usr/bin/hp-unload
/usr/bin/hp-wificonfig
/usr/lib/cups/backend/hp
/usr/lib/cups/backend/hpfax
/usr/lib/cups/filter/pstotiff
/usr/share/cups/mime/pstotiff.convs
/usr/share/doc/hplip-3.10.6
/usr/share/doc/hplip-3.10.6/COPYING
...skipped...
......

Comment 16 Tim Waugh 2010-11-09 09:45:29 UTC
The hplip-3.10.9.run program is the automatic installer from hplipopensource.com, for installing the latest upstream version of HPLIP direct from upstream, without any of our addition fixes.  It is not a Fedora program.  It may have overwritten files from your Fedora hplip packages (you can check using 'rpm -V hplip hplip-libs hplip-common' as root).  In any case, see comment #9...

Comment 17 Fedora Update System 2010-11-14 21:35:31 UTC
hplip-3.10.9-5.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 18 Steve Dickson 2010-11-15 14:43:09 UTC
I'm still seeing this with the latest releases... 

$ python /usr/bin/hp-setup 

HP Linux Imaging and Printing System (ver. 3.10.9)
Printer/Fax Setup Utility ver. 9.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.

Searching... (bus=net, timeout=5, ttl=4, search=(None) desc=0, method=mdns)
\Traceback (most recent call last):
  File "/usr/share/hplip/ui4/setupdialog.py", line 1240, in NextButton_clicked
    self.addPrinter()
  File "/usr/share/hplip/ui4/setupdialog.py", line 944, in addPrinter
    self.setupPrinter()
  File "/usr/share/hplip/ui4/setupdialog.py", line 982, in setupPrinter
    FailureUI(self, self.__tr("<b>Printer queue setup failed.</b><p>Please add user to %s group(s)" %utils.list_to_string(utils.addgroup())))
  File "/usr/share/hplip/base/utils.py", line 89, in list_to_string
    return "\""+"\", \"".join(lis)+"\" and \""+str(lis.pop())+"\""
AttributeError: 'str' object has no attribute 'pop'

Done.
$ rpm -q hplip
hplip-3.10.9-5.fc14.x86_64

Comment 19 Jiri Popelka 2010-11-16 10:23:40 UTC
Strange.
In my case it seems fixed with hplip-3.10.9-5.fc14.x86_64.
Can you verify the package with 'rpm -V hplip' ?

Comment 20 Fedora Update System 2010-12-05 00:41:26 UTC
hplip-3.10.9-8.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update hplip'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/hplip-3.10.9-8.fc13

Comment 21 Alessandro 2010-12-22 23:51:26 UTC
Package: hplip-3.10.9-5.fc14
Architecture: x86_64
OS Release: Fedora release 14 (Laughlin)


How to reproduce
-----
1.
2.
3.
setting up..

Comment 22 Fedora Update System 2011-01-12 05:24:26 UTC
hplip-3.10.9-9.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.