Bug 1195234 - [abrt] blivet-gui: size.py:304:convertTo:AttributeError: 'str' object has no attribute 'factor'
Summary: [abrt] blivet-gui: size.py:304:convertTo:AttributeError: 'str' object has no ...
Keywords:
Status: CLOSED DUPLICATE of bug 1193938
Alias: None
Product: Fedora
Classification: Fedora
Component: blivet-gui
Version: 22
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Vojtech Trefny
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:647c15af24becf2eb94d924e36f...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-02-23 12:52 UTC by Steven Usdansky
Modified: 2015-02-23 14:09 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-02-23 14:09:02 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (888 bytes, text/plain)
2015-02-23 12:52 UTC, Steven Usdansky
no flags Details
File: environ (2.04 KB, text/plain)
2015-02-23 12:52 UTC, Steven Usdansky
no flags Details

Description Steven Usdansky 2015-02-23 12:52:00 UTC
Description of problem:
All I did was 
~$ cd /etc/yum.repos.d/
/etc/yum.repos.d$ sudo su
/etc/yum.repos.d# touch vtrefny-blivet-gui.repo
/etc/yum.repos.d# vi vtrefny-blivet-gui.repo

used yumex to install blivet-gui

/etc/yum.repos.d$ blivet-gui
dm.c: 1693: not running as root returning empty list
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
/etc/yum.repos.d$ sudo blivet-gui
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/blivetgui/devicevisualization/device_canvas.py", line 386, in draw_event
    draw_loop(self, root_iter, 0, 0, self.parent, width)
  File "/usr/lib/python2.7/site-packages/blivetgui/devicevisualization/device_canvas.py", line 360, in draw_loop
    parts_left, size_left, start, depth)
  File "/usr/lib/python2.7/site-packages/blivetgui/devicevisualization/device_canvas.py", line 184, in compute_rectangles_size
    total_size = round(parent.size.convertTo(spec="MiB"))
  File "/usr/lib/python2.7/site-packages/blivet/size.py", line 304, in convertTo
    return Decimal(self) / Decimal((spec or B).factor)
AttributeError: 'str' object has no attribute 'factor'

Version-Release number of selected component:
blivet-gui-0.2.0-6.fc22

Additional info:
reporter:       libreport-2.4.0
cmdline:        /usr/bin/python /bin/blivet-gui
dso_list:       python-blivet-1.0-1.fc22.noarch
executable:     /bin/blivet-gui
kernel:         3.20.0-0.rc0.git10.1.fc22.x86_64
runlevel:       N 3
type:           Python
uid:            0

Truncated backtrace:
size.py:304:convertTo:AttributeError: 'str' object has no attribute 'factor'

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/blivetgui/devicevisualization/device_canvas.py", line 386, in draw_event
    draw_loop(self, root_iter, 0, 0, self.parent, width)
  File "/usr/lib/python2.7/site-packages/blivetgui/devicevisualization/device_canvas.py", line 360, in draw_loop
    parts_left, size_left, start, depth)
  File "/usr/lib/python2.7/site-packages/blivetgui/devicevisualization/device_canvas.py", line 184, in compute_rectangles_size
    total_size = round(parent.size.convertTo(spec="MiB"))
  File "/usr/lib/python2.7/site-packages/blivet/size.py", line 304, in convertTo
    return Decimal(self) / Decimal((spec or B).factor)
AttributeError: 'str' object has no attribute 'factor'

Local variables in innermost frame:
self: Size('465.76 GiB')
spec: 'MiB'

Comment 1 Steven Usdansky 2015-02-23 12:52:02 UTC
Created attachment 994366 [details]
File: backtrace

Comment 2 Steven Usdansky 2015-02-23 12:52:03 UTC
Created attachment 994367 [details]
File: environ

Comment 3 Vojtech Trefny 2015-02-23 14:09:02 UTC

*** This bug has been marked as a duplicate of bug 1193938 ***


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