Skip to content
This repository has been archived by the owner on Feb 2, 2022. It is now read-only.

Please do not use private module matplotlib._cntr #137

Open
tillea opened this issue Mar 25, 2021 · 10 comments
Open

Please do not use private module matplotlib._cntr #137

tillea opened this issue Mar 25, 2021 · 10 comments

Comments

@tillea
Copy link

tillea commented Mar 25, 2021

Hi,
the Debian Med package is maintaining the Debian package of dicompyler. Debian is currently in freeze and we received a bug report of a user and we need to fix this quickly if dicompyler should become part of the next release. The problem is not as the user assumed that matplotlib is missing but dicompyler is not compatible with recent matplotlib / Python3 version. The issue is in dicompyler/baseplugins/2dview.py which contains

from matplotlib import _cntr as cntr

which is illegal. Do you see any chance to fix this in some dedicated patch?
Thanks a lot, Andreas.

@bastula
Copy link
Owner

bastula commented Apr 10, 2021

Hi Andreas,

Hope you are doing well. It is possible to use the legacycontour package available here: https://github.com/matplotlib/legacycontour and follow the instructions by Alan listed here: #122. That should at least allow the program to function correctly with matplotlib >= 2.2.

Another option that is possible is to swap to measure_contours from scikit-image as outlined here: #122 (comment) but introduces a much heavier dependency. One of the goals of dicompyler is to be lightweight.

@tillea
Copy link
Author

tillea commented Apr 10, 2021 via email

@tillea
Copy link
Author

tillea commented Apr 26, 2021 via email

@jmartens
Copy link

jmartens commented Nov 2, 2021

I have proposed a fix in PR #142 for this referencing the original issue #122.

@tillea
Copy link
Author

tillea commented Nov 2, 2021 via email

@jmartens
Copy link

jmartens commented Nov 2, 2021 via email

@jmartens
Copy link

jmartens commented Nov 2, 2021

@tillea I am trying to understand the need for a package since this is just plain Python code requiring a few modules which could be easily installed using pip install -r requirements.
Perhaps you can elaborate on the need for a (Debian) package?

@tillea
Copy link
Author

tillea commented Nov 2, 2021 via email

@tillea
Copy link
Author

tillea commented Nov 2, 2021 via email

@jmartens
Copy link

jmartens commented Nov 2, 2021

Can you do some estimation when you might find a solution that can live without legacycontour? Kind regards, Andreas.

I can't and won't, as I am not dedicated to maintaining this. For me, it is done as I sometimes use dicompyler and the intention of my pull request is to get it running for me with (reasonably) acceptable packages and no errors.
From the issues and state of the PRs here it seems that maintenance of the project is not a high priority for others like @bastula as well.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants