Opened 9 years ago
Closed 9 years ago
#422 closed defect (wontfix)
Fails to start on Mac with spaces in install path
| Reported by: | Tom Goddard | Owned by: | Conrad Huang |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | Core | Version: | |
| Keywords: | Cc: | ||
| Blocked By: | Blocking: | ||
| Notify when closed: | Platform: | all | |
| Project: | ChimeraX |
Description
If there is a space in the path to the ChimeraX install location or in the app name (e.g. "ChimeraX Sep 9, 2016") then it fails to start with error:
$ ./ChimeraX\ Sep\ 9,2016.app/Contents/MacOS/ChimeraX
This application failed to start because it could not find or load the Qt platform plugin "cocoa"
in "".
Reinstalling the application may fix this problem.
Fatal Python error: Aborted
Current thread 0x00007fff7b9c4000 (most recent call first):
File "/Users/goddard/Desktop/ChimeraX old/ChimeraX Sep 9,2016.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/chimerax/core/ui/gui.py", line 105 in init
File "/Users/goddard/Desktop/ChimeraX old/ChimeraX Sep 9,2016.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/ChimeraX_main.py", line 343 in init
File "/Users/goddard/Desktop/ChimeraX old/ChimeraX Sep 9,2016.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/ChimeraX_main.py", line 532 in <module>
File "/Users/goddard/Desktop/ChimeraX old/ChimeraX Sep 9,2016.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/runpy.py", line 85 in _run_code
File "/Users/goddard/Desktop/ChimeraX old/ChimeraX Sep 9,2016.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/runpy.py", line 170 in _run_module_as_main
Abort trap: 6
It's actually the comma that causes this error. Whitespace in the directory name works fine.
The problem also occurs on Windows. I would be surprised if it does not happen on Linux. The problem seems to be somewhere in Python code, so the workaround is "don't do that." No commas allowed in your ChimeraX install path.