Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Can not find package BWidgets in ActiveTcl 8.5

149 views
Skip to first unread message

egil....@getmail.no

unread,
Feb 2, 2008, 3:12:50 PM2/2/08
to
Hi

I am an occasional user of Tcl, and I have just downloaded 8.5 from
ActiveState to my Windows XP platform. I have earlier used ActiveTcl
8.4.14, and there I could use the BWidgets package by just saying
"package require BWidgets" in my Tcl script. With 8.5, I get an "can't
find package BWidgets". Is BWidgets a part of the ActiveTcl
distribution? The documentation says so, but I can not find any
relevant file on my computer.

I suppose this has a simple solution, but I am not able to find out
what it is. Thanks for any help.

Egil

George Petasis

unread,
Feb 2, 2008, 5:42:13 PM2/2/08
to egil....@getmail.no
O/H egil....@getmail.no έγραψε:

Open a command prompt, and enter the following commands:

teacup timeout -1
teacup update-self
teacup install BWidget

This will install the BWidget package for the current user.

To get something similar to earlier (8.4.x) distributions, you can try:

teacup install ActiveState::ActiveTcl -is profile

George

Andreas Kupries

unread,
Feb 2, 2008, 7:05:49 PM2/2/08
to
egil....@getmail.no writes:

> Hi

The current ActiveTcl 8.5 distribution was slimmed very radically, as
all of the packages (and more) can be gotten from the TEApot.

There are currently two solutions to your problem with getting Bwidget

(1) Get both ActiveTcl 8.5 and ActiveTcl 8.4, and install them
into the same directory. That way the tclsh8.5 will pick up
the packages from ActiveTcl 8.4

(2) Use the 'teacup' application to retrieve and install Bwidget,
via
teacup install Bwidget

Alternatively run

teacup install ActiveState::ActiveTcl -is profile

to get all the packages. Depending on your setup you may need
--proxy and/or --force as well. See the documentation for more
on that.

NOTE: The teacup in the distributed ActiveTcl 8.5 has some
flaws which have been corrected since then. Before
using teacup to install packages run

teacup update-self

to upgrade it. This will give you the most-uptodate
teacup we have in ActiveState's TEApot repository.

NOTE 2: I see that you are on the Win XP platform. For that
platform we have people reporting that the
'update-self' process can fail. for this we have no
fix yet, only a workaround. The problem can be
detected by running

teacup version

before and after 'teacup update-self' and comparing
the version numbers. If they are identical (and
update-self has told oyu that it found and installed a
higher number) then the process failed.

The workaround for that case is to run

teacup get teacup

This will retrieve the teacup application and store
them in the current working directory under the name
application-teacup-*. Pick the variant for win32 and
copy it to the 'teacup.exe' in ActiveTcl's bin
directory.

For further information on teacup see the documentation

(TEApot package management)
http://aspn.activestate.com/ASPN/docs/ActiveTcl/8.4/tpm/toc.html

and the Tcler's Wiki, especially

http://wiki.tcl.tk/17341
(Using Teacup for the first time)

and http://wiki.tcl.tk/_search?S=teacup&_charset_=UTF-8

HTH.
--
So long,
Andreas Kupries <akup...@shaw.ca>
<http://www.purl.org/NET/akupries/>
Developer @ <http://www.activestate.com/>
-------------------------------------------------------------------------------

egil....@getmail.no

unread,
Feb 3, 2008, 4:20:19 AM2/3/08
to
Thanks to both of you for very valuable information. I found it
simplest to reinstall ActiveTcl 8.4.17 together with the new 8.5
installation. Now I have no problem finding the packages. This seems
to be the easiest way until the problems with teacup have been solved
in an ordinary distribution.

Best regards,

Egil

Georgios Petasis

unread,
Feb 3, 2008, 5:37:24 AM2/3/08
to Andreas Kupries
Dear Andreas,

Just a note that doing "teacup install ActiveState::ActiveTcl -is
profile" did not install BWidgets. It has been somehow left outside the
profile :-)
(This is why I gave instructions on how to install it before installing
the profile...)

Best regards,

George

O/H Andreas Kupries έγραψε:

0 new messages