Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Can't find init.tcl" on Windows #67

Closed
MikeInnes opened this issue Dec 23, 2013 · 6 comments
Closed

"Can't find init.tcl" on Windows #67

MikeInnes opened this issue Dec 23, 2013 · 6 comments

Comments

@MikeInnes
Copy link

When I run using Tk I get the error

ERROR: TclError(
"error initializing Tcl: Can't find a usable init.tcl in the following directories: 
    {C:\\Ruby200-x64\\share\\tcl} C:/Ruby200-x64/share/tcl8.5 C:/Ruby200-x64/lib/tcl8.5 C:/Users/Mike/Desktop/julia-05c6461b55/lib/tcl8.5 C:/Users/Mike/Desktop/lib/tcl8.5 C:/Users/Mike/Desktop/julia-05c6461b55/library C:/Users/Mike/Desktop/library C:/Users/Mike/Desktop/tcl8.5.12/library C:/Users/Mike/tcl8.5.12/library

    This probably means that Tcl wasn't installed properly.
")
 in init at C:\Users\Mike\.julia\Tk\src\tkwidget.jl:58
WARNING: backtraces on your platform are often misleading or partially incorrect

at C:\Users\Mike\.julia\Tk\src\tkwidget.jl:452
at C:\Users\Mike\.julia\Tk\src\Tk.jl:25

Installing ActiveTCL didn't help, and copying its init.tcl file to one of these locations caused using Tk to hang until I reinstalled Julia. For what it's worth, git gui (using Tk) runs fine on my system.

@cmey
Copy link

cmey commented Nov 18, 2014

I encounter the same problem on latest Julia release (0.3.2) Win7 x64 :

julia> versioninfo()
Julia Version 0.3.2+2
Commit 6babc84* (2014-10-22 01:21 UTC)
Platform Info:
  System: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Core(TM) i5 CPU       M 560  @ 2.67GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Nehalem)
  LAPACK: libopenblas
  LIBM: libopenlibm
  LLVM: libLLVM-3.3


julia> Pkg.update()
INFO: Updating METADATA...
INFO: Updating Images...
INFO: Computing changes...
INFO: No packages to install, update or remove


julia> using Tk
Warning: Method definition find_library(Any,Any,Any) in module BinDeps at C:\Use
rs\cmey\.julia\v0.3\BinDeps\src\BinDeps.jl:13 overwritten in module BinDeps at C
:\Users\cmey\.julia\v0.3\BinDeps\src\BinDeps.jl:13.
Warning: New definition
    |(SynchronousStepCollection,Any) at C:\Users\cmey\.julia\v0.3\BinDeps\src\Bi
nDeps.jl:292
is ambiguous with:
    |(Any,SynchronousStepCollection) at C:\Users\cmey\.julia\v0.3\BinDeps\src\Bi
nDeps.jl:295.
To fix, define
    |(SynchronousStepCollection,SynchronousStepCollection)
before the new definition.
Warning: New definition
    |(SynchronousStepCollection,Any) at C:\Users\cmey\.julia\v0.3\BinDeps\src\Bi
nDeps.jl:292
is ambiguous with:
    |(Any,SynchronousStepCollection) at C:\Users\cmey\.julia\v0.3\BinDeps\src\Bi
nDeps.jl:295.
To fix, define
    |(SynchronousStepCollection,SynchronousStepCollection)
before the new definition.
Warning: New definition
    |(Any,SynchronousStepCollection) at C:\Users\cmey\.julia\v0.3\BinDeps\src\Bi
nDeps.jl:295
is ambiguous with:
    |(SynchronousStepCollection,Any) at C:\Users\cmey\.julia\v0.3\BinDeps\src\Bi
nDeps.jl:292.
To fix, define
    |(SynchronousStepCollection,SynchronousStepCollection)
before the new definition.
Warning: New definition
    |(Any,SynchronousStepCollection) at C:\Users\cmey\.julia\v0.3\BinDeps\src\Bi
nDeps.jl:295
is ambiguous with:
    |(SynchronousStepCollection,Any) at C:\Users\cmey\.julia\v0.3\BinDeps\src\Bi
nDeps.jl:292.
To fix, define
    |(SynchronousStepCollection,SynchronousStepCollection)
before the new definition.
Warning: Method definition run(Function,) in module BinDeps at C:\Users\cmey\.ju
lia\v0.3\BinDeps\src\BinDeps.jl:419 overwritten in module BinDeps at C:\Users\cm
ey\.julia\v0.3\BinDeps\src\BinDeps.jl:419.

ERROR: TclError("error initializing Tcl: Can't find a usable init.tcl in the fol
lowing directories: \n    {C:\\Users\\cmey\\AppData\\Local\\Continuum\\Anaconda\
\share\\tcl} C:/Users/cmey/AppData/Local/Continuum/Anaconda/share/tcl8.5 C:/User
s/cmey/AppData/Local/Continuum/Anaconda/lib/tcl8.5 C:/Users/cmey/AppData/Local/J
ulia-0.3.2/lib/tcl8.5 C:/Users/cmey/AppData/Local/lib/tcl8.5 C:/Users/cmey/AppDa
ta/Local/Julia-0.3.2/library C:/Users/cmey/AppData/Local/library C:/Users/cmey/A
ppData/Local/tcl8.5.2/library C:/Users/cmey/AppData/tcl8.5.2/library\n\n\n\nThis
 probably means that Tcl wasn't installed properly.\n")
 in init at C:\Users\cmey\.julia\v0.3\Tk\src\tkwidget.jl:58
while loading C:\Users\cmey\.julia\v0.3\Tk\src\tkwidget.jl, in expression starti
ng on line 453
while loading C:\Users\cmey\.julia\v0.3\Tk\src\Tk.jl, in expression starting on
line 25

@cmey
Copy link

cmey commented Nov 18, 2014

After deleting .julia totally, problem solved! @one-more-minute have you tried that?

There still seems to be some weird stuff happening with Pkg, @StefanKarpinski

@cmey
Copy link

cmey commented Nov 18, 2014

@one-more-minute, Otherwise, my Julia seems to be looking into my Anaconda install path, maybe try to install Anaconda?

@MikeInnes
Copy link
Author

Oh, I gave up on both Windows and Tcl a long time ago, but glad you got yours working.

@dolejm1 dolejm1 mentioned this issue Mar 13, 2015
@joa-quim
Copy link

I'm still getting this error even after starting with a new .julia/v0.4 (didn't want to try the same with v0.3).
I also noticed one thing. I copied one init.tcl that I found in WinRPM into julia-0.3.4\lib\tcl8.5 and now it also complains that
version conflict for package \"Tcl\": have 8.5.2, need exactly 8.5.15\nversion conflict for package \"Tcl\": have 8.5.2, need exactly 8.5.15\
So the init.tcl in C:\j\.julia\v0.3\WinRPM\deps\usr\x86_64-w64-mingw32\sys-root\mingw\share\tcl8.5 does not go along with the dll in C:\j\.julia\v0.3\WinRPM\deps\usr\x86_64-w64-mingw32\sys-root\mingw\bin\tcl85.dll which claims to be version 8.5.2.15

@dchansen
Copy link

The issues seems to be that Julia finds a Tcl installation from another programming language (Python or Ruby for instance), which does not match the version needed for Tk.jl.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants