Bug 1193938 - blivet-gui fails in numerous ways
Summary: blivet-gui fails in numerous ways
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: blivet-gui
Version: 22
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Vojtech Trefny
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1195234 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-02-18 15:23 UTC by Peter Robinson
Modified: 2015-03-09 08:34 UTC (History)
2 users (show)

Fixed In Version: 0.2.2-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-02-26 12:59:41 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Peter Robinson 2015-02-18 15:23:56 UTC
blivet-gui-0.2.0-6.fc22

I tried to use blivet-gui to resize a partition and it failed. But even to get to that point there was issues.

# 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'
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'
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'
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'
/usr/lib64/python2.7/site-packages/gi/overrides/Gtk.py:567: Warning: The property GtkButton:use-stock is deprecated and shouldn't be used anymore. It will be removed in a future version.
  self.add_button(text, response)
/usr/lib64/python2.7/site-packages/gi/overrides/Gtk.py:567: Warning: The property GtkSettings:gtk-button-images is deprecated and shouldn't be used anymore. It will be removed in a future version.
  self.add_button(text, response)
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/blivetgui/actions_toolbar.py", line 168, in on_edit_clicked
    self.list_partitions.edit_device()
  File "/usr/lib/python2.7/site-packages/blivetgui/list_partitions.py", line 760, in edit_device
    self.kickstart_mode)
  File "/usr/lib/python2.7/site-packages/blivetgui/dialogs/edit_dialog.py", line 91, in __init__
    self.size_area = self.add_size_chooser()
  File "/usr/lib/python2.7/site-packages/blivetgui/dialogs/edit_dialog.py", line 116, in add_size_chooser
    edited_device=self.edited_device)
  File "/usr/lib/python2.7/site-packages/blivetgui/dialogs/add_dialog.py", line 153, in __init__
    self.scale, self.spin_size = self.add_size_widgets()
  File "/usr/lib/python2.7/site-packages/blivetgui/dialogs/add_dialog.py", line 158, in add_size_widgets
    adjustment=Gtk.Adjustment(0, self.min_size.convertTo(unit),
  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'
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/blivetgui/actions_menu.py", line 142, in on_edit_item
    self.list_partitions.edit_device()
  File "/usr/lib/python2.7/site-packages/blivetgui/list_partitions.py", line 760, in edit_device
    self.kickstart_mode)
  File "/usr/lib/python2.7/site-packages/blivetgui/dialogs/edit_dialog.py", line 91, in __init__
    self.size_area = self.add_size_chooser()
  File "/usr/lib/python2.7/site-packages/blivetgui/dialogs/edit_dialog.py", line 116, in add_size_chooser
    edited_device=self.edited_device)
  File "/usr/lib/python2.7/site-packages/blivetgui/dialogs/add_dialog.py", line 153, in __init__
    self.scale, self.spin_size = self.add_size_widgets()
  File "/usr/lib/python2.7/site-packages/blivetgui/dialogs/add_dialog.py", line 158, in add_size_widgets
    adjustment=Gtk.Adjustment(0, self.min_size.convertTo(unit),
  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'

Comment 1 Vojtech Trefny 2015-02-18 15:54:35 UTC
Thanks for the report. There is a little change in the API of python-blivet causing this problem. I'll try to release fixed version asap.

Comment 2 Peter Robinson 2015-02-18 16:29:45 UTC
Might also be useful to add an option to check the FS via the gui. First time I ran it had to check the console output to see that it has issues and wanted me to check the FS. Seems kind of funny to have to quit to do that.

It also doesn't seem to have an icon

Comment 3 Vojtech Trefny 2015-02-23 14:09:02 UTC
*** Bug 1195234 has been marked as a duplicate of this bug. ***

Comment 4 Vojtech Trefny 2015-02-24 15:58:36 UTC
Should be fixed in new version 0.2.2

Comment 5 Peter Robinson 2015-02-26 13:15:13 UTC
Please build as submit as an update for F-22

Comment 6 Vojtech Trefny 2015-02-26 13:44:11 UTC
Sorry, I forgot F-22 has been already branched. Koji build for 22 is finished too -- http://koji.fedoraproject.org/koji/buildinfo?buildID=615397

Comment 7 Peter Robinson 2015-02-26 13:54:17 UTC
(In reply to Vojtech Trefny from comment #6)
> Sorry, I forgot F-22 has been already branched. Koji build for 22 is
> finished too -- http://koji.fedoraproject.org/koji/buildinfo?buildID=615397

And bodhi is enabled for updates so you'll need to submit it as an update via bodhi too

Comment 8 Fedora Update System 2015-02-26 15:12:09 UTC
blivet-gui-0.2.2-1.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/blivet-gui-0.2.2-1.fc22

Comment 9 Fedora Update System 2015-02-26 15:58:53 UTC
blivet-gui-0.2.2-2.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/blivet-gui-0.2.2-2.fc22

Comment 10 Fedora Update System 2015-03-09 08:34:49 UTC
blivet-gui-0.2.2-2.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.