Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Tk MotifFilebrowser parent namespace error...

2007-05-08
2013-04-18
  • Hi

    I am trying to run Staden 1.7.0 on OpenSuSE 10.2 on a 64-bit Linux machine.

    I fixed the initial problems of getting the right machine type set in MACHINE, etc. but when I try to run anything, eg. I get:

    can't access "::tk::MotifFilebrowser": parent namespace doesn't exist
        while executing
    "global ::tk::MotifFilebrowser"
        (procedure "tk_utils_init" line 3)
        invoked from within
    "tk_utils_init"
        invoked from within
    "if {$interactive} {
        if {[catch tkinit]} {
            package require Tk
        }
        tk_utils_init
        init_images
    }"
        (file "/usr/local/staden-linux-x86-1-7-0/lib/pregap4/pregap4.tcl" line 89)

    Any help would be appreciated!

    Regards!

    Fourie

    --------------
    Prof Fourie Joubert
    Associate Professor
    Bioinformatics and Computational Biology Unit
    Department of Biochemistry
    University of Pretoria
    fjoubert@postino.up.ac.za
    http://www.bi.up.ac.za
    Tel. +27-12-420-5802
    Fax. +27-12-420-5800

     
    • Hi
      First did you have TK package?
      and read this         https://sourceforge.net/forum/forum.php?thread_id=1688941&forum_id=347718
      I think, the srcipt pregap4.tcl don't found tk_utils, are you this file in $STADENROOT/staden-linux-1-7-0/lib/ ?
      Sorry for my poor english sir.

       
    • Hi

      Turns out TK_LIBRARY and TCL_LIBRARY were not being set correctly...

      Regards

      Fourie

       
    • To What and Where did you set the
      TK_LIBRARY and TCL_LIBRARY variables?

       
    • Hi

      To $STADENROOT/lib/tk and $STADENROOT/lib/tk

      Regards!

      Fourie

       
    • Hi

      To $STADENROOT/lib/tk and $STADENROOT/lib/tcl

      Regards!

      Fourie

       
    • James Bonfield
      James Bonfield
      2007-06-06

      On a unix environment the gap4, trev, spin and pregap4 wrapper scripts should manage this for you. If you're not willing to have STADENROOT, TCL_LIBRARY, TK_LIBRARY, LD_LIBRARY_PATH, etc modified in your environment then don't set STADENROOT and don't source staden.profile/login, but instead just add the appropriate bin to your PATH and gap4,trev etc should still work and indeed may work better if normally you have some other application which also modifies the same environment variables.

      Under windows there's equivalent wrapper scripts, but I'd expect it to work more sane there as there's little choice or freedom to configure the environment in "bizarre" ways.

      James

       
      • malcolm cook
        malcolm cook
        2007-07-17

        James - your advice about sourcing the .profile doesn't work if their shell is tcsh, since staden.login does not do a setenv on TCL_LIBRARY, TK_LIBRARY  in version 1.7.0 on these variables (and should).

        Or ???

        Cheers,

        Malcolm Cook