Bug 1320537 - [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 CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: yumex-dnf
Version: rawhide
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tim Lauridsen
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:57eca051718473268dc6818b108...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-23 12:45 UTC by alexander.balanescu
Modified: 2016-05-09 10:39 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-09 10:39:50 UTC
Type: ---


Attachments (Terms of Use)
File: backtrace (878 bytes, text/plain)
2016-03-23 12:46 UTC, alexander.balanescu
no flags Details
File: environ (1.47 KB, text/plain)
2016-03-23 12:46 UTC, alexander.balanescu
no flags Details

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


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