Which matplotlib version for stable branch?

cellprofiler

#1

Hi,
which matplotlib version are you using for the stable version? I’ve seen the requirement >2.0.0 !=2.1.0. Since then I’ve tried multiple version but I always get the ‘module’ object has no attribute ‘fromarray’ error:

Traceback (most recent call last):
  File "/home/anja/CellProfiler/cellprofiler/gui/pipelinecontroller.py", line 2836, in do_step
    workspace.refresh()
  File "/home/anja/CellProfiler/cellprofiler/workspace.py", line 109, in refresh
    window.figure.canvas.draw()
  File "/home/anja/.local/lib/python2.7/site-packages/matplotlib/backends/backend_wxagg.py", line 37, in draw
    FigureCanvasAgg.draw(self)
  File "/home/anja/.local/lib/python2.7/site-packages/matplotlib/backends/backend_agg.py", line 431, in draw
    self.figure.draw(self.renderer)
  File "/home/anja/.local/lib/python2.7/site-packages/matplotlib/artist.py", line 55, in draw_wrapper
    return draw(artist, renderer, *args, **kwargs)
  File "/home/anja/.local/lib/python2.7/site-packages/matplotlib/figure.py", line 1475, in draw
    renderer, self, artists, self.suppressComposite)
  File "/home/anja/.local/lib/python2.7/site-packages/matplotlib/image.py", line 141, in _draw_list_compositing_images
    a.draw(renderer)
  File "/home/anja/.local/lib/python2.7/site-packages/matplotlib/artist.py", line 55, in draw_wrapper
    return draw(artist, renderer, *args, **kwargs)
  File "/home/anja/.local/lib/python2.7/site-packages/matplotlib/axes/_base.py", line 2607, in draw
    mimage._draw_list_compositing_images(renderer, self, artists)
  File "/home/anja/.local/lib/python2.7/site-packages/matplotlib/image.py", line 141, in _draw_list_compositing_images
    a.draw(renderer)
  File "/home/anja/CellProfiler/cellprofiler/gui/cpfigure.py", line 2011, in draw
    im = matplotlib.image.fromarray(image, 0)
AttributeError: 'module' object has no attribute 'fromarray'

And the master branch doesn’t seem to have a Cellprofiler.py anymore?
BTW I’m on Ubuntu 18.04

Cheers


#2

Hi Anja,

See my link in your other post. And yes, CP doesn’t use the CellProfiler.py file anymore.