Unable to load scripts at startup

Hi Team, (I accidentally sent this to ChimeraX-bugs, copying it again here) I am trying to load some scripts at startup via the chimerax_custom_functions.cxc command file - open /Users/ps/.chimerax/chimerax_commands/chimerax_custom_functions.cxc in the log file I see the following message: still retrieving bundle list from toolshed open /Users/ps/.chimerax/chimerax_commands/chimerax_molmap_cube.py Error running startup command 'open /Users/ps/.chimerax/chimerax_commands/chimerax_custom_functions.cxc': Unknown command: open /Users/ps/.chimerax/chimerax_commands/chimerax_molmap_cube.py This is strange as simply running "open /Users/ps/.chimerax/chimerax_commands/chimerax_molmap_cube.py" in the ChimeraX command panel runs perfectly fine! the error occurs only when I try to run that line through the .cxc file. Am I missing something? or could this be a bug? I am on the stable release of ChimeraX (version 1.9). Best, Pranav -- Pranav Shah Postdoctoral Research Fellow. Division of Structural Biology, Wellcome Trust Centre for Human Genetics, University of Oxford, Roosevelt Drive, Oxford OX3 7BN, UK

You probably need to send your .cxc script for us to understand why it might be failing at startup. The error message is certainly strange since you used the "open" command to open the .cxc file so how can it say "Unknown command: open" when that script then tries to use the open command. Tom
On Feb 13, 2025, at 8:45 AM, Pranav Shah via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:
Hi Team, (I accidentally sent this to ChimeraX-bugs, copying it again here) I am trying to load some scripts at startup via the chimerax_custom_functions.cxc command file - open /Users/ps/.chimerax/chimerax_commands/chimerax_custom_functions.cxc
in the log file I see the following message:
still retrieving bundle list from toolshed open /Users/ps/.chimerax/chimerax_commands/chimerax_molmap_cube.py Error running startup command 'open /Users/ps/.chimerax/chimerax_commands/chimerax_custom_functions.cxc': Unknown command: open /Users/ps/.chimerax/chimerax_commands/chimerax_molmap_cube.py
This is strange as simply running "open /Users/ps/.chimerax/chimerax_commands/chimerax_molmap_cube.py" in the ChimeraX command panel runs perfectly fine! the error occurs only when I try to run that line through the .cxc file. Am I missing something? or could this be a bug? I am on the stable release of ChimeraX (version 1.9).
Best, Pranav -- Pranav Shah Postdoctoral Research Fellow.
Division of Structural Biology, Wellcome Trust Centre for Human Genetics, University of Oxford, Roosevelt Drive, Oxford OX3 7BN, UK
_______________________________________________ ChimeraX-users mailing list -- chimerax-users@cgl.ucsf.edu To unsubscribe send an email to chimerax-users-leave@cgl.ucsf.edu Archives: https://mail.cgl.ucsf.edu/mailman/archives/list/chimerax-users@cgl.ucsf.edu/

Hi Pranav, How did you create your .cxc file? Did you use an editor such as Word? If you are using a word processor, you need to make sure that when you save the file that it is being saved in plain ASCII format. Otherwise there may be invisible control characters in the file that may be causing this problem. --Eric Eric Pettersen UCSF Computer Graphics Lab
On Feb 13, 2025, at 10:48 AM, Tom Goddard via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:
You probably need to send your .cxc script for us to understand why it might be failing at startup. The error message is certainly strange since you used the "open" command to open the .cxc file so how can it say "Unknown command: open" when that script then tries to use the open command.
Tom
On Feb 13, 2025, at 8:45 AM, Pranav Shah via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:
Hi Team, (I accidentally sent this to ChimeraX-bugs, copying it again here) I am trying to load some scripts at startup via the chimerax_custom_functions.cxc command file - open /Users/ps/.chimerax/chimerax_commands/chimerax_custom_functions.cxc
in the log file I see the following message:
still retrieving bundle list from toolshed open /Users/ps/.chimerax/chimerax_commands/chimerax_molmap_cube.py Error running startup command 'open /Users/ps/.chimerax/chimerax_commands/chimerax_custom_functions.cxc': Unknown command: open /Users/ps/.chimerax/chimerax_commands/chimerax_molmap_cube.py
This is strange as simply running "open /Users/ps/.chimerax/chimerax_commands/chimerax_molmap_cube.py" in the ChimeraX command panel runs perfectly fine! the error occurs only when I try to run that line through the .cxc file. Am I missing something? or could this be a bug? I am on the stable release of ChimeraX (version 1.9).
Best, Pranav -- Pranav Shah Postdoctoral Research Fellow.
Division of Structural Biology, Wellcome Trust Centre for Human Genetics, University of Oxford, Roosevelt Drive, Oxford OX3 7BN, UK
_______________________________________________ ChimeraX-users mailing list -- chimerax-users@cgl.ucsf.edu To unsubscribe send an email to chimerax-users-leave@cgl.ucsf.edu Archives: https://mail.cgl.ucsf.edu/mailman/archives/list/chimerax-users@cgl.ucsf.edu/
_______________________________________________ ChimeraX-users mailing list -- chimerax-users@cgl.ucsf.edu To unsubscribe send an email to chimerax-users-leave@cgl.ucsf.edu Archives: https://mail.cgl.ucsf.edu/mailman/archives/list/chimerax-users@cgl.ucsf.edu/

Aha! That was it!!! Ran dos2unix on the cxc file and now things are working! Best, Pranav -- Pranav Shah Postdoctoral Research Fellow. Division of Structural Biology, Wellcome Trust Centre for Human Genetics, University of Oxford, Roosevelt Drive, Oxford OX3 7BN, UK On Thu, Feb 13, 2025 at 10:15 PM Eric Pettersen via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:
Hi Pranav, How did you create your .cxc file? Did you use an editor such as Word? If you are using a word processor, you need to make sure that when you save the file that it is being saved in plain ASCII format. Otherwise there may be invisible control characters in the file that may be causing this problem.
--Eric
Eric Pettersen UCSF Computer Graphics Lab
On Feb 13, 2025, at 10:48 AM, Tom Goddard via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:
You probably need to send your .cxc script for us to understand why it might be failing at startup. The error message is certainly strange since you used the "open" command to open the .cxc file so how can it say "Unknown command: open" when that script then tries to use the open command.
Tom
On Feb 13, 2025, at 8:45 AM, Pranav Shah via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:
Hi Team, (I accidentally sent this to ChimeraX-bugs, copying it again here) I am trying to load some scripts at startup via the chimerax_custom_functions.cxc command file - open /Users/ps/.chimerax/chimerax_commands/chimerax_custom_functions.cxc
in the log file I see the following message:
still retrieving bundle list from toolshed open /Users/ps/.chimerax/chimerax_commands/chimerax_molmap_cube.py Error running startup command 'open /Users/ps/.chimerax/chimerax_commands/chimerax_custom_functions.cxc': Unknown command: open /Users/ps/.chimerax/chimerax_commands/chimerax_molmap_cube.py
This is strange as simply running "open /Users/ps/.chimerax/chimerax_commands/chimerax_molmap_cube.py" in the ChimeraX command panel runs perfectly fine! the error occurs only when I try to run that line through the .cxc file. Am I missing something? or could this be a bug? I am on the stable release of ChimeraX (version 1.9).
Best, Pranav -- Pranav Shah Postdoctoral Research Fellow.
Division of Structural Biology, Wellcome Trust Centre for Human Genetics, University of Oxford, Roosevelt Drive, Oxford OX3 7BN, UK
_______________________________________________ ChimeraX-users mailing list -- chimerax-users@cgl.ucsf.edu To unsubscribe send an email to chimerax-users-leave@cgl.ucsf.edu Archives: https://mail.cgl.ucsf.edu/mailman/archives/list/chimerax-users@cgl.ucsf.edu/
_______________________________________________ ChimeraX-users mailing list -- chimerax-users@cgl.ucsf.edu To unsubscribe send an email to chimerax-users-leave@cgl.ucsf.edu Archives: https://mail.cgl.ucsf.edu/mailman/archives/list/chimerax-users@cgl.ucsf.edu/
_______________________________________________ ChimeraX-users mailing list -- chimerax-users@cgl.ucsf.edu To unsubscribe send an email to chimerax-users-leave@cgl.ucsf.edu Archives: https://mail.cgl.ucsf.edu/mailman/archives/list/chimerax-users@cgl.ucsf.edu/
participants (3)
-
Eric Pettersen
-
Pranav Shah
-
Tom Goddard