[GRASS-dev] Some wxPython 3 issues
Vaclav Petras
wenzeslaus at gmail.com
Sun Aug 30 14:25:49 PDT 2015
My system is:
GRASS version:
7.1.svn
GRASS SVN revision:
66067M
Build date:
2015-08-29
Build platform:
x86_64-unknown-linux-gnu
GDAL:
1.11.2
PROJ.4:
4.8.0
GEOS:
3.4.2
SQLite:
3.8.7.4
Python:
2.7.9
wxPython:
3.0.1.1
Platform: Linux-3.19.0-26-generic-x86_64-with-Ubuntu-15.04-vivid
Splash is fine for me. Just the image.
GUI start error/warning messages:
/usr/share/themes/Lubuntu-default/gtk-2.0/apps/thunar.rc:55: error: invalid
string constant "thunar-statusbar", expected valid string constant
As using the GUI I get also:
(wxgui.py:7668): Gdk-CRITICAL **: IA__gdk_window_thaw_updates: assertion
'impl_window->update_freeze_count > 0' failed
I'm not sure how exactly you see the left-site tabs but mine are just fine.
Switch for 2D/3D/r/vdigit OK, although hidden when window is too small
(while toolbar buttons are nicely available under an arrow at the end of
the toolbar as a menu with descriptions such as printMap and saveFile).
Timeline tool opens without any error but not tested with data.
You have wxPython 3.0.2.0, I have 3.0.1.1. I'm using Lubuntu 15.04 which
means LXDE and Openbox. I don't know if this has some influence. Here are
my precise versions of wxPython and matplotlib (both inside and outside of
GRASS):
$ python -c "import wx; print(wx.version()); print(wx.__version__)"
3.0.1.1 gtk2 (classic)
3.0.1.1
$ python -c "import matplotlib; print(matplotlib.__version__)"
1.4.2
But unfortunately, I must say, I have a lot of other problems especially
with text inputs but the issues are similar to the ones in some of the
other applications, so that's probably something with the libraries which
should be solved.
On Sun, Aug 30, 2015 at 2:48 PM, Markus Neteler <neteler at osgeo.org> wrote:
> Hi,
>
> I have migrated my laptop from Fedora21 to F22 which comes with
> currently wxPython-3:
>
> GRASS version: 7.1.svn
> GRASS SVN revision: 66061M
> Build date: 2015-08-29
> Build platform: x86_64-unknown-linux-gnu
> GDAL: 1.11.2
> PROJ.4: 4.8.0
> GEOS: 3.4.2
> SQLite: 3.8.10.2
> Python: 2.7.10
> wxPython: 3.0.2.0
>
> There are a few issues with the wxPython 3 compatibility (I suppose):
>
> - GUI startup: the splash screen has a top window frame now including
> a minimizer (I think that was suppressed in wxpython2)
>
> - WHile the GUI comes up ok, the following warnings appear at startup time:
> (wxgui.py:9918): GLib-GObject-WARNING **: The property
> GtkImageMenuItem:use-stock is deprecated and shouldn't be used
> anymore. It will be removed in a future version.
> (wxgui.py:9918): GLib-GObject-WARNING **: The property
> GtkSettings:gtk-menu-images is deprecated and shouldn't be used
> anymore. It will be removed in a future version.
> (wxgui.py:9918): GLib-GObject-WARNING **: The property
> GtkImageMenuItem:accel-group is deprecated and shouldn't be used
> anymore. It will be removed in a future version.
> (wxgui.py:9918): GLib-GObject-WARNING **: The property
> GtkSettings:gtk-button-images is deprecated and shouldn't be used
> anymore. It will be removed in a future version.
> (wxgui.py:9918): GLib-GObject-WARNING **: The property
> GtkAlignment:xalign is deprecated and shouldn't be used anymore. It
> will be removed in a future version.
> (wxgui.py:9918): GLib-GObject-WARNING **: The property
> GtkAlignment:yalign is deprecated and shouldn't be used anymore. It
> will be removed in a future version.
>
> - the left-side tabs in the module windows do not have any
> shade/border to distinguish them (the tab titles look ok and they are
> clickable).
>
> - the 2D/3D/v-r-digitizer switch is twice as long as needed: in effect
> it is not visible unless the map display window is widened up
> significantly to make it appear.
>
> - temporal: the graphical representation opens but then gives this error:
>
> Traceback (most recent call last):
> File "/home/neteler/software/grass71/dist.x86_64-unknown-
> linux-gnu/gui/wxpython/timeline/frame.py", line 354, in
> OnRedraw
>
> self._redraw()
> File "/home/neteler/software/grass71/dist.x86_64-unknown-
> linux-gnu/gui/wxpython/timeline/frame.py", line 366, in
> _redraw
>
> self._draw2dFigure()
> File "/home/neteler/software/grass71/dist.x86_64-unknown-
> linux-gnu/gui/wxpython/timeline/frame.py", line 336, in
> _draw2dFigure
>
> self.canvas.draw()
> File "/usr/lib64/python2.7/site-
> packages/matplotlib/backends/backend_wxagg.py", line 46, in
> draw
>
> FigureCanvasAgg.draw(self)
> File "/usr/lib64/python2.7/site-
> packages/matplotlib/backends/backend_agg.py", line 469, in
> draw
>
> self.figure.draw(self.renderer)
> File "/usr/lib64/python2.7/site-
> packages/matplotlib/artist.py", line 59, in draw_wrapper
>
> draw(artist, renderer, *args, **kwargs)
> File "/usr/lib64/python2.7/site-
> packages/matplotlib/figure.py", line 1085, in draw
>
> func(*args)
> File "/usr/lib64/python2.7/site-
> packages/matplotlib/artist.py", line 59, in draw_wrapper
>
> draw(artist, renderer, *args, **kwargs)
> File "/usr/lib64/python2.7/site-
> packages/matplotlib/axes/_base.py", line 2110, in draw
>
> a.draw(renderer)
> File "/usr/lib64/python2.7/site-
> packages/matplotlib/artist.py", line 59, in draw_wrapper
>
> draw(artist, renderer, *args, **kwargs)
> File "/usr/lib64/python2.7/site-
> packages/matplotlib/axis.py", line 1114, in draw
>
> ticks_to_draw = self._update_ticks(renderer)
> File "/usr/lib64/python2.7/site-
> packages/matplotlib/axis.py", line 957, in _update_ticks
>
> tick_tups = [t for t in self.iter_ticks()]
> File "/usr/lib64/python2.7/site-
> packages/matplotlib/axis.py", line 901, in iter_ticks
>
> majorLocs = self.major.locator()
> File "/usr/lib64/python2.7/site-
> packages/matplotlib/dates.py", line 866, in __call__
>
> self.refresh()
> File "/usr/lib64/python2.7/site-
> packages/matplotlib/dates.py", line 883, in refresh
>
> dmin, dmax = self.viewlim_to_dt()
> File "/usr/lib64/python2.7/site-
> packages/matplotlib/dates.py", line 627, in viewlim_to_dt
>
> return num2date(vmin, self.tz), num2date(vmax, self.tz)
> File "/usr/lib64/python2.7/site-
> packages/matplotlib/dates.py", line 345, in num2date
>
> return _from_ordinalf(x, tz)
> File "/usr/lib64/python2.7/site-
> packages/matplotlib/dates.py", line 225, in _from_ordinalf
>
> dt = datetime.datetime.fromordinal(ix)
> ValueError
> :
> ordinal must be >= 1
>
> Let me know which of this I shall report as tickets. Unfortunately I
> don't know how to fix these issues.
>
> Markus
> _______________________________________________
> grass-dev mailing list
> grass-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20150830/f60a3ce4/attachment.html>
More information about the grass-dev
mailing list