Hello,
Can you please tell what is the status of wxPython 3 support in SVN GRASS6 and 7?
There is a problem on Arch Linux, which has just replaced 2.8 with 3.0, and GRASS 6.4.3 says "ERROR: wxGUI does not support wxPython 3.0.0.0 yet" to that.
Trunk G7 and 6 build OK against wxPython 3.0. On a very quick runtime check I noticed they frequently throw the following errors though:
G7:
/opt/grass70-svn/etc/gui/wxpython/gui_core/goutput.py:234: wxPyDeprecationWarning: Call to deprecated item 'SetVirtualSizeHints'.
self.outputSizer.SetVirtualSizeHints(self.panelOutput)
(wxgui.py:11592): Gtk-CRITICAL **: IA__gtk_widget_set_size_request: assertion 'width >= -1' failed
(wxgui.py:11592): Gtk-CRITICAL **: IA__gtk_widget_set_size_request: assertion 'height >= -1' failed
G6:
(wxgui.py:18284): Gtk-CRITICAL **: IA__gtk_widget_set_size_request: assertion 'width >= -1' failed
Maciek
--
Maciej Sieczka
http://www.sieczka.org
Hi Anna,
I will try a thing or 2 and report if needed.
I don't think I will have time for systematic tests though.
Maciek
W dniu 13.01.2014 00:31, Anna Petrášová pisze:
Hi,
On Sun, Jan 12, 2014 at 5:40 PM, Maciej Sieczka <msieczka@sieczka.org
<mailto:msieczka@sieczka.org>> wrote:
Hello,
Can you please tell what is the status of wxPython 3 support in SVN
GRASS6 and 7?
so far I tested grass 6 and 7 with wxpython 2.9 only. I am not sure
what's the difference between 2.9 and 3 but I hope it's not so big.
There is a problem on Arch Linux, which has just replaced 2.8 with
3.0, and GRASS 6.4.3 says "ERROR: wxGUI does not support wxPython
3.0.0.0 yet" to that.
GRASS 6.4.3 was not yet working with newer wxPython, that's why you get
the error. Current GRASS 6.4 branch should somehow work although I was
not able to test the whole wxGUI, so you can expect some glitches. I
would appreciate if you can test and report errors which can be related
to new wxPython.
Trunk G7 and 6 build OK against wxPython 3.0. On a very quick
runtime check I noticed they frequently throw the following errors
though:
G7:
/opt/grass70-svn/etc/gui/__wxpython/gui_core/goutput.py:__234:
wxPyDeprecationWarning: Call to deprecated item 'SetVirtualSizeHints'.
self.outputSizer.__SetVirtualSizeHints(self.__panelOutput)
Nothing critical, I didn't remove it yet because I'm not sure if it's
needed with wxPython 2.8.
(wxgui.py:11592): Gtk-CRITICAL **:
IA__gtk_widget_set_size___request: assertion 'width >= -1' failed
(wxgui.py:11592): Gtk-CRITICAL **:
IA__gtk_widget_set_size___request: assertion 'height >= -1' failed
G6:
(wxgui.py:18284): Gtk-CRITICAL **:
IA__gtk_widget_set_size___request: assertion 'width >= -1' failed
I think it doesn't really break anything (right?) and it's hard to track
what's the problem so I usually ignore it.
Thanks for reporting,
Anna
Maciek
--
Maciej Sieczka
http://www.sieczka.org
_________________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org <mailto:grass-dev@lists.osgeo.org>
http://lists.osgeo.org/__mailman/listinfo/grass-dev
<http://lists.osgeo.org/mailman/listinfo/grass-dev>
--
Maciej Sieczka
http://www.sieczka.org
On 13/01/14 00:31, Anna Petrášová wrote:
Hi,
On Sun, Jan 12, 2014 at 5:40 PM, Maciej Sieczka <msieczka@sieczka.org
<mailto:msieczka@sieczka.org>> wrote:
Hello,
Can you please tell what is the status of wxPython 3 support in SVN
GRASS6 and 7?
so far I tested grass 6 and 7 with wxpython 2.9 only. I am not sure
what's the difference between 2.9 and 3 but I hope it's not so big.
One important change I stumbled upon recently is that integer division results in float in python 3, while it resulted in integer in python 2. So any module that relies on integer division resulting in integer will need to be updated. I have no idea if such situations exist, though.
Moritz
One important change I stumbled upon recently is that integer division
results in float in python 3, while it resulted in integer in python 2. So
any module that relies on integer division resulting in integer will need
to be updated. I have no idea if such situations exist, though.
If it is as you say, you may mention that in some separate email thread
and not hidden here in a wxPython GUI thread.
Moritz
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev
Maciej Sieczka wrote:
so far I tested grass 6 and 7 with wxpython 2.9 only. I am not sure
what's the difference between 2.9 and 3 but I hope it's not so big.
The most fundamental change is that the "str" type is a Unicode
string. The "bytes" type implements byte strings.
This creates a great many opportunities for errors.
Simply reading data from one file and writing it to another (or to
stdout) may fail unless both files are opened in binary mode. The
standard streams (sys.stdin etc) are text (Unicode) streams.
Attempting to use a byte string where a unicode string is expected (or
vice versa) generates an error rather than performing an implicit
conversion.
Moritz Lennert wrote:
One important change I stumbled upon recently is that integer division
results in float in python 3, while it resulted in integer in python 2.
So any module that relies on integer division resulting in integer will
need to be updated. I have no idea if such situations exist, though.
The "//" (floor division) operator provides the historical behaviour.
This is available in all recent 2.x versions. Additionally, using
"from __future__ import division" will provide the 3.x behaviour (i.e.
dividing two integers with "/" will return a float).
--
Glynn Clements <glynn@gclements.plus.com>