﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	blockedby	blocking	notify_on_close	platform	project
9032	[ChimeraX 1.6.1] The log class seems to be not functioning, in the generic linux 64-bit 9 May 2023 release.	Chung-Han.Tsai@…	Tom Goddard	"{{{
Hi Dear ChimeraX team,

I would like to report a bug that shows in my terminal when opening up the latest production release of ChimeraX 1.6.1 (Generic Linux 64-bit 9 May 2023)

Could you kindly help me look into this? The Log class seems to be not functioning. It wouldn't allow me to report bug from ChimeraX directly as well. The log windows is not showing.
Thank you so much.

Regards,
Chung-Han.
-

The terminal log is as the following, relating to the Log class:

[ct0651@gadi-analysis-01 chimerax-1.6.1]$ ls
ChimeraX  bin  chimerax  etc  include  lib  share
[ct0651@gadi-analysis-01 chimerax-1.6.1]$ ./chimerax
NOTE: available bundle cache has not been initialized yet
NOTE: Traceback (most recent call last):
  File ""/g/data/yt35/applications/viz/chimerax-1.6.1/lib/python3.9/site-
packages/chimerax/core/toolshed/info.py"", line 560, in start_tool
    ti = api._api_caller.start_tool(api, session, self, tool_info)
  File ""/g/data/yt35/applications/viz/chimerax-1.6.1/lib/python3.9/site-
packages/chimerax/core/toolshed/__init__.py"", line 1269, in start_tool
    return cls._get_func(api, ""start_tool"")(session, ti.name)
  File ""/g/data/yt35/applications/viz/chimerax-1.6.1/lib/python3.9/site-
packages/chimerax/log/__init__.py"", line 39, in start_tool
    return cmd.get_singleton(session, create=True)
  File ""/g/data/yt35/applications/viz/chimerax-1.6.1/lib/python3.9/site-
packages/chimerax/log/cmd.py"", line 19, in get_singleton
    return tools.get_singleton(session, Log, 'Log', create=create)
  File ""/g/data/yt35/applications/viz/chimerax-1.6.1/lib/python3.9/site-
packages/chimerax/core/tools.py"", line 193, in get_singleton
    tinst = tool_class(session, tool_name, **kw)
  File ""/g/data/yt35/applications/viz/chimerax-1.6.1/lib/python3.9/site-
packages/chimerax/log/tool.py"", line 161, in __init__
    from chimerax.ui.widgets import ChimeraXHtmlView
ImportError: cannot import name 'ChimeraXHtmlView' from 'chimerax.ui.widgets'
(/g/data/yt35/applications/viz/chimerax-1.6.1/lib/python3.9/site-
packages/chimerax/ui/widgets/__init__.py)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File ""/g/data/yt35/applications/viz/chimerax-1.6.1/lib/python3.9/site-
packages/chimerax/core/tools.py"", line 394, in start_tools
    bi.start_tool(session, tool_name)
  File ""/g/data/yt35/applications/viz/chimerax-1.6.1/lib/python3.9/site-
packages/chimerax/core/toolshed/info.py"", line 567, in start_tool
    raise ToolshedError(
chimerax.core.toolshed.ToolshedError: start_tool() failed for tool Log in
bundle ChimeraX-Log:
cannot import name 'ChimeraXHtmlView' from 'chimerax.ui.widgets'
(/g/data/yt35/applications/viz/chimerax-1.6.1/lib/python3.9/site-
packages/chimerax/ui/widgets/__init__.py)


BUG: Tool ""Log"" failed to start:
chimerax.core.toolshed.ToolshedError: start_tool() failed for tool Log in
bundle ChimeraX-Log:
cannot import name 'ChimeraXHtmlView' from 'chimerax.ui.widgets'
(/g/data/yt35/applications/viz/chimerax-1.6.1/lib/python3.9/site-
packages/chimerax/ui/widgets/__init__.py)

File ""/g/data/yt35/applications/viz/chimerax-1.6.1/lib/python3.9/site-
packages/chimerax/core/toolshed/info.py"", line 567, in start_tool
raise ToolshedError(

 _See log for complete Python traceback._


NOTE: UCSF ChimeraX version: 1.6.1 (2023-05-09)
NOTE: © 2016-2023 Regents of the University of California.  All rights reserved.
NOTE: [How to cite UCSF ChimeraX](cxcmd:help help:credits.html)

NOTE: Traceback (most recent call last):
  File ""/g/data/yt35/applications/viz/chimerax-1.6.1/lib/python3.9/site-
packages/chimerax/core/triggerset.py"", line 138, in invoke
    return self._func(self._name, data)
  File ""/g/data/yt35/applications/viz/chimerax-1.6.1/lib/python3.9/site-
packages/chimerax/bug_reporter/crash_report.py"", line 127, in
_delayed_register_log_recorder
    _register_log_recorder(session)
  File ""/g/data/yt35/applications/viz/chimerax-1.6.1/lib/python3.9/site-
packages/chimerax/bug_reporter/crash_report.py"", line 161, in
_register_log_recorder
    log.record_to_file(log_file)
  File ""/g/data/yt35/applications/viz/chimerax-1.6.1/lib/python3.9/site-
packages/chimerax/log/tool.py"", line 397, in record_to_file
    self._log_to_file(self.page_source)
AttributeError: 'Log' object has no attribute 'page_source'


BUG: Error processing trigger ""new frame"":
AttributeError: 'Log' object has no attribute 'page_source'

File ""/g/data/yt35/applications/viz/chimerax-1.6.1/lib/python3.9/site-
packages/chimerax/log/tool.py"", line 397, in record_to_file
self._log_to_file(self.page_source)

 _See log for complete Python traceback._


NOTE: Updating list of available bundles failed: Internal Server Error
NOTE: [toolshed cache](help:user/commands/toolshed.html#cache)

[toolshed cache](cxcmd:toolshed cache)

Toolshed cache: /jobfs/84242512.gadi-pbs/.cache/ChimeraX/1.6/toolshed
NOTE: [ui tool show](help:user/commands/ui.html#tool-show) Log

[ui tool show Log](cxcmd:ui tool show Log)







Chung-Han Tsai
Data Analytics Engineer
Centre for Advanced Microscopy
The Australian National University<https://www.anu.edu.au/> | Microscopy Australia<https://micro.org.au/>

The Australian National University
131 Garran Road, Acton ACT 2601, AUSTRALIA
T: + 61 2 6125 8917
chung-han.tsai@anu.edu.au<mailto:chung-han.tsai@anu.edu.au>
https://microscopy.anu.edu.au/

[cid:e52821a9-0385-4a67-aad1-9da0f699944c][cid:1b5fa1d9-c12f-49bb-b468-8de927a05a27]


}}}

[[Image(Outlook-mj220iu5.jpg)]]

[[Image(Outlook-1xk3hwt3.jpg)]]

[attachment:""ChimeraX_error_self.page_source.png""]
"	defect	assigned	normal		UI				Greg Couch Zach Pearson				all	ChimeraX
