vterron / lemon

Differential photometry for humans (and astronomers)
64 stars 21 forks source link

AttributeError: get_content_extents - using juicer #73

Closed sameeresque closed 3 years ago

sameeresque commented 8 years ago

I have modified the juicer.rc file to meet our filter requirements, but still encounter this error, help sought

sameer@sameer-HP-406-G1-MT:~/Desktop/1HOpt/1H_optical_22dec/1H$ lemon
juicer curves.LEMONdB
Traceback (most recent call last):
  File
"/usr/local/lib/python2.7/dist-packages/matplotlib/backends/backend_gtk.py",
line 438, in expose_event
    self._render_figure(self._pixmap, w, h)
  File
"/usr/local/lib/python2.7/dist-packages/matplotlib/backends/backend_gtkagg.py",
line 86, in _render_figure
    FigureCanvasAgg.draw(self)
  File
"/usr/local/lib/python2.7/dist-packages/matplotlib/backends/backend_agg.py",
line 469, in draw
    self.renderer = self.get_renderer(cleared=True)
  File
"/usr/local/lib/python2.7/dist-packages/matplotlib/backends/backend_agg.py",
line 486, in get_renderer
    self.renderer = RendererAgg(w, h, self.figure.dpi)
  File
"/usr/local/lib/python2.7/dist-packages/matplotlib/backends/backend_agg.py",
line 99, in __init__
    self._update_methods()
  File
"/usr/local/lib/python2.7/dist-packages/matplotlib/backends/backend_agg.py",
line 134, in _update_methods
    self.get_content_extents = self._renderer.get_content_extents
AttributeError: get_content_extents
sameeresque commented 8 years ago

the image of the light curve cannot be seen in display windows probably due to the above error, I have latest matplotlib setup

vterron commented 8 years ago

This seems to be a very rare error, as even Google returns basically nothing. According to this comment on Stack Overflow, it may be caused by a problem with your matplotlib installation. How did you install it?

sameeresque commented 8 years ago

I had done the installation using apt-get ... sudo apt-get install python-matplotlib

vterron commented 8 years ago

Please try as told in the installation instructions. In your case:

sudo apt-get build-dep python-matplotlib python-scipy
sudo pip install "matplotlib>=1.2.1"
sameeresque commented 8 years ago

Did that but the same error, I had done the installation this way only not as I mentioned earlier

vterron commented 8 years ago

This seems to be a problem with the agg backend. Please try configuring your matplotlib installation to use a different backend via a matplotlibrc configuration file.

stale[bot] commented 4 years ago

Thanks for contributing to this issue. As it has been 180 days since the last activity, we'll be automatically closing the issue soon. This is often because the request was already solved in some way and it just wasn't updated or it's just no longer relevant. If that's not the case, please respond here within the next 30 days to keep it open. You can read more here: https://github.com/probot/stale#is-closing-stale-issues-really-a-good-idea.