Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1316624 - [abrt] yumex-dnf: misc.py:114:rgb_to_hex:TypeError: %X format: an integer is required, not float
Summary: [abrt] yumex-dnf: misc.py:114:rgb_to_hex:TypeError: %X format: an integer is ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: yumex-dnf
Version: 24
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Tim Lauridsen
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: AcceptedFreezeException abrt_hash:57e...
Depends On:
Blocks: F24AlphaFreezeException
TreeView+ depends on / blocked
 
Reported: 2016-03-10 16:02 UTC by Egor Zakharov
Modified: 2016-03-26 20:20 UTC (History)
7 users (show)

Fixed In Version: yumex-dnf-4.1.6-1.fc24 yumex-dnf-4.1.6-1.fc23 yumex-dnf-4.1.6-1.fc22
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-03-23 15:18:10 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (878 bytes, text/plain)
2016-03-10 16:03 UTC, Egor Zakharov
no flags Details
File: environ (1.44 KB, text/plain)
2016-03-10 16:03 UTC, Egor Zakharov
no flags Details

Description Egor Zakharov 2016-03-10 16:02:59 UTC
Description of problem:
Yumex-dnf just crashes after startup in Fedora 24.

If run from cmdline, the output is:

/usr/lib/python3.5/site-packages/yumex/__init__.py:69: Warning: invalid cast from 'GtkBox' to 'GtkWindow'
  self.ui.add_from_file(const.DATA_DIR + '/yumex.ui')

(yumex-dnf:2707): Gtk-CRITICAL **: gtk_window_add_accel_group: assertion 'GTK_IS_WINDOW (window)' failed

(yumex-dnf:2707): Gtk-WARNING **: State 0 for YumexPackageView 0x556256b52be0 doesn't match state 128 set via gtk_style_context_set_state ()
Traceback (most recent call last):
  File "/usr/lib/python3.5/site-packages/yumex/__init__.py", line 1329, in do_command_line
    self.do_activate()
  File "/usr/lib/python3.5/site-packages/yumex/__init__.py", line 1232, in do_activate
    self.win = YumexWindow(self, self.status)
  File "/usr/lib/python3.5/site-packages/yumex/__init__.py", line 401, in __init__
    CONFIG.conf.color_normal = color_to_hex(color_normal)
  File "/usr/lib/python3.5/site-packages/yumex/misc.py", line 118, in color_to_hex
    return rgb_to_hex(color.red, color.green, color.blue)
  File "/usr/lib/python3.5/site-packages/yumex/misc.py", line 114, in rgb_to_hex
    return "#%02X%02X%02X" % (r, g, b)
TypeError: %X format: an integer is required, not float

Version-Release number of selected component:
yumex-dnf-4.1.5-2.fc24

Additional info:
reporter:       libreport-2.6.4
cmdline:        /usr/bin/python3 /usr/bin/yumex-dnf
executable:     /usr/bin/yumex-dnf
kernel:         4.5.0-0.rc7.git0.2.fc24.x86_64
runlevel:       N 5
type:           Python3
uid:            1000

Truncated backtrace:
misc.py:114:rgb_to_hex:TypeError: %X format: an integer is required, not float

Traceback (most recent call last):
  File "/usr/lib/python3.5/site-packages/yumex/__init__.py", line 1329, in do_command_line
    self.do_activate()
  File "/usr/lib/python3.5/site-packages/yumex/__init__.py", line 1232, in do_activate
    self.win = YumexWindow(self, self.status)
  File "/usr/lib/python3.5/site-packages/yumex/__init__.py", line 401, in __init__
    CONFIG.conf.color_normal = color_to_hex(color_normal)
  File "/usr/lib/python3.5/site-packages/yumex/misc.py", line 118, in color_to_hex
    return rgb_to_hex(color.red, color.green, color.blue)
  File "/usr/lib/python3.5/site-packages/yumex/misc.py", line 114, in rgb_to_hex
    return "#%02X%02X%02X" % (r, g, b)
TypeError: %X format: an integer is required, not float

Local variables in innermost frame:
r: 0.0
b: 0.0
g: 0.0

Comment 1 Egor Zakharov 2016-03-10 16:03:03 UTC
Created attachment 1134940 [details]
File: backtrace

Comment 2 Egor Zakharov 2016-03-10 16:03:04 UTC
Created attachment 1134941 [details]
File: environ

Comment 3 Wolfgang Ulbrich 2016-03-11 16:14:54 UTC
Similar problem has been detected:

Using yumex-dnf command from command prompt.
The app crashes and abrt popt up.
Only the icon is visible in mate-panel notification area.
But here only the close button is working.

This is serious, several spins use it as package-manager and we are some weeks before f24 alpha release.

Terminal output:

[rave@mother ~]$ yumex-dnf
/usr/lib/python3.5/site-packages/yumex/__init__.py:69: Warning: invalid cast from 'GtkBox' to 'GtkWindow'
  self.ui.add_from_file(const.DATA_DIR + '/yumex.ui')

(yumex-dnf:17751): Gtk-CRITICAL **: gtk_window_add_accel_group: assertion 'GTK_IS_WINDOW (window)' failed

(yumex-dnf:17751): Gtk-WARNING **: State 0 for YumexPackageView 0x55716b826bd0 doesn't match state 128 set via gtk_style_context_set_state ()
Traceback (most recent call last):
  File "/usr/lib/python3.5/site-packages/yumex/__init__.py", line 1329, in do_command_line
    self.do_activate()
  File "/usr/lib/python3.5/site-packages/yumex/__init__.py", line 1232, in do_activate
    self.win = YumexWindow(self, self.status)
  File "/usr/lib/python3.5/site-packages/yumex/__init__.py", line 401, in __init__
    CONFIG.conf.color_normal = color_to_hex(color_normal)
  File "/usr/lib/python3.5/site-packages/yumex/misc.py", line 118, in color_to_hex
    return rgb_to_hex(color.red, color.green, color.blue)
  File "/usr/lib/python3.5/site-packages/yumex/misc.py", line 114, in rgb_to_hex
    return "#%02X%02X%02X" % (r, g, b)
TypeError: %X format: an integer is required, not float

reporter:       libreport-2.6.4
cmdline:        /usr/bin/python3 /usr/bin/yumex-dnf
event_log:      2016-03-11-17:05:47> (»report_uReport« erfolgreich abgeschlossen)
executable:     /usr/bin/yumex-dnf
kernel:         4.5.0-0.rc7.git0.2.fc24.x86_64
package:        yumex-dnf-4.1.5-2.fc24
reason:         misc.py:114:rgb_to_hex:TypeError: %X format: an integer is required, not float
runlevel:       N 5
type:           Python3
uid:            1000

Comment 4 Christian Stadelmann 2016-03-12 23:04:00 UTC
*** Bug 1317198 has been marked as a duplicate of this bug. ***

Comment 5 eddy02 2016-03-13 08:38:30 UTC
I sent a report for this issue  a few months ago , and the source is corrected.
The git source source works well.
Sorry for my english.

Comment 6 Christian Stadelmann 2016-03-13 11:09:46 UTC
This issue is already fixed in the 4.1.6 release which hasn't landed in Fedora yet.

Comment 7 Fedora Update System 2016-03-17 12:14:48 UTC
yumex-dnf-4.1.6-1.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-2f5cc390c9

Comment 8 Fedora Update System 2016-03-17 12:35:37 UTC
yumex-dnf-4.1.6-1.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-2e89a93119

Comment 9 Fedora Update System 2016-03-17 12:35:52 UTC
yumex-dnf-4.1.6-1.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2016-927d14cf42

Comment 10 Fedora Blocker Bugs Application 2016-03-17 14:14:57 UTC
Proposed as a Freeze Exception for 24-alpha by Fedora user raveit65 using the blocker tracking app because:

 Several spins use yumex-dnf as main graphical package-manager.
Without a working yumex-dnf users don't have a GUI for dnf in f24-alpha.

Comment 11 Adam Williamson 2016-03-18 01:00:26 UTC
I'm +1 FE for this if the fix is limited to yumex-dnf (doesn't require changes in e.g. GTK+).

Comment 12 Wolfgang Ulbrich 2016-03-18 10:52:13 UTC
The update works with current gtk+ version and with gtk3-3.19.12-1.fc24.x86_64 which isn't in repos, so it doesn't depends on other packages.

Comment 13 Fedora Update System 2016-03-18 14:57:15 UTC
yumex-dnf-4.1.6-1.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-2f5cc390c9

Comment 14 Dennis Gilmore 2016-03-18 22:14:38 UTC
+1 FE would be good to have it working for those users using it

Comment 15 Kevin Fenzi 2016-03-18 22:15:51 UTC
+1 FE here

Comment 16 Adam Williamson 2016-03-18 22:16:30 UTC
+3, marking accepted.

Comment 17 Fedora Update System 2016-03-18 23:55:35 UTC
yumex-dnf-4.1.6-1.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-927d14cf42

Comment 18 Fedora Update System 2016-03-19 01:25:55 UTC
yumex-dnf-4.1.6-1.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-2e89a93119

Comment 19 Fedora Update System 2016-03-23 15:17:57 UTC
yumex-dnf-4.1.6-1.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.

Comment 20 Egor Zakharov 2016-03-24 21:05:14 UTC
I can confirm, yumex-dnf is working after an update.

Comment 21 eddy02 2016-03-25 08:20:39 UTC
Not working for rawhide , seems to be another bug.

But version 4.3.1 (copr and github)  is ok.

Comment 22 Fedora Update System 2016-03-26 19:49:15 UTC
yumex-dnf-4.1.6-1.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.

Comment 23 Fedora Update System 2016-03-26 20:20:01 UTC
yumex-dnf-4.1.6-1.fc22 has been pushed to the Fedora 22 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.