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

AttributeError: unexpected attribute 'names' to HoverTool, similar attributes are name #55

Closed
sherlyn99 opened this issue Nov 30, 2023 · 0 comments

Comments

@sherlyn99
Copy link

sherlyn99 commented Nov 30, 2023

the snakemake run got stuck after 115/152 jobs done with the following error (see below). I am not familiar with Hoover Tool but the error seems to suggest that it takes name instead of names(?) Could you help looking into this, thank you!

Activating conda environment: .snakemake/conda/19fe2a2a4b9842ba47b6f7aa7be3b1e4_
Activating conda environment: .snakemake/conda/19fe2a2a4b9842ba47b6f7aa7be3b1e4_
[Wed Nov 29 19:05:36 2023]
Finished job 19.
115 of 152 steps (76%) done
Select jobs to execute...

[Wed Nov 29 19:05:37 2023]
rule plot_rank_comparison:
    input: results/my_gutb/concatenated_differentials.tsv
    output: figures/my_gutb/rank_comparisons.html
    log: log/my_gutb/plot_rank_comparison.log
    jobid: 29
    reason: Missing output files: figures/my_gutb/rank_comparisons.html; Input files updated by another job: results/my_gutb/concatenated_differentials.tsv
    wildcards: dataset=my_gutb
    resources: tmpdir=/var/folders/p3/2jjw49sd6jz7zxhgh3c4q3m40000gp/T

Activating conda environment: .snakemake/conda/19fe2a2a4b9842ba47b6f7aa7be3b1e4_
Activating conda environment: .snakemake/conda/19fe2a2a4b9842ba47b6f7aa7be3b1e4_
Traceback (most recent call last):
  File "/Users/y1weng/Downloads/20231129_qadabra_gutb/mi04t12_qadabra_out/.snakemake/scripts/tmpmvh3_enj.plot_rank_comparison.py", line 52, in <module>
    hover = HoverTool(mode="mouse", names=["points"], attachment="below")
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/y1weng/Downloads/20231129_qadabra_gutb/mi04t12_qadabra_out/.snakemake/conda/19fe2a2a4b9842ba47b6f7aa7be3b1e4_/lib/python3.11/site-packages/bokeh/models/tools.py", line 1266, in __init__
    super().__init__(*args, **kwargs)
  File "/Users/y1weng/Downloads/20231129_qadabra_gutb/mi04t12_qadabra_out/.snakemake/conda/19fe2a2a4b9842ba47b6f7aa7be3b1e4_/lib/python3.11/site-packages/bokeh/models/tools.py", line 345, in __init__
    super().__init__(*args, **kwargs)
  File "/Users/y1weng/Downloads/20231129_qadabra_gutb/mi04t12_qadabra_out/.snakemake/conda/19fe2a2a4b9842ba47b6f7aa7be3b1e4_/lib/python3.11/site-packages/bokeh/models/tools.py", line 255, in __init__
    super().__init__(*args, **kwargs)
  File "/Users/y1weng/Downloads/20231129_qadabra_gutb/mi04t12_qadabra_out/.snakemake/conda/19fe2a2a4b9842ba47b6f7aa7be3b1e4_/lib/python3.11/site-packages/bokeh/models/tools.py", line 180, in __init__
    super().__init__(*args, **kwargs)
  File "/Users/y1weng/Downloads/20231129_qadabra_gutb/mi04t12_qadabra_out/.snakemake/conda/19fe2a2a4b9842ba47b6f7aa7be3b1e4_/lib/python3.11/site-packages/bokeh/model/model.py", line 110, in __init__
    super().__init__(**kwargs)
  File "/Users/y1weng/Downloads/20231129_qadabra_gutb/mi04t12_qadabra_out/.snakemake/conda/19fe2a2a4b9842ba47b6f7aa7be3b1e4_/lib/python3.11/site-packages/bokeh/core/has_props.py", line 302, in __init__
    setattr(self, name, value)
  File "/Users/y1weng/Downloads/20231129_qadabra_gutb/mi04t12_qadabra_out/.snakemake/conda/19fe2a2a4b9842ba47b6f7aa7be3b1e4_/lib/python3.11/site-packages/bokeh/core/has_props.py", line 340, in __setattr__
    self._raise_attribute_error_with_matches(name, properties)
  File "/Users/y1weng/Downloads/20231129_qadabra_gutb/mi04t12_qadabra_out/.snakemake/conda/19fe2a2a4b9842ba47b6f7aa7be3b1e4_/lib/python3.11/site-packages/bokeh/core/has_props.py", line 375, in _raise_attribute_error_with_matches
    raise AttributeError(f"unexpected attribute {name!r} to {self.__class__.__name__}, {text} attributes are {nice_join(matches)}")
AttributeError: unexpected attribute 'names' to HoverTool, similar attributes are name
[Wed Nov 29 19:05:39 2023]
Error in rule plot_rank_comparison:
    jobid: 29
    input: results/my_gutb/concatenated_differentials.tsv
    output: figures/my_gutb/rank_comparisons.html
    log: log/my_gutb/plot_rank_comparison.log (check log file(s) for error details)
    conda-env: /Users/y1weng/Downloads/20231129_qadabra_gutb/mi04t12_qadabra_out/.snakemake/conda/19fe2a2a4b9842ba47b6f7aa7be3b1e4_

RuleException:
CalledProcessError in file /Users/y1weng/miniconda3/envs/snakemake/lib/python3.11/site-packages/qadabra/workflow/rules/visualization.smk, line 149:
Command 'source /Users/y1weng/miniconda3/bin/activate '/Users/y1weng/Downloads/20231129_qadabra_gutb/mi04t12_qadabra_out/.snakemake/conda/19fe2a2a4b9842ba47b6f7aa7be3b1e4_'; set -euo pipefail;  python /Users/y1weng/Downloads/20231129_qadabra_gutb/mi04t12_qadabra_out/.snakemake/scripts/tmpmvh3_enj.plot_rank_comparison.py' returned non-zero exit status 1.
  File "/Users/y1weng/miniconda3/envs/snakemake/lib/python3.11/site-packages/qadabra/workflow/rules/visualization.smk", line 149, in __rule_plot_rank_comparison
  File "/Users/y1weng/miniconda3/envs/snakemake/lib/python3.11/concurrent/futures/thread.py", line 58, in run
Shutting down, this might take some time.
Exiting because a job execution failed. Look above for error message
Complete log: .snakemake/log/2023-11-29T185655.958966.snakemake.log
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

2 participants