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

ImportError: cannot import name 'BrokenBarHCollection' from 'matplotlib.collections' #103

Open
Fougere87 opened this issue Oct 30, 2024 · 1 comment

Comments

@Fougere87
Copy link

Hi,

I tried to use coolbox but when importing the API, it throws this error:
ImportError: cannot import name 'BrokenBarHCollection' from 'matplotlib.collections'

Indeed BrokenBarHCollection is deprecated from matplotlib 3.7.0 (https://matplotlib.org/stable/api/prev_api_changes/api_changes_3.7.0.html#brokenbarhcollection-is-deprecated)

A way to avoid this without downgrading MPL ?

All the best and thank you for your work !

C.

@wmorgans
Copy link

I recently had this issue. Did you install with conda install -c bioconda coolbox?

I've gotten a working installation by doing the following.

  1. I installed the requirements in the environment.yml and requirements.txt to a clean conda env.
  2. I cloned the github repo git clone https://github.com/GangCaoLab/CoolBox.git
  3. installed using pip install -e . from within the cloned directory.

Following the instructions for installing from the docs on how to install from source code may also work.

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