Error with tcl 8.5.12 on Mac Os X 10.8.4

1,478 views
Skip to first unread message

Demian Battaglia

unread,
Sep 3, 2013, 9:35:48 AM9/3/13
to tvb-...@googlegroups.com
Hi! I successfully installed TVB 1.0-7.5087 32 bits, and have no problems (or at least, not yet found any) with the web-browser interface.
However, when trying to launch the Python shell I get the following error message.
Any ideas on how to fix it?

PS: furthermore, double clicking directly on the icon from the Finder window, terminate the process directly without trying to launch. Typing directly in command line, it launches, but then it exits anyway :-(


Korbinian:TVB_Distribution demian$ ./bin/tvb_command.command

Starting TVB Scripting Interface
Korbinian:TVB_Distribution demian$ Traceback (most recent call last):
 File "runpy.pyc", line 162, in _run_module_as_main
 File "runpy.pyc", line 72, in _run_code
 File "/Users/demian/Desktop/TVB_Distribution/tvb.app/Contents/Resources/lib/python2.7/bin/run_IDLE.py", line 41, in <module>
   PyShell.main()
 File "/Users/demian/Desktop/TVB_Distribution/tvb.app/Contents/Resources/lib/python2.7/idlelib/PyShell.py", line 1507, in main
   root = Tk(className="Idle")
 File "Tkinter.pyc", line 1745, in __init__
_tkinter.TclError: Can't find a usable init.tcl in the following directories:
   /Users/demian/Desktop/TVB_Distribution/tvb.app/Contents/Frameworks/Tcl.framework/Versions/8.5/Resources/Scripts /opt/local/lib/tcl8.5 /Users/demian/Desktop/TVB_Distribution/tvb.app/Contents/lib/tcl8.5 /Users/demian/Desktop/TVB_Distribution/tvb.app/lib/tcl8.5 /Users/demian/Desktop/TVB_Distribution/tvb.app/Contents/library /Users/demian/Desktop/TVB_Distribution/tvb.app/library /Users/demian/Desktop/TVB_Distribution/tvb.app/tcl8.5.12/library /Users/demian/Desktop/TVB_Distribution/tcl8.5.12/library

/Users/demian/Desktop/TVB_Distribution/tvb.app/Contents/Frameworks/Tcl.framework/Versions/8.5/Resources/Scripts/init.tcl: version conflict for package "Tcl": have 8.5.12, need exactly 8.5.11
version conflict for package "Tcl": have 8.5.12, need exactly 8.5.11
   while executing
"package require -exact Tcl 8.5.11"
   (file "/Users/demian/Desktop/TVB_Distribution/tvb.app/Contents/Frameworks/Tcl.framework/Versions/8.5/Resources/Scripts/init.tcl" line 18)
   invoked from within
"source /Users/demian/Desktop/TVB_Distribution/tvb.app/Contents/Frameworks/Tcl.framework/Versions/8.5/Resources/Scripts/init.tcl"
   ("uplevel" body line 1)
   invoked from within
"uplevel #0 [list source $tclfile]"


This probably means that Tcl wasn't installed properly.

demian.battaglia

unread,
Sep 3, 2013, 12:31:00 PM9/3/13
to tvb-...@googlegroups.com
Problem fixed. It was due to using the shipped version of Python and ActiveTCL on the Mac OSX 10.8 installation and it is a well-documented bug in the Mac OSX python developer's community. Troubleshooting steps:

1) I upgraded first my Active TCL to the 8.5.14.0 version (download page: http://www.activestate.com/activetcl/downloads)
2) I upgraded then my Python framework to the 2.7.5 version (download page http://www.python.org/download/releases/2.7.5/), latest production release of Python 2 (NB: TVB is not yet compatible with Python 3)

As discussed somewhere (http://www.python.org/download/mac/tcltk/) you must execute the two steps in the 1-2 order, or installing python (in the 64bit version) without having first upgraded Active TCL will not fix the bug (and will introduce many others).

For me it worked fine.

Marmaduke Woodman

unread,
Sep 3, 2013, 3:05:13 PM9/3/13
to tvb-...@googlegroups.com
Thanks for posting your solution !


--
You received this message because you are subscribed to the Google Groups "TVB Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tvb-users+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Lia Domide

unread,
Sep 4, 2013, 2:59:40 AM9/4/13
to tvb-...@googlegroups.com
Hi Demian,

Thank you for reporting this, and especially for taking the time and energy to find a work around it.
The solution proposed by you is not entirely in the spirit of TVB; as we are trying to not rely on external installed Python & dep., but rather provide as much as possible in TVB package.

I've wrapped a new package for TVB Mac OS x32: version 1.0.7, revision 1088. You can find it on our web-site (although in your new setup it should not make a difference).

Best Regards,
Lia.

Ing. Lia Domide
Director of Development at Codemart
Str. Petofi Sandor, Nr. 13, Ap. 4
Cluj Napoca, 400610, 
Romania
Tel: +40 (364) 401158

Reply all
Reply to author
Forward
0 new messages