Re: [GRASS-user] GRASS-7svn: Specify wxPython Version

2015-08-11 Thread Rich Shepard
On Sun, 2 Aug 2015, Glynn Clements wrote: As for why the wxPython check fails, I would assume that it's something specific to your particular installation. Glynn, I suspected that the issue is related to having two wxPython versions installed here. The build problem arose only after I

Re: [GRASS-user] GRASS-7svn: Specify wxPython Version

2015-08-02 Thread Glynn Clements
Rich Shepard wrote: This situation appears related to generating some html. Does this help indentifying the source of my problem? The manual page for a module normally involves running the module with the --html-description switch to get a list of its options. This ensures that the

Re: [GRASS-user] GRASS-7svn: Specify wxPython Version

2015-07-31 Thread Rich Shepard
On Thu, 30 Jul 2015, Rich Shepard wrote: There were no build errors from the svn checkout 3 weeks ago; no python or gtk packages updated since then. Actually, wxGTK was updated on 7 July. The last source updat and sucessful build was the previous Friday, 3 July. Yesterday I re-built and

Re: [GRASS-user] GRASS-7svn: Specify wxPython Version

2015-07-30 Thread Glynn Clements
Rich Shepard wrote: The wxPython version is handled by the CheckForWx() function in gui/wxpython/core/globalvar.py. The default is taken from the GRASS_WXVERSION environment variable if that's defined, otherwise it allows wxversion to select the version, subject to the constraint that

Re: [GRASS-user] GRASS-7svn: Specify wxPython Version

2015-07-30 Thread Rich Shepard
On Thu, 30 Jul 2015, Glynn Clements wrote: export GRASS_WXVERSION=2.8-gtk2-unicode Glynn, In ~/.bash_profile either: export GRASS_WXVERSION=wxGTK-2.8.12 or export GRASS_WXVERSION=wx-2.8-gtk2-unicode and sourced. Both result in same error in:

Re: [GRASS-user] GRASS-7svn: Specify wxPython Version

2015-07-29 Thread Rich Shepard
On Mon, 27 Jul 2015, Glynn Clements wrote: The wxPython version is handled by the CheckForWx() function in gui/wxpython/core/globalvar.py. The default is taken from the GRASS_WXVERSION environment variable if that's defined, otherwise it allows wxversion to select the version, subject to the

Re: [GRASS-user] GRASS-7svn: Specify wxPython Version

2015-07-27 Thread Rich Shepard
On Mon, 27 Jul 2015, Anna Petrášová wrote: There is nothing like that in the configure. Anna, I did not see any, either. I don't have currently any good advice, but you don't have to modify the code after every svn up if your local changes don't cause a conflict. If you think there is

Re: [GRASS-user] GRASS-7svn: Specify wxPython Version

2015-07-27 Thread Rich Shepard
On Mon, 27 Jul 2015, Rich Shepard wrote: Should I grep the source tree for 'import wx' or is there a single file in which it is imported? Sigh, As expected, it's in every .py file. I see an awk script in the near future. Thanks, Anna, Rich ___

Re: [GRASS-user] GRASS-7svn: Specify wxPython Version

2015-07-27 Thread Rich Shepard
On Mon, 27 Jul 2015, Carlos Grohmann wrote: maybe something like --with-wxwidgets=/usr/local/lib/wxPython-3.0.2.0/bin/wx-config \ during configure? Carlos, The configuration file contains the line --with-wxwidgets=/usr/bin/wx-config and wx-config has a way of specifying a version using a

Re: [GRASS-user] GRASS-7svn: Specify wxPython Version

2015-07-27 Thread Carlos Grohmann
Rich, If I just run wx-config, I get this: wx-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--release] [--version-full] [--list] [--selected-config] [--host=HOST] [--toolkit=TOOLKIT] [--universal[=yes|no]] [--unicode[=yes|no]] [--static[=yes|no]]

Re: [GRASS-user] GRASS-7svn: Specify wxPython Version

2015-07-27 Thread Carlos Grohmann
maybe something like --with-wxwidgets=/usr/local/lib/wxPython-3.0.2.0/bin/wx-config \ during configure? Carlos On Mon, Jul 27, 2015 at 9:55 AM, Rich Shepard rshep...@appl-ecosys.com wrote: On Mon, 27 Jul 2015, Rich Shepard wrote: Should I grep the source tree for 'import wx' or is there

Re: [GRASS-user] GRASS-7svn: Specify wxPython Version [SOLVED]

2015-07-27 Thread Rich Shepard
Anna, Carlos, et al.: Found the solution; perhaps this will help others in the future. Add these lines to wxgui.py: import wxversion wxversion.select('3.0.2.0') just above the line import wx That's the only place needed. I suspect that wxgui.py is not changed that often so this is easy

Re: [GRASS-user] GRASS-7svn: Specify wxPython Version

2015-07-27 Thread Rich Shepard
On Mon, 27 Jul 2015, Rich Shepard wrote: Found the solution; perhaps this will help others in the future. Add these lines to wxgui.py: Turns out to be a lot more complicated. It's always the tplot module that fails, so I added the wxversion.select() to all *.py modules. Makes no

Re: [GRASS-user] GRASS-7svn: Specify wxPython Version

2015-07-27 Thread Glynn Clements
Rich Shepard wrote: I have two wxPython versions installed: -2.8.12.1 for one application (I forget which one requires this version) and -3.0.2.0 for applications I develop. In an application here the main module needs include these lines: import wxversion

Re: [GRASS-user] GRASS-7svn: Specify wxPython Version

2015-07-27 Thread Rich Shepard
On Mon, 27 Jul 2015, Glynn Clements wrote: The wxPython version is handled by the CheckForWx() function in gui/wxpython/core/globalvar.py. The default is taken from the GRASS_WXVERSION environment variable if that's defined, otherwise it allows wxversion to select the version, subject to the

Re: [GRASS-user] GRASS-7svn: Specify wxPython Version

2015-07-27 Thread Anna Petrášová
On Jul 26, 2015 1:56 PM, Rich Shepard rshep...@appl-ecosys.com wrote: I have two wxPython versions installed: -2.8.12.1 for one application (I forget which one requires this version) and -3.0.2.0 for applications I develop. In an application here the main module needs include these

[GRASS-user] GRASS-7svn: Specify wxPython Version

2015-07-26 Thread Rich Shepard
I have two wxPython versions installed: -2.8.12.1 for one application (I forget which one requires this version) and -3.0.2.0 for applications I develop. In an application here the main module needs include these lines: import wxversion wxversion.select('3.0.2.0') import wx Because I