[Q-e-developers] Problem Report on PWgui library "init.tcl" in Guib engine

Tone Kokalj tone.kokalj at ijs.si
Mon Jul 10 16:23:51 CEST 2017


On Sat, 2017-07-08 at 10:32 +0900, yuta.yoshikawa+tsme.me.es wrote:
> Dear developers,
> 
> I would like to pay your attention to the problem I faced
> when I tried to run PWgui-5.4.0 in fedora24(64 bit) OS.
> I am not sure where I should report
> but I wanted to share the solution for this following problem.
> 
> When I hit "./pwgui" with PWgui-5.4.0 folder,
> I got the error meassage as shown below.
> 
> ERROR MESSAGE=================================================
> $ ./pwgui
>   ==================================================
>    This is PWgui version: 5.4.0
>   --------------------------------------------------
>   PWgui: using the system default "tclsh" interpreter
> 
>   PWGUI       : /home/usr/PWgui-5.4.0
>   GUIB engine : /home/usr/PWgui-5.4.0/lib/Guib-0.5.1
> can't find package Itk

This error is caused by the new itk version 4, which is apparently
named as lowercased "itk" and not as traditionally capitalized "Itk".

Thank you for reporting this. You are apparently the first to report
that pwgui works with itk-4.*, after changing "package require Itk" to
"package require itk". The code has been adopted to cope with this
issue as:

if { [catch {package require Itk}] } {
    package require itk
}

This way both Itk-3.* and itk-4.* should work.

Best regards, Tone
-- 
J. Stefan Institute, Jamova 39, 1000 Ljubljana, Slovenia 
(tel: +386-1-477-3523 // fax: +386-1-251-9385)




More information about the developers mailing list