Bug 1111426 - [abrt] hplip: plugindialog.py:241:NextButton_clicked:ValueError: need more than 2 values to unpack
Summary: [abrt] hplip: plugindialog.py:241:NextButton_clicked:ValueError: need more th...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: hplip
Version: 20
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:812517d740890e3d68d334295d6...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-06-20 02:57 UTC by flingingflimflam
Modified: 2014-07-02 16:07 UTC (History)
3 users (show)

Fixed In Version: hplip-3.14.6-2.fc20
Clone Of:
Environment:
Last Closed: 2014-07-02 16:07:33 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (468 bytes, text/plain)
2014-06-20 02:57 UTC, flingingflimflam
no flags Details
File: environ (450 bytes, text/plain)
2014-06-20 02:57 UTC, flingingflimflam
no flags Details

Description flingingflimflam 2014-06-20 02:57:25 UTC
Description of problem:
Trying to install HP LaserJet 1000 printer driver using HPLIP. Fedora is crashing about once a day, usually when I try to access the settings. But there is no reliable way to reproduce the crash. The screen looks like it is frozen in a static pattern and the machine is unreachable, even by ssh.

Version-Release number of selected component:
hplip-3.13.11-4.fc20

Additional info:
reporter:       libreport-2.2.2
cmdline:        /usr/bin/python /bin/hp-plugin -u --required --reason 1 To_install_plugin_for_HP_Device
executable:     /bin/hp-plugin
kernel:         3.14.5-200.fc20.x86_64
runlevel:       N 5
type:           Python
uid:            0

Truncated backtrace:
plugindialog.py:241:NextButton_clicked:ValueError: need more than 2 values to unpack

Traceback (most recent call last):
  File "/usr/share/hplip/ui4/plugindialog.py", line 241, in NextButton_clicked
    status, download_plugin_file, error_str = self.pluginObj.download(self.plugin_path,self.plugin_download_callback)
ValueError: need more than 2 values to unpack

Local variables in innermost frame:
self: <ui4.plugindialog.PluginDialog object at 0x2e48b90>
ok: True

Comment 1 flingingflimflam 2014-06-20 02:57:28 UTC
Created attachment 910619 [details]
File: backtrace

Comment 2 flingingflimflam 2014-06-20 02:57:30 UTC
Created attachment 910620 [details]
File: environ

Comment 3 Tim Waugh 2014-06-20 08:52:37 UTC
What output does this command give?:
  su -c 'rpm -V hplip hplip-common'; rpm -q hplip hplip-common

Comment 4 Tim Waugh 2014-06-20 09:01:00 UTC
Actually, looking more closely I'm fairly sure this is fixed in hplip-3.14.6-1.fc20:

https://admin.fedoraproject.org/updates/FEDORA-2014-6291

Your original description, though, indicates a more serious issue in another component, perhaps Xorg or the kernel:
"The screen looks like it is frozen in a static pattern and the machine is unreachable, even by ssh."
That symptom is not related to the hplip issue reported here.

You'll need to report a separate bug for that freeze issue, but it would be useful to try to narrow down the cause first. Here are some useful tips for doing that:

http://fedoraproject.org/wiki/How_to_debug_Xorg_problems

http://fedoraproject.org/wiki/Common_kernel_problems#Diagnosing_.22My_machine_locked_up.22

http://unix.stackexchange.com/questions/86045/diagnosing-a-freezing-system-or-renderer

Comment 5 Jiri Popelka 2014-06-20 09:04:22 UTC
(In reply to flingingflimflam from comment #0)
> Version-Release number of selected component:
> hplip-3.13.11-4.fc20
>
> Traceback (most recent call last):
>   File "/usr/share/hplip/ui4/plugindialog.py", line 241, in NextButton_clicked
>     status, download_plugin_file, error_str =
> self.pluginObj.download(self.plugin_path,self.plugin_download_callback)
> ValueError: need more than 2 values to unpack

Strange, that's not the code from 3.13.11. There's
status, download_plugin_file = self.pluginObj.download(...)
in 3.13.11 and PluginHandle.download() always returns 2-tuple there.

Not sure when it changed but in 3.14.6 (in updates-testing) there's
status, download_plugin_file, error_str = self.pluginObj.download(...)
and PluginHandle.download() always returns 3-tuple there.

So my guess is that your hplip package installation is in some inconsistent state.
You can verify the package with
# rpm -V hplip hplip-gui

And reinstall it with:
# yum reinstall 'hplip*'


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