Opened 9 years ago

Closed 9 years ago

#404 closed defect (fixed)

ChimeraX fails to start if tool is missing

Reported by: Tom Goddard Owned by: Conrad Huang
Priority: major Milestone:
Component: Tool Shed Version:
Keywords: Cc: gregc@…
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

Trying to run any older version of ChimeraX fails because it does not find the "stl" tool which is apparently in some cache file and exists in newer ChimeraX versions.

$ ~/Desktop/ChimeraX\ old/ChimeraX\ July\ 20,\ 2016.app/Contents/MacOS/ChimeraX
ERROR: Traceback (most recent call last):

File "/Users/goddard/Desktop/ChimeraX old/ChimeraX July 20, 2016.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/chimerax/core/toolshed/init.py", line 1262, in initialize

f = self._get_module().initialize

File "/Users/goddard/Desktop/ChimeraX old/ChimeraX July 20, 2016.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/chimerax/core/toolshed/init.py", line 1287, in _get_module

m = importlib.import_module(self._module_name)

File "/Users/goddard/Desktop/ChimeraX old/ChimeraX July 20, 2016.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/importlib/init.py", line 126, in import_module

return _bootstrap._gcd_import(name[level:], package, level)

File "<frozen importlib._bootstrap>", line 986, in _gcd_import
File "<frozen importlib._bootstrap>", line 969, in _find_and_load
File "<frozen importlib._bootstrap>", line 956, in _find_and_load_unlocked

ImportError: No module named 'chimerax.stl'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "/Users/goddard/Desktop/ChimeraX old/ChimeraX July 20, 2016.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/runpy.py", line 170, in _run_module_as_main

"main", mod_spec)

File "/Users/goddard/Desktop/ChimeraX old/ChimeraX July 20, 2016.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/runpy.py", line 85, in _run_code

exec(code, run_globals)

File "/Users/goddard/Desktop/ChimeraX old/ChimeraX July 20, 2016.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/ChimeraX_main.py", line 548, in <module>

raise SystemExit(init(sys.argv))

File "/Users/goddard/Desktop/ChimeraX old/ChimeraX July 20, 2016.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/ChimeraX_main.py", line 387, in init

sess.toolshed.bootstrap_bundles(sess)

File "/Users/goddard/Desktop/ChimeraX old/ChimeraX July 20, 2016.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/chimerax/core/toolshed/init.py", line 498, in bootstrap_bundles

bi.initialize(session)

File "/Users/goddard/Desktop/ChimeraX old/ChimeraX July 20, 2016.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/chimerax/core/toolshed/init.py", line 1265, in initialize

% self.name)

chimerax.core.toolshed.ToolshedError: no initialize function found for bundle "stl"

Change History (1)

comment:1 by Conrad Huang, 9 years ago

Resolution: fixed
Status: newclosed

Fixed in 2c1b0ad. When bootstrapping, remove from session tools that fail to initialize.

Note: See TracTickets for help on using tickets.