Skip to content

Switching backends in matplotlib 3.3.0 fails #1792

@umesh-timalsina

Description

@umesh-timalsina

With exporting custom backend in matplotlib 3.3.0

src/plugins/GenerateJob/templates$  export MPLBACKEND=module://backend_deepforge
Python 3.7.6 | packaged by conda-forge | (default, Jun  1 2020, 18:57:50) 
[GCC 7.5.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib
>>> matplotlib.__version__
'3.3.0'
>>> from matplotlib import pyplot as plt
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/umesh/anaconda3/envs/deepforge/lib/python3.7/site-packages/matplotlib/pyplot.py", line 2319, in <module>
    switch_backend(rcParams["backend"])
  File "/home/umesh/anaconda3/envs/deepforge/lib/python3.7/site-packages/matplotlib/pyplot.py", line 283, in switch_backend
    matplotlib.backends.backend = newbackend
AttributeError: module 'matplotlib' has no attribute 'backends'
>>> 

When used with a pipeline execution:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugjob feedbackGraphs, images, and other feedback generated during job execution.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions