matplotlib cannot be upgraded due to error in basemap

Issue #574 closed
Joern Ungermann created an issue

basemap crashes with current matplotlib due to the use of the deprecated dedent function.

See

https://github.com/matplotlib/basemap/issues/495

Current version fixing solves this for now. Not a long term solution, obviously.

Comments (8)

  1. Reimar Bauer

    matplotlib 3.2.2 shows a change in cbook needed

    from matplotlib import cbook, figure
    

    ImportError: cannot import name 'cbook' from 'matplotlib' (unknown location)

  2. Reimar Bauer

    @Joern Ungermann can we go to 3.1.3 ?

    the 3.2.3 seems to need refactoring for cbook calls

  3. Joern Ungermann reporter

    I do not see the same problem for matplotlib 3.2.2

    I can import cbook.

    (base) joernu@TOWER:~$ python
    Python 3.7.7 (default, Mar 26 2020, 15:48:22) 
    [GCC 7.3.0] :: Anaconda, Inc. on linux
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import matplotlib.cbook
    >>> print(matplotlib.__version__)
    3.2.2
    

    matplotlib 3.3 also has a cbook. see https://matplotlib.org/3.3.1/api/cbook_api.html
    And

    (base) joernu@TOWER:~/src/gruppe_8/advisor_data$ ipython
    Python 3.7.7 (default, Mar 26 2020, 15:48:22) 
    Type 'copyright', 'credits' or 'license' for more information
    IPython 7.18.1 -- An enhanced Interactive Python. Type '?' for help.
    
    In [1]: import matplotlib.cbook
    
    In [2]: matplotlib.__version__
    Out[2]: '3.3.1'
    

    What is exactly the problem, and when and where does it occur?

  4. Joern Ungermann reporter

    The error was fixed in basemap, btw, so due to the original error the issue should be closeable, though. Due to the version number nightmare, upgrading an existing conda might not work reliably, though.

  5. Reimar Bauer

    I flipped the version in both direction, may be that made it look broken to me.

    starting msui and it shows a missing dependency.

  6. Log in to comment