Skip to content

EP-Launch is not starting on macOS #11046

@lymereJ

Description

@lymereJ

Issue overview

Running energyplus auxiliary eplaunch on a M4 MacBook produces the following error:

Traceback (most recent call last):
  File "<string>", line 9, in <module>
  File "/Applications/EnergyPlus-24-2-0/python_lib/eplaunch/tk_runner.py", line 5, in main_gui
    EPLaunchWindow().run()
    ^^^^^^^^^^^^^^^^
  File "/Applications/EnergyPlus-24-2-0/python_lib/eplaunch/interface/frame_main.py", line 50, in __init__
    super().__init__(className=NAME)
  File "/Applications/EnergyPlus-24-2-0/python_lib/tkinter/__init__.py", line 2345, in __init__
    self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_tkinter.TclError: Can't find a usable init.tcl in the following directories:
    /Applications/EnergyPlus-24-2-0/python_lib/ /opt/homebrew/Cellar/tcl-tk/8.6.15/lib/tcl8.6 /Users/lero023/.pyenv/lib/tcl8.6 /Users/lero023/lib/tcl8.6 /Users/lero023/.pyenv/library /Users/lero023/library /Users/lero023/tcl8.6.15/library /Users/tcl8.6.15/library



This probably means that Tcl wasn't installed properly.

libc++abi: terminating due to uncaught exception of type std::runtime_error: Error executing Python code

And

cd /Applications/EnergyPlus-25-1-0
find python_lib -name "_tk*"
find python_lib -name "libt*"
otool -L python_lib/lib-dynload/_tk*

Produces

python_lib/lib-dynload/_tkinter.cpython-312-darwin.so
python_lib/lib-dynload/libtcl8.6.dylib
python_lib/lib-dynload/libtk8.6.dylib
python_lib/lib-dynload/_tkinter.cpython-312-darwin.so:
	@loader_path/libtcl8.6.dylib (compatibility version 8.6.0, current version 8.6.16)
	@loader_path/libtk8.6.dylib (compatibility version 8.6.0, current version 8.6.16)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1345.120.2)

Operating System (Multiple choices)

MacOS

Operating System Version

Sequoia

Version of EnergyPlus

25.1

Unmethours link or helpdesk ticket number

N/A

Defect file

No response

Metadata

Metadata

Assignees

Labels

AuxiliaryToolRelated to an auxiliary tool, not EnergyPlus itself (readvars, preprocessor, ep-launch, etc.)DefectIncludes code to repair a defect in EnergyPlusDeveloper IssueRelated to cmake, packaging, installers, or developer tooling (CI, etc)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions