Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Asterisk unpacking in numpy array indexing requires ChimeraX 1.7 which uses Python 3.11 #20

Open
RodenLuo opened this issue May 12, 2024 · 0 comments

Comments

@RodenLuo
Copy link
Collaborator

With ChimeraX 1.6.1, the following error shows up. The line causing the problem is probably already not in use. I need to check further to see if we can remove or change it to have DiffFit running on v1.6.

Traceback (most recent call last):
  File "C:\Program Files\ChimeraX\bin\lib\site-packages\chimerax\core\toolshed\info.py", line 560, in start_tool
    ti = api._api_caller.start_tool(api, session, self, tool_info)
  File "C:\Program Files\ChimeraX\bin\lib\site-packages\chimerax\core\toolshed\__init__.py", line 1328, in start_tool
    return cls._get_func(api, "start_tool")(session, bi, ti)
  File "C:\Users\jiad\AppData\Local\UCSF\ChimeraX\1.6\site-packages\chimerax\difffit\__init__.py", line 29, in start_tool
    from . import tool
  File "C:\Users\jiad\AppData\Local\UCSF\ChimeraX\1.6\site-packages\chimerax\difffit\tool.py", line 26, in <module>
    from .parse_log import look_at_record, look_at_cluster, look_at_MQS_idx, animate_MQS, animate_MQS_2
  File "C:\Users\jiad\AppData\Local\UCSF\ChimeraX\1.6\site-packages\chimerax\difffit\parse_log.py", line 202
    shift = e_sqd_log[*MQS, iter_idx][0:3]
                          ^
SyntaxError: invalid syntax

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Program Files\ChimeraX\bin\lib\site-packages\chimerax\ui\gui.py", line 1656, in <lambda>
    run(ses, "ui tool show %s" % StringArg.unparse(tool_name)))
  File "C:\Program Files\ChimeraX\bin\lib\site-packages\chimerax\core\commands\run.py", line 38, in run
    results = command.run(text, log=log, return_json=return_json)
  File "C:\Program Files\ChimeraX\bin\lib\site-packages\chimerax\core\commands\cli.py", line 2897, in run
    result = ci.function(session, **kw_args)
  File "C:\Program Files\ChimeraX\bin\lib\site-packages\chimerax\ui\cmd.py", line 219, in ui_tool_show
    bi.start_tool(session, name)
  File "C:\Program Files\ChimeraX\bin\lib\site-packages\chimerax\core\toolshed\info.py", line 567, in start_tool
    raise ToolshedError(
chimerax.core.toolshed.ToolshedError: start_tool() failed for tool DiffFit in bundle DiffFitViewerTool:
invalid syntax (parse_log.py, line 202)

chimerax.core.toolshed.ToolshedError: start_tool() failed for tool DiffFit in bundle DiffFitViewerTool:
invalid syntax (parse_log.py, line 202)

File "C:\Program Files\ChimeraX\bin\lib\site-packages\chimerax\core\toolshed\info.py", line 567, in start_tool
raise ToolshedError(

See log for complete Python traceback.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant