# Ruby-glade-create-template error

**URL:** <https://www.ruby-forum.com/t/ruby-glade-create-template-error/193171>\
**Category:** Ruby-Gnome 2\
**Created:** [August 12, 2010, 1:16pm UTC](https://www.ruby-forum.com/t/ruby-glade-create-template-error/193171 "2010-08-12T13:16:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![plastik77](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/db5fbb/32.png) [@plastik77](https://www.ruby-forum.com/u/plastik77)\
**Post date:** [August 12, 2010, 1:16pm UTC](https://www.ruby-forum.com/t/ruby-glade-create-template-error/193171/1 "2010-08-12T13:16:08Z")

</div>

I am facing problem while converting my glade gui design into ruby  
files. Here i paste the command and error:

Command:  
ruby-glade-create-template example.glade \> example.rb

Error Display:  
/usr/bin/ruby-glade-create-template: line 58  
libglade-WARNING \*\*:Expected . Got .  
/usr/bin/ruby-glade-create-template: line 58  
libglade-WARNING \*\*:did not finish in PARSER\_FINISH state  
/usr/bin/ruby-glade-create-template:58:in `initialize': could not load glade file example.glade (IOError) from /usr/bin/ruby-glade-create-template:58:in`new’  
from /usr/bin/ruby-glade-create-template:58

Beside that, is there other ways to do?

---

<div class="post-metadata">

**Author:** ![plastik77](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/db5fbb/32.png) [@plastik77](https://www.ruby-forum.com/u/plastik77)\
**Post date:** [August 26, 2010, 11:01am UTC](https://www.ruby-forum.com/t/ruby-glade-create-template-error/193171/2 "2010-08-26T11:01:36Z")

</div>

Hi Nicky –

I think you have a Glade file in the default GtkBuilder format, which  
Ruby-GTK  
doesn’t support. Save it as a LibGlade file in the “Save As” box or in  
the Project Properties. You will loose a couple of extended features but  
will be able to save & run it.

It seems that Gtk+ development is switched/has switched libraries and  
Ruby-GTK hasn’t caught up yet!

Cheers,  
Ben

Nicky Cheng wrote:

> I am facing problem while converting my glade gui design into ruby  
> files. Here i paste the command and error:
> 
> Command:  
> ruby-glade-create-template example.glade \> example.rb
> 
> Error Display:  
> /usr/bin/ruby-glade-create-template: line 58  
> libglade-WARNING \*\*:Expected . Got .  
> /usr/bin/ruby-glade-create-template: line 58  
> libglade-WARNING \*\*:did not finish in PARSER\_FINISH state  
> /usr/bin/ruby-glade-create-template:58:in `initialize': could not load glade file example.glade (IOError) from /usr/bin/ruby-glade-create-template:58:in `new’  
> from /usr/bin/ruby-glade-create-template:58

---

<div class="post-metadata">

**Author:** ![plastik77](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/db5fbb/32.png) [@plastik77](https://www.ruby-forum.com/u/plastik77)\
**Post date:** [September 12, 2010, 8:57pm UTC](https://www.ruby-forum.com/t/ruby-glade-create-template-error/193171/3 "2010-09-12T20:57:33Z")

</div>

Thanks Ben. After following your suggestion, no more error on  
terminal… but after that i run the generated ruby file. it just hang  
up… no error on terminal and no window displayed…

By the way, you hv any good site or book for me to learn this?

Ben Arnold wrote:

> Hi Nicky –
> 
> I think you have a Glade file in the default GtkBuilder format, which  
> Ruby-GTK  
> doesn’t support. Save it as a LibGlade file in the “Save As” box or in  
> the Project Properties. You will loose a couple of extended features but  
> will be able to save & run it.
> 
> It seems that Gtk+ development is switched/has switched libraries and  
> Ruby-GTK hasn’t caught up yet!
> 
> Cheers,  
> Ben
> 
> Nicky Cheng wrote:
> 
> > I am facing problem while converting my glade gui design into ruby  
> > files. Here i paste the command and error:
> > 
> > Command:  
> > ruby-glade-create-template example.glade \> example.rb
> > 
> > Error Display:  
> > /usr/bin/ruby-glade-create-template: line 58  
> > libglade-WARNING \*\*:Expected . Got .  
> > /usr/bin/ruby-glade-create-template: line 58  
> > libglade-WARNING \*\*:did not finish in PARSER\_FINISH state  
> > /usr/bin/ruby-glade-create-template:58:in `initialize': could not load glade file example.glade (IOError) from /usr/bin/ruby-glade-create-template:58:in `new’  
> > from /usr/bin/ruby-glade-create-template:58
