A small bug in PolSARpro_v6.0.2_Biomass_Edition.tcl file

After I install PolSARPro 6.0 and tried to launch up sentinel 1 A/B mission, I got some error about "widget(PSPEDUC1) missing “ or alike warnings and failed start up this module.

It took me some time to figure out this is due to a misspelling in the main TCL file “PolSARpro_v6.0.2_Biomass_Edition.tcl” .

at line 48859, "$widget(PSPEDUC1) configure -state disable "
and line 48931 "$widget(PSPEDUC1) configure -state normal ",
“PSPEDUC1” in the brackets has to be changed to “PSPEDUC”, then it will work.

this message is for those who may encounter the same problem.

8 Likes

thank you for sharing. So you mean that the 1 has to be removed from these lines of code?

I am not really sure if it should be removed or not(I do not know Tcl/Tk), but the sentinel 1 part won’t work and raise error messages with this 1.

@szw it worked for me I can say thank you so much

Hi,

I hope my error is related to here.
I installed PolSARPro biomass edition with all the required softwares. But it is showing “can’t find package BWidget” error while entering.
I downloaded the latest version of BWidgets package and unzipped in TCL lib directory. As mentioned in widgets folder, thought of appending auto path variable and adding " package require BWidgets" line will solve the error. But I don’t know how and where to add that and ended up here. @szw Can you help me in which file to change that line??
Any help in solving this error is appreciated. I here attached the screenshots of error messages too.

error1

Hi,

It got solved. Thank you

glad to hear - what was the solution?

I opened it from S1 tool box and it is working. When opened separately it is showing the same error.

Thank you so much!!! :grin:

Hello,

I encountered the same issue when trying to lunch Sentinel-1 A/B mission.

I did try to edit the TCL file “PolSARpro_v6.0.2_Biomass_Edition.tcl”, but apparently we cannot (and shouldn’t?) edit any TCL files.

Following is my error message:

can’t read “widget(PSPEDUC1)”: no such element in array
can’t read “widget(PSPEDUC1)”: no such element in array
while executing
“$widget(PSPEDUC1) configure -state disable”
invoked from within
“.top3.fra66.cpd69.but93 invoke”
(“uplevel” body line 1)
invoked from within
“uplevel #0 [list $w invoke]”
(procedure “tk::ButtonUp” line 24)
invoked from within
“tk::ButtonUp .top3.fra66.cpd69.but93”
(command bound to event)

Any ideas?

Hi samlee, I have encountered a similar bwidget package problem. I was wondering how you actually fixed the issue. I am not sure where I am supposed to put the BWidget folder downloaded from online.

I hope you can help.

seems like a file permission issue, check if your tcl file is read only or belongs to a user group you do not have write permission.