Comments (6)
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.
from tk.
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.
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.
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.
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)
- positionWindow(w) HOT 1
- Unknown command tk HOT 2
- i can't install tk HOT 3
- autoload.rb:455: warning: deprecated Object#=~ is called on Class; it always returns nil HOT 3
- How i can install Tk !? HOT 1
- Can't install tk, something about tcltklib HOT 2
- tk decreases load speed of others gems loading after it HOT 11
- Small warnings issued by the tk gem - could these be removed by someone with commit access? HOT 2
- Ruby crashes during `require 'tk'` on macOS 10.14.6 (Mojave) HOT 11
- Support for Tcl/Tk 8.7 HOT 8
- How to track text widget insert mark change? HOT 1
- Binding standard widget events does not work on text widget HOT 3
- Tk.getMultipleSaveFile does not work on the Mac HOT 6
- Tk::Text listening to a tag covering 1.0 to end stops working after clearing all text (on Mac) HOT 4
- warning: undefining the allocator of T_DATA class TkUtil::CallbackSubst::Info HOT 2
- extconf.rb ignores config_list.in HOT 3
- Two warnings in tk.rb
- support for ruby3 HOT 6
- tk on windows with ActiveTcl and ruby 3.2 crashing HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tk.