[Glade-users] Importing an old .glade file

Damon Chaplin damon at karuna.uklinux.net
Mon Aug 8 05:06:31 EDT 2005


On Sun, 2005-08-07 at 22:02 +0200, Zoltan Boszormenyi wrote:

> $ libglade-convert --verbose myproject.glade
> Fixing app1 up as GnomeApp
> Fixing app1 up as GtkWindow
> Fixing dock1 up as BonoboDock
> Fixing dockitem1 up as BonoboDockItem
> Fixing menubar1 up as GtkMenuBar
> Fixing file1 up as GtkMenuItem
> Fixing file1_menu up as GtkMenu
> Fixing exit1 up as GtkImageMenuItem
> Fixing exit1 up as GtkMenuItem
> Fixing Traceback (most recent call last):
>    File "/usr/bin/libglade-convert", line 1201, in ?
>      main()
>    File "/usr/bin/libglade-convert", line 1198, in main
>      handle_file(args[0])
>    File "/usr/bin/libglade-convert", line 1160, in handle_file
>      fixup_widget(widgetdef)
>    File "/usr/bin/libglade-convert", line 428, in fixup_widget
>      fixup_widget(childdef.widget)
>    File "/usr/bin/libglade-convert", line 428, in fixup_widget
>      fixup_widget(childdef.widget)
>    File "/usr/bin/libglade-convert", line 428, in fixup_widget
>      fixup_widget(childdef.widget)
>    File "/usr/bin/libglade-convert", line 428, in fixup_widget
>      fixup_widget(childdef.widget)
>    File "/usr/bin/libglade-convert", line 424, in fixup_widget
>      while (type and not fixup_as_type (widget, type)):
>    File "/usr/bin/libglade-convert", line 600, in fixup_as_type
>      print >> sys.stderr, 'Fixing', widget['name'], 'up as', type
> UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in 
> position 9: ordinal not in range(128)
> 
> And it doesn't get converted. System is Fedora Core 3/x86-64.
> glade2-2.6.0, libglade2-2.4.0.

The error occurs in a debugging message. Try running it without the
"--verbose" flag. It may get further then.

If you have problems with other widgets you can try altering the
libglade-convert script, or removing the widget from the XML file.

Damon




More information about the Glade-users mailing list