Do not run ChimeraX as root.  The clue is the "BUG: NotADirectoryError: [Errno 20] Not a directory: '/do/not/run/as/root/.config/ChimeraX'".   I'll work on a better error message.

   -- Greg

On 12/21/23 11:31, Wen via ChimeraX-users wrote:
Dear Elaine,
I tried to install ChimeraX 1.7 on Red Hat Enterprise Linux 9.3.
yum install mesa-libOSMesa-21.3.4-2.el9.x86_64.rpm
yum install ucsf-chimerax-1.7-1.el9.x86_64.rpm

Everything went well. However, when I tried to launch ChimeraX, I met the following errors:
 [wenliu@localhost Downloads]# chimerax
QStandardPaths: runtime directory '/run/user/800' is not owned by UID 0, but a directory permissions 0700 owned by UID 800 GID 800
QStandardPaths: runtime directory '/run/user/800' is not owned by UID 0, but a directory permissions 0700 owned by UID 800 GID 800
NOTE: available bundle cache has not been initialized yet
NOTE: Traceback (most recent call last):  
  File "<frozen runpy>", line 198, in _run_module_as_main  
  File "<frozen runpy>", line 88, in _run_code  
  File "/usr/libexec/UCSF-ChimeraX/lib/python3.11/site-
packages/chimerax/core/__main__.py", line 1069, in <module>  
    exit_code = init(sys.argv)  
                ^^^^^^^^^^^^^^  
  File "/usr/libexec/UCSF-ChimeraX/lib/python3.11/site-
packages/chimerax/core/__main__.py", line 664, in init  
    toolshed.init(sess.logger, debug=sess.debug,  
  File "/usr/libexec/UCSF-ChimeraX/lib/python3.11/site-
packages/chimerax/core/toolshed/__init__.py", line 1389, in init  
    _toolshed = Toolshed(*args, **kw)  
                ^^^^^^^^^^^^^^^^^^^^^  
  File "/usr/libexec/UCSF-ChimeraX/lib/python3.11/site-
packages/chimerax/core/toolshed/__init__.py", line 396, in __init__  
    settings.toolshed_last_check = now.isoformat()  
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
  File "/usr/libexec/UCSF-ChimeraX/lib/python3.11/site-
packages/chimerax/core/settings.py", line 199, in __setattr__  
    ConfigFile.__setattr__(self, name, value)  
  File "/usr/libexec/UCSF-ChimeraX/lib/python3.11/site-
packages/chimerax/core/configfile.py", line 386, in __setattr__  
    ConfigFile.save(self)  
  File "/usr/libexec/UCSF-ChimeraX/lib/python3.11/site-
packages/chimerax/core/configfile.py", line 335, in save  
    with SaveTextFile(self._filename) as f:  
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
  File "/usr/libexec/UCSF-ChimeraX/lib/python3.11/site-
packages/chimerax/core/safesave.py", line 191, in __init__  
    SaveFile.__init__(self, filename, open=open_text, critical=critical)  
  File "/usr/libexec/UCSF-ChimeraX/lib/python3.11/site-
packages/chimerax/core/safesave.py", line 80, in __init__  
    raise OSError(errno.ENOTDIR, os.strerror(errno.ENOTDIR), save_dir)  
NotADirectoryError: [Errno 20] Not a directory:
'/do/not/run/as/root/.config/ChimeraX'  
 

BUG: NotADirectoryError: [Errno 20] Not a directory:
'/do/not/run/as/root/.config/ChimeraX'  
 
File "/usr/libexec/UCSF-ChimeraX/lib/python3.11/site-
packages/chimerax/core/safesave.py", line 80, in __init__  
raise OSError(errno.ENOTDIR, os.strerror(errno.ENOTDIR), save_dir)  
 
 _See log for complete Python traceback._ 

ChimeraX did not launch. Could you advise me on how to proceed?
Thanks in advance.
Wen Liu @ UCHC

_______________________________________________
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/