TCL_EvalFile, can't find package BWidget
Bug Description
I am running Scilab 2024.0.0 on Linux Mint 21.3 It works fine apart from not being able to edit the figure or axes properties in a graphics figure or to be able to edit the preferences. For the figure properties I get the following error on the console:
exec('/home/david/Documents/Research/Physics/ConservationAngularMomentu
m/NewtonianBallonString/NewtBallStringInteg.sci', -1)
at line 19 of function ged_figure ( /opt/scilab-
2024.0.0/share/scilab/modules/tclsci/macros/ged_figure.sci line 19 )
at line 95 of function ged ( /opt/scilab-
2024.0.0/share/scilab/modules/graphics/macros/ged.sci line 106 )
TCL_EvalFile, at line 23 of file /opt/scilab- 2024.0.0/share/scilab/modules/graphics/tcl/ged/Figure.tcl
can't find package BWidget
while executing
"package require BWidget"
(in namespace inscope "::" script line 1)
invoked from within
"namespace inscope :: package require BWidget"
(file "/opt/scilab-
2024.0.0/share/scilab/modules/graphics/tcl/ged/Figure.tcl" line 23).
Any ideas on how to fix this. It seems to be missing a package?
What is the expected correct behavior?
I have resolved the issue although I do not knao exactly what caused it. The /opt/scilab-2024.0.0/share/scilab/modules/tclsci/tcl/BWidget
directory existed and had the correct permissions (drwxr-xr-x
) but image and lang subdirectories had drwxr-x--x
and the tcl files in BWidget and the files in the images and lang subdirectories all had permission -rwxr-x---
. I had 6.6.1 running on a laptop and the subdirectory permissions on that were drwxr-xr-x
and the file permissions for the tcl files and those in the subdirectories were -rw- r--r--
. I changed the permissions to be the same as in the 6.1.1 version on the laptop and everything now works fine. I had unpacked the tar in my home directory and sudo copied it to /opt
and then created a symbolic link in /usr/local/bin
to run 2024.0.0.
I checked the permissions in the tarball as unpacked and they were
BWidget drwxr-xr-x
images drwxr-xr--
lang drwxr-xr--
tcl and image and lang file -rwxr-x---
so it appears the issue may be the permissions in the downloaded tarball.