Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.dougwise.org!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!talisker.lacave.net!lacave.net!not-for-mail From: =?UTF-8?B?TMOhc3psw7M=?= =?UTF-8?B?IEbDtmxkZXM=?= Newsgroups: comp.lang.ruby Subject: Tk and Tile with Tk8.5 Date: Fri, 1 Apr 2011 19:45:24 -0500 Organization: Service de news de lacave.net Lines: 36 Message-ID: <07a7e2ba2709d9e19d380257946e93e6@ruby-forum.com> NNTP-Posting-Host: bristol.highgroove.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: talisker.lacave.net 1301705137 91112 65.111.164.187 (2 Apr 2011 00:45:37 GMT) X-Complaints-To: abuse@lacave.net NNTP-Posting-Date: Sat, 2 Apr 2011 00:45:37 +0000 (UTC) X-Received-From: This message has been automatically forwarded from the ruby-talk mailing list by a gateway at comp.lang.ruby. If it is SPAM, it did not originate at comp.lang.ruby. Please report the original sender, and not us. Thanks! For more details about this gateway, please visit: http://blog.grayproductions.net/categories/the_gateway X-Mail-Count: 380790 X-Ml-Name: ruby-talk X-Rubymirror: Yes X-Ruby-Talk: <07a7e2ba2709d9e19d380257946e93e6@ruby-forum.com> Xref: x330-a1.tempe.blueboxinc.net comp.lang.ruby:2142 I want to use Ruby 1.9.1 (Ubuntu 10.10) with Tk8.5 Tile, but this samle code: require 'tk' require 'tkextlib/tile' root = TkRoot.new { title "Ex1" } Tk::Tile::Button.new(root) { text "Ok" command proc { print "Hello, World!"; exit } pack('side'=>'left', 'padx'=>10, 'pady'=>10) } Tk.mainloop() fails with: $ ruby tk_test.rb /usr/lib/ruby/1.9.1/tkextlib/tile.rb:46:in `rescue in ': undefined method `__cannot_find_tk_package_for_widget_set__' for Tk:Module (NoMethodError) from /usr/lib/ruby/1.9.1/tkextlib/tile.rb:31:in `' from :29:in `require' from :29:in `require' from tk_test.rb:2:in `
' Googleing for "__cannot_find_tk_package_for_widget_set__" is one of those rare moments when Google gives back only 1 hit. Am I doing something wrong? I'm not a source code compiler type, I installed everything from aptitude (Ruby 1.9.1, Tk8.4, Tk8.5, Tcl8.4, Tcl8.5) -- Posted via http://www.ruby-forum.com/.