gdiskdump not starting on polish OS

Bug #802973 reported by Pawouek
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gdiskdump
Fix Committed
Undecided
Unassigned

Bug Description

On polish version of ubuntu gdiskdump id not starting.
This could be similar to bug :
https://bugs.launchpad.net/gdiskdump/+bug/541821

Here is the output from terminal:

got partition list
Traceback (most recent call last):
  File "/usr/bin/gdiskdump", line 44, in <module>
    gdiskdump.main()
  File "/usr/lib/pymodules/python2.7/gdiskdump/__init__.py", line 44, in main
    window = GdiskdumpWindow.GdiskdumpWindow()
  File "/usr/lib/pymodules/python2.7/gdiskdump_lib/Window.py", line 46, in __new__
    new_object.finish_initializing(builder)
  File "/usr/lib/pymodules/python2.7/gdiskdump/GdiskdumpWindow.py", line 52, in finish_initializing
    self.get_hd_liststore()
  File "/usr/lib/pymodules/python2.7/gdiskdump/GdiskdumpWindow.py", line 83, in get_hd_liststore
    convsize=self.convert_bytes(size)
  File "/usr/lib/pymodules/python2.7/gdiskdump/GdiskdumpWindow.py", line 392, in convert_bytes
    bytes = float(bytes)
ValueError: could not convert string to float: są

Revision history for this message
Andreas Wilhelm (andywilhelm) wrote : Re: [Bug 802973] [NEW] gdiskdump not starting on polish OS

On 06/28/2011 02:58 PM, Pawouek wrote:
> Public bug reported:
>
> On polish version of ubuntu gdiskdump id not starting.
> This could be similar to bug :
> https://bugs.launchpad.net/gdiskdump/+bug/541821
>
> Here is the output from terminal:
>
> got partition list
> Traceback (most recent call last):
> File "/usr/bin/gdiskdump", line 44, in<module>
> gdiskdump.main()
> File "/usr/lib/pymodules/python2.7/gdiskdump/__init__.py", line 44, in main
> window = GdiskdumpWindow.GdiskdumpWindow()
> File "/usr/lib/pymodules/python2.7/gdiskdump_lib/Window.py", line 46, in __new__
> new_object.finish_initializing(builder)
> File "/usr/lib/pymodules/python2.7/gdiskdump/GdiskdumpWindow.py", line 52, in finish_initializing
> self.get_hd_liststore()
> File "/usr/lib/pymodules/python2.7/gdiskdump/GdiskdumpWindow.py", line 83, in get_hd_liststore
> convsize=self.convert_bytes(size)
> File "/usr/lib/pymodules/python2.7/gdiskdump/GdiskdumpWindow.py", line 392, in convert_bytes
> bytes = float(bytes)
> ValueError: could not convert string to float: są
>
> ** Affects: gdiskdump
> Importance: Undecided
> Status: New
>

Hello,

thank you for the bug report, but I couldn't recreate your bug.
Everything works fine for me, on an polish OS.
Maybe you could send some more Information , such as:
- exact version of Ubuntu (11.04?)
- i386 or amd64?
- does it work with another language?
- whats the output of the command "sudo fdisk -l" ?

Revision history for this message
Pawouek (pawouek) wrote :

Hi
More information from me:
My test machine: eeePC 901

cat /etc/issue
Ubuntu 11.04 \n \l

uname -a
Linux Mikrus 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:50 UTC 2011 i686 i686 i386 GNU/Linux

sudo fdisk -l
Dysk /dev/sda: 4034 MB, bajtów: 4034838528
Urządzenie Rozruch Początek Koniec Bloków ID System
/dev/sda1 * 1 490 3935893+ 7 HPFS/NTFS

Dysk /dev/sdb: 30.9 GB, bajtów: 30869766144
Urządzenie Rozruch Początek Koniec Bloków ID System
/dev/sdb1 2 1713 13751640 7 HPFS/NTFS
/dev/sdb2 * 2989 3370 3068415 83 Linux
/dev/sdb3 3371 3753 3076447+ 83 Linux
/dev/sdb4 1714 2988 10241437+ 7 HPFS/NTFS

Both disk are SSD cards in eeePC netbook.

Unfortunately i cant check if it works on another language - i cleaned all unnecesary languages, translations, fonts and so on. SSD disk in this machine is not as big as i want :)
Later i will check on desktop machine (standard debian testing installation)
--
Greetings
Pawouek

Revision history for this message
Andreas Wilhelm (andywilhelm) wrote : Re: [Bug 802973] Re: gdiskdump not starting on polish OS

On 06/29/2011 12:25 PM, Pawouek wrote:
> Hi
> More information from me:
> My test machine: eeePC 901
>
> cat /etc/issue
> Ubuntu 11.04 \n \l
>
> uname -a
> Linux Mikrus 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:50 UTC 2011 i686 i686 i386 GNU/Linux
>
> sudo fdisk -l
> Dysk /dev/sda: 4034 MB, bajtów: 4034838528
> Urządzenie Rozruch Początek Koniec Bloków ID System
> /dev/sda1 * 1 490 3935893+ 7 HPFS/NTFS
>
> Dysk /dev/sdb: 30.9 GB, bajtów: 30869766144
> Urządzenie Rozruch Początek Koniec Bloków ID System
> /dev/sdb1 2 1713 13751640 7 HPFS/NTFS
> /dev/sdb2 * 2989 3370 3068415 83 Linux
> /dev/sdb3 3371 3753 3076447+ 83 Linux
> /dev/sdb4 1714 2988 10241437+ 7 HPFS/NTFS
>
> Both disk are SSD cards in eeePC netbook.
>
> Unfortunately i cant check if it works on another language - i cleaned all unnecesary languages, translations, fonts and so on. SSD disk in this machine is not as big as i want :)
> Later i will check on desktop machine (standard debian testing installation)

Hi again,
sorry that I bother you so much, could you please send me the output of
the email's attached gdiskdump. I inserted some Debug Lines.
I couldn't reproduce your bug, sorry for asking so much.

Revision history for this message
Pawouek (pawouek) wrote :

No problem at all :)
In so called meantime i've translated gdiskdump to polish so i want to check if my work is acceptable on working application :)

DEB packet from the attachment do not want to install - i've moved all files by hand, so the output is:
#OUTPUT START
got partition list
start hd_liststore
hdinfo:['Dysk', '/dev/sda:', '4034', 'MB,', 'bajt\xc3\xb3w:', '4034838528']
hd:/dev/sda
size:4034838528
hdinfo:['Jednostka', '=', 'cylindr\xc3\xb3w,', 'czyli', '16065', '*', '512', '=', '8225280', 'bajt\xc3\xb3w']
hd:=
size:16065
hdinfo:['Dysk', '/dev/sdb:', '30.9', 'GB,', 'bajt\xc3\xb3w:', '30869766144']
hd:/dev/sdb
size:30869766144
hdinfo:['Jednostka', '=', 'cylindr\xc3\xb3w,', 'czyli', '16065', '*', '512', '=', '8225280', 'bajt\xc3\xb3w']
hd:=
size:16065
hdinfo:['Wpisy', 'w', 'tablicy', 'partycji', 'nie', 's\xc4\x85', 'w', 'tej', 'kolejno\xc5\x9bci,', 'co', 'na', 'dysku']
hd:w
size:są
Traceback (most recent call last):
  File "/usr/bin/gdiskdump", line 49, in <module>
    gdiskdump.main()
  File "/usr/lib/pymodules/python2.7/gdiskdump/__init__.py", line 44, in main
    window = GdiskdumpWindow.GdiskdumpWindow()
  File "/usr/lib/pymodules/python2.7/gdiskdump_lib/Window.py", line 46, in __new__
    new_object.finish_initializing(builder)
  File "/usr/lib/pymodules/python2.7/gdiskdump/GdiskdumpWindow.py", line 52, in finish_initializing
    self.get_hd_liststore()
  File "/usr/lib/pymodules/python2.7/gdiskdump/GdiskdumpWindow.py", line 95, in get_hd_liststore
    convsize=self.convert_bytes(size)
  File "/usr/lib/pymodules/python2.7/gdiskdump/GdiskdumpWindow.py", line 414, in convert_bytes
    bytes = float(bytes)
ValueError: could not convert string to float: są
#OUTPUT END

Full output from fdisk -al - all lines printed on screen
#OUTPUT START
Dysk /dev/sda: 4034 MB, bajtów: 4034838528
głowic: 255, sektorów/ścieżkę: 63, cylindrów: 490
Jednostka = cylindrów, czyli 16065 * 512 = 8225280 bajtów
Rozmiar sektora (logiczny/fizyczny) w bajtach: 512 / 512
Rozmiar we/wy (minimalny/optymalny) w bajtach: 512 / 512
Identyfikator dysku: 0x2c252c24

Urządzenie Rozruch Początek Koniec Bloków ID System
/dev/sda1 * 1 490 3935893+ 7 HPFS/NTFS

Dysk /dev/sdb: 30.9 GB, bajtów: 30869766144
głowic: 255, sektorów/ścieżkę: 63, cylindrów: 3753
Jednostka = cylindrów, czyli 16065 * 512 = 8225280 bajtów
Rozmiar sektora (logiczny/fizyczny) w bajtach: 512 / 512
Rozmiar we/wy (minimalny/optymalny) w bajtach: 512 / 512
Identyfikator dysku: 0xecd8ecd8

Urządzenie Rozruch Początek Koniec Bloków ID System
/dev/sdb1 2 1713 13751640 7 HPFS/NTFS
/dev/sdb2 * 2989 3370 3068415 83 Linux
/dev/sdb3 3371 3753 3076447+ 83 Linux
/dev/sdb4 1714 2988 10241437+ 7 HPFS/NTFS

Wpisy w tablicy partycji nie są w tej kolejności, co na dysku
#OUTPUT END

fdisk -v
fdisk (util-linux-ng 2.17.2)

Revision history for this message
Andreas Wilhelm (andywilhelm) wrote :
Download full text (3.2 KiB)

On 06/29/2011 03:09 PM, Pawouek wrote:
> No problem at all :)
> In so called meantime i've translated gdiskdump to polish so i want to check if my work is acceptable on working application :)
>
> DEB packet from the attachment do not want to install - i've moved all files by hand, so the output is:
> #OUTPUT START
> got partition list
> start hd_liststore
> hdinfo:['Dysk', '/dev/sda:', '4034', 'MB,', 'bajt\xc3\xb3w:', '4034838528']
> hd:/dev/sda
> size:4034838528
> hdinfo:['Jednostka', '=', 'cylindr\xc3\xb3w,', 'czyli', '16065', '*', '512', '=', '8225280', 'bajt\xc3\xb3w']
> hd:=
> size:16065
> hdinfo:['Dysk', '/dev/sdb:', '30.9', 'GB,', 'bajt\xc3\xb3w:', '30869766144']
> hd:/dev/sdb
> size:30869766144
> hdinfo:['Jednostka', '=', 'cylindr\xc3\xb3w,', 'czyli', '16065', '*', '512', '=', '8225280', 'bajt\xc3\xb3w']
> hd:=
> size:16065
> hdinfo:['Wpisy', 'w', 'tablicy', 'partycji', 'nie', 's\xc4\x85', 'w', 'tej', 'kolejno\xc5\x9bci,', 'co', 'na', 'dysku']
> hd:w
> size:są
> Traceback (most recent call last):
> File "/usr/bin/gdiskdump", line 49, in<module>
> gdiskdump.main()
> File "/usr/lib/pymodules/python2.7/gdiskdump/__init__.py", line 44, in main
> window = GdiskdumpWindow.GdiskdumpWindow()
> File "/usr/lib/pymodules/python2.7/gdiskdump_lib/Window.py", line 46, in __new__
> new_object.finish_initializing(builder)
> File "/usr/lib/pymodules/python2.7/gdiskdump/GdiskdumpWindow.py", line 52, in finish_initializing
> self.get_hd_liststore()
> File "/usr/lib/pymodules/python2.7/gdiskdump/GdiskdumpWindow.py", line 95, in get_hd_liststore
> convsize=self.convert_bytes(size)
> File "/usr/lib/pymodules/python2.7/gdiskdump/GdiskdumpWindow.py", line 414, in convert_bytes
> bytes = float(bytes)
> ValueError: could not convert string to float: są
> #OUTPUT END
>
> Full output from fdisk -al - all lines printed on screen
> #OUTPUT START
> Dysk /dev/sda: 4034 MB, bajtów: 4034838528
> głowic: 255, sektorów/ścieżkę: 63, cylindrów: 490
> Jednostka = cylindrów, czyli 16065 * 512 = 8225280 bajtów
> Rozmiar sektora (logiczny/fizyczny) w bajtach: 512 / 512
> Rozmiar we/wy (minimalny/optymalny) w bajtach: 512 / 512
> Identyfikator dysku: 0x2c252c24
>
> Urządzenie Rozruch Początek Koniec Bloków ID System
> /dev/sda1 * 1 490 3935893+ 7 HPFS/NTFS
>
> Dysk /dev/sdb: 30.9 GB, bajtów: 30869766144
> głowic: 255, sektorów/ścieżkę: 63, cylindrów: 3753
> Jednostka = cylindrów, czyli 16065 * 512 = 8225280 bajtów
> Rozmiar sektora (logiczny/fizyczny) w bajtach: 512 / 512
> Rozmiar we/wy (minimalny/optymalny) w bajtach: 512 / 512
> Identyfikator dysku: 0xecd8ecd8
>
> Urządzenie Rozruch Początek Koniec Bloków ID System
> /dev/sdb1 2 1713 13751640 7 HPFS/NTFS
> /dev/sdb2 * 2989 3370 3068415 83 Linux
> /dev/sdb3 3371 3753 3076447+ 83 Linux
> /dev/sdb4 1714 2988 10241437+ 7 HPFS/NTFS
>
> Wpisy w tablicy partycji nie są w tej kolejności, co na dysku
> #OUTPUT END
>
> fdisk -v
> fdisk (util-linux-ng 2.17.2)
>

ok I think I fixed it. Try this one and let me know if it works.
And thanks fo...

Read more...

Revision history for this message
Pawouek (pawouek) wrote :

OK
Good news! Program is starting - the disks list/partitions list is correct. And it is working :)
Translation updated (one little correction)

But there is some bad news also...
Deb packet still declines to install graphicaly - gdebi displays message, that packet coulde be broken, or without insuficient rights. With "dpkg -i" the instalation completes without any error.

All dialog windows (about, warning) appears under the main window and it is impossible to get it "on top" of main window.

In gnome shell application is invisible in default ALT-TAB application switcher.
--
Greetings
Pawouek

Changed in gdiskdump:
status: New → Fix Committed
Revision history for this message
Andreas Wilhelm (andywilhelm) wrote :

On 06/29/2011 04:53 PM, Pawouek wrote:
> OK
> Good news! Program is starting - the disks list/partitions list is correct. And it is working :)
> Translation updated (one little correction)
>
> But there is some bad news also...
> Deb packet still declines to install graphicaly - gdebi displays message, that packet coulde be broken, or without insuficient rights. With "dpkg -i" the instalation completes without any error.
>
> All dialog windows (about, warning) appears under the main window and it
> is impossible to get it "on top" of main window.
>
> In gnome shell application is invisible in default ALT-TAB application switcher.

ok ,thanks for your Help. I'll take care of these bugs :-)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.