problems in plotting with a new installation

19 views
Skip to first unread message

Monica Dapiaggi

unread,
Oct 22, 2018, 8:30:40 AM10/22/18
to diffpy-dev
Hi guys,
I have installed PDFgui and CMI on Ubuntu 18.04 (conda install) and almost everything worked fine.
My only problem is with plotting in pdfgui (see error message below) and in the fact that dataplot is not available. I suppose there is something wrong with my matplotlib, but I cannot work out what the problem is...
Can you help?

thanks,
Monica



Traceback (most recent call last):
  File "/home/mdapiaggi/anaconda2/lib/python2.7/site-packages/diffpy.pdfgui-1.1.1-py2.7.egg/diffpy/pdfgui/gui/errorwrapper.py", line 59, in _f
    return func(*args, **kwargs)
  File "/home/mdapiaggi/anaconda2/lib/python2.7/site-packages/diffpy.pdfgui-1.1.1-py2.7.egg/diffpy/pdfgui/gui/mainframe.py", line 2066, in onQuickPlot
    self.control.plot(xval, yvals, refs, shift=offset)
  File "/home/mdapiaggi/anaconda2/lib/python2.7/site-packages/diffpy.pdfgui-1.1.1-py2.7.egg/diffpy/pdfgui/control/pdfguicontrol.py", line 558, in plot
    plotter.plot(xItem, yItems, Ids, shift, dry)
  File "/home/mdapiaggi/anaconda2/lib/python2.7/site-packages/diffpy.pdfgui-1.1.1-py2.7.egg/diffpy/pdfgui/control/plotter.py", line 509, in plot
    self.window = ExtendedPlotFrame(self.controlCenter.gui)
  File "/home/mdapiaggi/anaconda2/lib/python2.7/site-packages/diffpy.pdfgui-1.1.1-py2.7.egg/diffpy/pdfgui/gui/extendedplotframe.py", line 133, in __init__
    self.toolbar = ExtendedToolbar(self.canvas)
  File "/home/mdapiaggi/anaconda2/lib/python2.7/site-packages/diffpy.pdfgui-1.1.1-py2.7.egg/diffpy/pdfgui/gui/extendedplotframe.py", line 51, in __init__
    _load_bitmap('stock_save_as.xpm'),
  File "/home/mdapiaggi/anaconda2/lib/python2.7/site-packages/matplotlib/backends/backend_wx.py", line 1353, in _load_bitmap
    raise IOError('Could not find bitmap file "%s"; dying' % bmpFilename)
IOError: Could not find bitmap file "/home/mdapiaggi/anaconda2/lib/python2.7/site-packages/matplotlib/mpl-data/images/stock_save_as.xpm"; dying

Pavol Juhas

unread,
Oct 23, 2018, 11:16:33 AM10/23/18
to diffp...@googlegroups.com
On Mon, Oct 22, 2018 at 8:30 AM Monica Dapiaggi <mdap...@gmail.com> wrote:
...
> I have installed PDFgui and CMI on Ubuntu 18.04 (conda install) and
> almost everything worked fine.
> My only problem is with plotting in pdfgui (see error message below)
> and in the fact that dataplot is not available. I suppose there is
> something wrong with my matplotlib, but I cannot work out what the
> problem is...
> Can you help?
...
> Traceback (most recent call last):
...
> IOError: Could not find bitmap file "/home/mdapiaggi/anaconda2/lib/python2.7/site-packages/matplotlib/mpl-data/images/stock_save_as.xpm"; dying

Hi Monica,

This happens because matplotlib 2 is not compatible with the
last release of PDFgui. This has been declared in package dependencies
for PDFgui 1.1.2, but Anaconda seems to pick an earlier version
1.1.1 to keep the last matplotlib.

For now the solution is to explicitly request PDFgui 1.1.2

conda install -c diffpy "diffpy.pdfgui>=1.1.2"

This should downgrade matplotlib to version 1.x, which
will restore plotting functions.

The incompatibility with matplotlib 2 has been fixed in
PDFgui code repository. I will try to prepare an update
release soon to fix the installation problem.

Best,

Pavol

Monica Dapiaggi

unread,
Oct 23, 2018, 11:50:54 AM10/23/18
to diffp...@googlegroups.com
Great, thanks Pavol!
M

---
Monica Dapiaggi
> --
> You received this message because you are subscribed to the Google Groups "diffpy-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to diffpy-dev+...@googlegroups.com.
> To post to this group, send email to diffp...@googlegroups.com.
> Visit this group at https://groups.google.com/group/diffpy-dev.
> For more options, visit https://groups.google.com/d/optout.



Reply all
Reply to author
Forward
0 new messages