Bug 1320537

Summary: [abrt] yumex-dnf: misc.py:114:rgb_to_hex:TypeError: %X format: an integer is required, not float
Product: [Fedora] Fedora Reporter: alexander.balanescu
Component: yumex-dnfAssignee: Tim Lauridsen <tla>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: tla
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/47551bfd83cb56307fe8c83bff066a6cebb07085
Whiteboard: abrt_hash:57eca051718473268dc6818b108b3c09deb1af6e;VARIANT_ID=workstation;
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-09 10:39:50 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
File: backtrace
none
File: environ none

Description alexander.balanescu 2016-03-23 12:45:56 UTC
Description of problem:
Yum extender will not open when it is clicked in the menu. The application loads as if it is going to open and then an error appears and the Yum extender fails to open.

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.6.0-0.rc0.git5.1.fc25.x86_64
runlevel:       N 5
type:           Python3
uid:            1001

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:
g: 0.0
b: 0.0
r: 0.0

Potential duplicate: bug 1316624

Comment 1 alexander.balanescu 2016-03-23 12:46:00 UTC
Created attachment 1139566 [details]
File: backtrace

Comment 2 alexander.balanescu 2016-03-23 12:46:01 UTC
Created attachment 1139567 [details]
File: environ

Comment 3 Tim Lauridsen 2016-05-09 10:39:50 UTC
fixed in 4.1.6

https://github.com/timlau/yumex-dnf/issues/81