Error: bad variable name ... upvar won't crea

  • Robert Wuest

    Robert Wuest - 2008-11-11

    I've done a fresh install of 1.6.1a1 and removed my .vtclrc.
    I have tcl/tk  8.5.2 on fully updated Fedora 9, x8_64

    I get this when I click Toplevel:

    bad variable name "vTcl(w,opt,-background)": upvar won't create a scalar variable that looks like an array element
        while executing
    "global vTcl $variable options specialOpts propmgrLabels"
        (procedure "vTcl:prop:new_attr" line 2)
        invoked from within
    "vTcl:prop:new_attr $top $i $variable vTcl:prop:config_cmd "" opt"
        ("foreach" body line 10)
        invoked from within
    "foreach i $vTcl(options) {
            if {$options($i,type) == "synonym"} { continue }
            set newtype $options($i,title)
                if {$type != $newtype..."
        invoked from within
    "if {[winfo exists $top]} {
            if {$vTcl(w,class) != $vTcl(w,last_class)} {
                catch {pack forget $fr._$vTcl(w,last_class)}
        (procedure "vTcl:prop:update_attr" line 20)
        invoked from within
        (procedure "vTcl:select_widget" line 23)
        invoked from within
    "vTcl:select_widget $target"
        (procedure "vTcl:show_top" line 18)
        invoked from within
    "vTcl:show_top $i"
        (procedure "vTcl:vtcl:remap" line 10)
        invoked from within
    "vTcl:vtcl:remap .vTcl "
        (command bound to event)

    • Strykaas

      Strykaas - 2008-11-11

      Hi !

      Funny I got the same issue yesterday when trying to run vTcl with something more *recent* than the well trusted 8.4 TclTk version...
      Well, I worked around this by splitting the line into as many global variables and by commenting the "global $variables" line... This seems to have made it, but I did not take the time to assess the implications of commenting this line.

      It looks like a vTcl / TclTk >= 8.5  compatibility issue to me.

      • Strykaas

        Strykaas - 2008-11-11

        Could you please file a bug ? Thanks.

  • extreme_rnd

    extreme_rnd - 2011-03-02

    It's official. Had the same problem with tclkit-8.5.9 which would not launch. Then used with 8.5.0 which launched but gave the errors above. Seems to work now per the tutorial with 8.4.17. It would be nice if the tarball came with the appropriate binaries.


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks