Opened 6 years ago

Closed 6 years ago

#3076 closed defect (not a bug)

run .cxc file

Reported by: perth2000.geo@… Owned by: pett
Priority: normal Milestone:
Component: Input/Output Version:
Keywords: Cc:
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

The following bug report has been submitted:
Platform:        Darwin-17.7.0-x86_64-i386-64bit
ChimeraX Version: 0.91 (2019-10-08)
Description
(Describe the actions that caused this problem to occur here)

Try to execute *.cxc file on command line e.g below

run movie.cxc

error produced below.......

FileNotFoundError: [Errno 2] No such file or directory: 'movie.cxc'

File "/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/chimerax/core/commands/runscript.py", line 28, in runscript
open_python_script(session, open(script_file, 'rb'), script_file, argv=argv)


Log:
UCSF ChimeraX version: 0.91 (2019-10-08)  
© 2016-2019 Regents of the University of California. All rights reserved.  
How to cite UCSF ChimeraX  

> open "/Users/oldimac/Desktop/1ACE2_SpikeProtein/SARS-
CoV-2_ACE2/6y2g_Mpr_O6K_Mar 4, 2020/6y2gMovie.cxs"

opened ChimeraX session  

Unknown command: movie.cxc  

> runscript movie.cxc

Traceback (most recent call last):  
File
"/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/cmd_line/tool.py", line 254, in execute  
cmd.run(cmd_text)  
File
"/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/core/commands/cli.py", line 2837, in run  
result = ci.function(session, **kw_args)  
File
"/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/core/commands/runscript.py", line 28, in runscript  
open_python_script(session, open(script_file, 'rb'), script_file, argv=argv)  
FileNotFoundError: [Errno 2] No such file or directory: 'movie.cxc'  
  
FileNotFoundError: [Errno 2] No such file or directory: 'movie.cxc'  
  
File
"/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/core/commands/runscript.py", line 28, in runscript  
open_python_script(session, open(script_file, 'rb'), script_file, argv=argv)  
  
See log for complete Python traceback.  
  

> runscript movie.cxc

Traceback (most recent call last):  
File
"/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/cmd_line/tool.py", line 254, in execute  
cmd.run(cmd_text)  
File
"/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/core/commands/cli.py", line 2837, in run  
result = ci.function(session, **kw_args)  
File
"/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/core/commands/runscript.py", line 28, in runscript  
open_python_script(session, open(script_file, 'rb'), script_file, argv=argv)  
FileNotFoundError: [Errno 2] No such file or directory: 'movie.cxc'  
  
FileNotFoundError: [Errno 2] No such file or directory: 'movie.cxc'  
  
File
"/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/core/commands/runscript.py", line 28, in runscript  
open_python_script(session, open(script_file, 'rb'), script_file, argv=argv)  
  
See log for complete Python traceback.  
  




OpenGL version: 4.1 NVIDIA-10.32.0 355.11.10.10.40.102
OpenGL renderer: NVIDIA GeForce GTX 660M OpenGL Engine
OpenGL vendor: NVIDIA Corporation

Change History (2)

comment:1 by pett, 6 years ago

Component: UnassignedInput/Output
Owner: set to pett
Platform: all
Project: ChimeraX
Status: newaccepted
Summary: ChimeraX bug report submissionrun .cxc file

comment:2 by pett, 6 years ago

Resolution: not a bug
Status: acceptedclosed

Hi,

The 'runscript' command is for executing Python scripts, not ChimeraX command scripts. Just use the 'open' command for .cxc files (e.g. "open movie.cxc").

--Eric

Eric Pettersen
UCSF Computer Graphics Lab

Note: See TracTickets for help on using tickets.