https://github.com/galaxyproject/galaxy
Revision 44903311b59632f6fdd105a99facbf3e435ecf85 authored by mvdbeek on 08 October 2023, 13:35:44 UTC, committed by mvdbeek on 08 October 2023, 13:37:07 UTC
Fixes: ``` Traceback (most recent call last): File "/cvmfs/test.galaxyproject.org/galaxy/lib/galaxy/webapps/galaxy/buildapp.py", line 59, in app_pair app = galaxy.app.UniverseApplication(global_conf=global_conf, is_webapp=True, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/cvmfs/test.galaxyproject.org/galaxy/lib/galaxy/app.py", line 691, in __init__ self._configure_toolbox() File "/cvmfs/test.galaxyproject.org/galaxy/lib/galaxy/app.py", line 309, in _configure_toolbox self._toolbox = tools.ToolBox(self.config.tool_configs, self.config.tool_path, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/cvmfs/test.galaxyproject.org/galaxy/lib/galaxy/tools/__init__.py", line 420, in __init__ super().__init__( File "/cvmfs/test.galaxyproject.org/galaxy/lib/galaxy/tool_util/toolbox/base.py", line 237, in __init__ self._load_tool_panel_views() File "/cvmfs/test.galaxyproject.org/galaxy/lib/galaxy/tool_util/toolbox/base.py", line 600, in _load_tool_panel_views self._tool_panel_view_rendered[key] = view.apply_view(self._integrated_tool_panel, registry) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/cvmfs/test.galaxyproject.org/galaxy/lib/galaxy/tool_util/toolbox/views/static.py", line 195, in apply_view return definition_with_items_to_panel(root_defintion, items=root_items) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/cvmfs/test.galaxyproject.org/galaxy/lib/galaxy/tool_util/toolbox/views/static.py", line 87, in definition_with_items_to_panel panel = definition_with_items_to_panel(section_def, allow_sections=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/cvmfs/test.galaxyproject.org/galaxy/lib/galaxy/tool_util/toolbox/views/static.py", line 142, in definition_with_items_to_panel tool = toolbox_registry.get_tool(tool_id) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/cvmfs/test.galaxyproject.org/galaxy/lib/galaxy/tool_util/toolbox/base.py", line 107, in get_tool return self.__toolbox.get_tool(tool_id) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/cvmfs/test.galaxyproject.org/galaxy/lib/galaxy/tool_util/toolbox/base.py", line 719, in get_tool tool_lineage = self._lineage_map.get(tool_id) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/cvmfs/test.galaxyproject.org/galaxy/lib/galaxy/tool_util/toolbox/lineages/factory.py", line 47, in get tool = self.app.toolbox._tools_by_id.get(tool_id) ^^^^^^^^^^^^^^^^ File "/cvmfs/test.galaxyproject.org/galaxy/lib/galaxy/app.py", line 351, in toolbox return self._toolbox ^^^^^^^^^^^^^ AttributeError: 'UniverseApplication' object has no attribute '_toolbox' ``` when attempting to apply a panel view that contains tools that aren't installed on a server.
1 parent 612f1d6
Tip revision: 44903311b59632f6fdd105a99facbf3e435ecf85 authored by mvdbeek on 08 October 2023, 13:35:44 UTC
Avoid AttributeError when accessing toolbox
Avoid AttributeError when accessing toolbox
Tip revision: 4490331
File | Mode | Size |
---|---|---|
.ci | ||
.circleci | ||
.github | ||
.vscode | ||
client | ||
config | ||
contrib | ||
cron | ||
database | ||
doc | ||
hooks | ||
lib | ||
packages | ||
scripts | ||
static | ||
templates | ||
test | ||
test-data | ||
tool-data | ||
tools | ||
.coveragerc | -rw-r--r-- | 78 bytes |
.dockerignore | -rw-r--r-- | 47 bytes |
.flake8 | -rw-r--r-- | 803 bytes |
.git-blame-ignore-revs | -rw-r--r-- | 432 bytes |
.gitattributes | -rw-r--r-- | 56 bytes |
.gitignore | -rw-r--r-- | 3.7 KB |
.gitpod.yml | -rw-r--r-- | 1.5 KB |
.isort.cfg | -rw-r--r-- | 388 bytes |
.k8s_ci.Dockerfile | -rw-r--r-- | 6.5 KB |
.pre-commit-config.yaml.sample | -rw-r--r-- | 1.4 KB |
.redocly.lint-ignore.yaml | -rw-r--r-- | 761 bytes |
.redocly.yaml | -rw-r--r-- | 94 bytes |
CITATION | -rw-r--r-- | 871 bytes |
CODE_OF_CONDUCT.md | -rw-r--r-- | 261 bytes |
CONTRIBUTING.md | -rw-r--r-- | 8.8 KB |
CONTRIBUTORS.md | -rw-r--r-- | 8.1 KB |
LICENSE.txt | -rw-r--r-- | 12.6 KB |
Makefile | -rw-r--r-- | 9.9 KB |
README.rst | -rw-r--r-- | 2.0 KB |
SECURITY.md | -rw-r--r-- | 3.8 KB |
check_model.sh | -rwxr-xr-x | 158 bytes |
extract_dataset_parts.sh | -rwxr-xr-x | 209 bytes |
manage_db.sh | -rwxr-xr-x | 350 bytes |
manage_toolshed_db.sh | -rwxr-xr-x | 355 bytes |
mypy.ini | -rw-r--r-- | 22.6 KB |
package.json | -rw-r--r-- | 764 bytes |
pyproject.toml | -rw-r--r-- | 4.5 KB |
pytest.ini | -rw-r--r-- | 2.5 KB |
requirements.txt | l--------- | 47 bytes |
rolling_restart.sh | -rwxr-xr-x | 69 bytes |
run.sh | -rwxr-xr-x | 1.4 KB |
run_reports.sh | -rwxr-xr-x | 1.4 KB |
run_tests.sh | -rwxr-xr-x | 26.0 KB |
run_tool_shed.sh | -rwxr-xr-x | 724 bytes |
tox.ini | -rw-r--r-- | 2.5 KB |
tsconfig.json | -rw-r--r-- | 45 bytes |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...