Giter Club home page Giter Club logo

Comments (6)

jeremyevans avatar jeremyevans commented on June 15, 2024

I get the same error, but I think the reason is that the BWidget tk package is not installed. Maybe you need to install it?: https://wiki.tcl-lang.org/page/BWidget

from tk.

wf5w avatar wf5w commented on June 15, 2024

from tk.

jeremyevans avatar jeremyevans commented on June 15, 2024

If you can get the BWidget package working using tcl/tk, but cannot get it working with ruby-tk, it may be a bug in ruby-tk. In that case, please post a tcl/tk example that works for you.

If you cannot get the BWidget package working using tcl/tk, it's probably a tk issue, and nothing ruby-tk can do will fix things.

from tk.

wf5w avatar wf5w commented on June 15, 2024

the $LOAD_PATH variable contains this just before the fail: ["/var/lib/gems/2.7.0/gems/tk-0.4.0/lib", "/var/lib/gems/2.7.0/extensions/x86_64-linux/2.7.0/tk-0.4.0", "/usr/local/lib/site_ruby/2.7.0", "/usr/local/lib/x86_64-linux-gnu/site_ruby", "/usr/local/lib/site_ruby", "/usr/lib/ruby/vendor_ruby/2.7.0", "/usr/lib/x86_64-linux-gnu/ruby/vendor_ruby/2.7.0", "/usr/lib/ruby/vendor_ruby", "/usr/lib/ruby/2.7.0", "/usr/lib/x86_64-linux-gnu/ruby/2.7.0"]

Now the place where bwidget.rb is located is:
/var/lib/gems/2.7.0/gems/tk-0.4.0/lib/tkextlib/bwidget.rb

Could it be that the directory is not in the $LOAD_PATH is that it can't resolve where it is?

from tk.

jeremyevans avatar jeremyevans commented on June 15, 2024

If you read the backtrace, you can see that lib/tkextlib/bwidget.rb is being loaded. The issue is it tries to load the tk BWidget package. That fails.

As I said, please try to get BWidget working using tcl/tk. If you can get it working with tcl/tk and not ruby-tk, then post how you got it working with tcl/tk and I can take a look. My assumption now is you don't have the tcl/tk BWidget package installed, so nothing you do in ruby-tk will make BWidget work.

from tk.

wf5w avatar wf5w commented on June 15, 2024

ok. I finally got what you said.

I did a apt-cache search for bwidget and found that indeed there is a package named that.
I installed it, and everything is fine!

Thanks. Sometimes it takes a little prodding for this 73 year old to finally get it!

Jerry

from tk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.