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

Mamba installation of chewBBACA v3.3.10 requires plotly v5 #214

Open
valzip opened this issue Mar 8, 2025 · 1 comment
Open

Mamba installation of chewBBACA v3.3.10 requires plotly v5 #214

valzip opened this issue Mar 8, 2025 · 1 comment
Assignees
Labels
Status: In Progress Has been assigned and is being worked on. Type: Bug

Comments

@valzip
Copy link

valzip commented Mar 8, 2025

Hi guys,
I was using new installation of chewBBACA v3.3.10 from bioconda.

During ExtractCgMLST step I got an error:

Traceback (most recent call last):
  File "/home/michal/.local/share/mamba/envs/chewie-env/bin/chewBBACA.py", line 10, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/michal/.local/share/mamba/envs/chewie-env/lib/python3.11/site-packages/CHEWBBACA/chewBBACA.py", line 1543, in main
    functions_info[process][1]()
  File "/home/michal/.local/share/mamba/envs/chewie-env/lib/python3.11/site-packages/CHEWBBACA/utils/process_datetime.py", line 146, in wrapper
    func(*args, **kwargs)
  File "/home/michal/.local/share/mamba/envs/chewie-env/lib/python3.11/site-packages/CHEWBBACA/chewBBACA.py", line 810, in run_determine_cgmlst
    determine_cgmlst.main(**vars(args))
  File "/home/michal/.local/share/mamba/envs/chewie-env/lib/python3.11/site-packages/CHEWBBACA/ExtractCgMLST/determine_cgmlst.py", line 365, in main
    fig.update_xaxes(range=[0, len(sorted_genomes)],
  File "/home/michal/.local/share/mamba/envs/chewie-env/lib/python3.11/site-packages/plotly/graph_objs/_figure.py", line 23146, in update_xaxes
    obj.update(patch, overwrite=overwrite, **kwargs)
  File "/home/michal/.local/share/mamba/envs/chewie-env/lib/python3.11/site-packages/plotly/basedatatypes.py", line 5123, in update
    BaseFigure._perform_update(self, kwargs, overwrite=overwrite)
  File "/home/michal/.local/share/mamba/envs/chewie-env/lib/python3.11/site-packages/plotly/basedatatypes.py", line 3882, in _perform_update
    raise err
ValueError: Invalid property specified for object of type plotly.graph_objs.layout.XAxis: 'titlefont'

Did you mean "tickfont"?

cgMLST profiles were calculated correctly, but .html plot with number of loci in cgMLST was missing.

With downgrade of plotly inside the environment everything went smoothly. New version of plotly is not compatible with given workflow and should be set explicitly.
mamba install conda-forge::plotly=5
My working version is plotly v5.24.1.
Cheers and thanks for the chewBBACA. 💓

@rfm-targa rfm-targa self-assigned this Mar 10, 2025
@rfm-targa
Copy link
Contributor

Hello @valzip,

Thank you for your interest and for reporting this issue. We checked this and Plotly v6 dropped support for the "titlefont" attribute. You can find the information about the changes included in Plotly v6 here. We will update the code to work with the latest Plotly version.
We'll let you know when it's done.
Thank you once again for reporting this!

Cheers,

Rafael

@rfm-targa rfm-targa added Type: Bug Status: In Progress Has been assigned and is being worked on. labels Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: In Progress Has been assigned and is being worked on. Type: Bug
Projects
None yet
Development

No branches or pull requests

2 participants