[GRASS-user] Compile and install 6.4.2RC2

Hi,

2011/12/28 Aldo Clerici <aldo.clerici@unipr.it>:

ERROR: wxGUI requires wxPython. No module named wxversion

Error in GUI startup. If necessary, please

report this error to the GRASS developers.

Switching to text mode now.

Hit RETURN to continue...

Where did I go wrong?

you need to install package which contains `wxversion`. On Debian
GNU/Linux it's eg. `python-wxversion`.

Martin

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

Aldo,

On Wed, Dec 28, 2011 at 1:16 PM, Martin Landa <landa.martin@gmail.com> wrote:

2011/12/28 Aldo Clerici <aldo.clerici@unipr.it>:

ERROR: wxGUI requires wxPython. No module named wxversion

...

Where did I go wrong?

you need to install package which contains `wxversion`. On Debian
GNU/Linux it's eg. `python-wxversion`.

please see also
http://grass.osgeo.org/wiki/Compile_and_Install#Fedora

Best
Markus

Thanks to Martin and Markus for the quick answers.
As I don't know where is the package which contains `wxversion` on Fedora, I
followed the Markus suggestions executing step by step what's in 'Compile
and Install', hoping it includes the installing of the requested package.

First:
yum install proj-devel libjpeg-devel gdal-devel sqlite-devel ffmpeg-devel
mesa-libGL-devel mesa-libGLU-devel libXmu-devel tcl-devel fftw-devel
lesstif-devel wxGTK-devel

All the packages were installed or updated, but with this message:
No package ffmpeg-devel available.

Then:
./configure --with-cxx --with-gdal=/usr/local/bin/gdal-config
--with-proj --with-sqlite --with-nls
--with-wxwidgets=/usr/local/bin/wx-config --with-fftw
--with-python=/usr/local/bin/python-config --with-freetype
--with-freetype-includes=/usr/include/freetype2 --enable-largefile
--without-odbc

With the following result:

GRASS is now configured for: i686-pc-linux-gnu

  Source directory: /home/clerici/GRASSprograms/grass-6.4.2RC2
  Build directory: /home/clerici/GRASSprograms/grass-6.4.2RC2
  Installation directory: ${prefix}/grass-6.4.2RC2
  Startup script in directory: ${exec_prefix}/bin
  C compiler: gcc -g -O2
  C++ compiler: c++ -g -O2
  Building shared libraries: yes
  64bit support: no
  OpenGL platform: X11

  MacOSX application: no
  MacOSX architectures:
  MacOSX SDK:

  Tcl/Tk NVIZ: yes

  BLAS support: no
  C++ support: yes
  Cairo support: no
  DWG support: no
  FFMPEG support: no
  FFTW support: yes
  FreeType support: yes
  GDAL support: yes
  GEOS support: no
  GLw support: no
  JPEG support: yes
  LAPACK support: no
  Large File support (LFS): yes
  Motif support: no
  MySQL support: no
  NLS support: yes
  ODBC support: no
  OGR support: yes
  OpenGL support: yes
  PNG support: yes
  PostgreSQL support: no
  Python support: yes
  Readline support: no
  SQLite support: yes
  Tcl/Tk support: yes
  wxWidgets support: yes
  TIFF support: yes
  X11 support: yes

Then: make
with No errors detected

And: su -c 'make install' that seemed to work fine.

But, as usual, when I enter: grass64 -wxpython

Cleaning up temporary files ...
Starting GRASS ...
ERROR: wxGUI requires wxPython. No module named wxversion
Error in GUI startup. If necessary, please
report this error to the GRASS developers.
Switching to text mode now.
Hit RETURN to continue...

So I think I need to know how to install the package with wxversion.
Best.
A. Clerici

-----Messaggio originale-----
Da: neteler.osgeo@gmail.com [mailto:neteler.osgeo@gmail.com] Per conto di
Markus Neteler
Inviato: mercoledì 28 dicembre 2011 16:13
A: Aldo Clerici
Cc: GRASS user list
Oggetto: Re: [GRASS-user] Compile and install 6.4.2RC2

Aldo,

On Wed, Dec 28, 2011 at 1:16 PM, Martin Landa <landa.martin@gmail.com>
wrote:

2011/12/28 Aldo Clerici <aldo.clerici@unipr.it>:

ERROR: wxGUI requires wxPython. No module named wxversion

...

Where did I go wrong?

you need to install package which contains `wxversion`. On Debian
GNU/Linux it's eg. `python-wxversion`.

please see also
http://grass.osgeo.org/wiki/Compile_and_Install#Fedora

Best
Markus

On Thu, Dec 29, 2011 at 1:33 PM, Aldo Clerici <aldo.clerici@unipr.it> wrote:

Thanks to Martin and Markus for the quick answers.
As I don't know where is the package which contains `wxversion` on Fedora, I

It is
rpm -qf /usr/lib64/python2.7/site-packages/wxversion.py
wxPython-2.8.12.0-1.fc16.x86_64

followed the Markus suggestions executing step by step what's in 'Compile
and Install', hoping it includes the installing of the requested package.

First:
yum install proj-devel libjpeg-devel gdal-devel sqlite-devel ffmpeg-devel
mesa-libGL-devel mesa-libGLU-devel libXmu-devel tcl-devel fftw-devel
lesstif-devel wxGTK-devel

All the packages were installed or updated, but with this message:
No package ffmpeg-devel available.

I noted in your previous message that you use Fedora 10 which is
fairly old. Probably that's why some packages are missing.

https://admin.fedoraproject.org/pkgdb/acls/name/wxPython
-> only goes back to Fedora 14.

Then:
./configure --with-cxx --with-gdal=/usr/local/bin/gdal-config
--with-proj --with-sqlite --with-nls
--with-wxwidgets=/usr/local/bin/wx-config --with-fftw
--with-python=/usr/local/bin/python-config --with-freetype
--with-freetype-includes=/usr/include/freetype2 --enable-largefile
--without-odbc

With the following result:

GRASS is now configured for: i686-pc-linux-gnu

Source directory: /home/clerici/GRASSprograms/grass-6.4.2RC2
Build directory: /home/clerici/GRASSprograms/grass-6.4.2RC2
Installation directory: ${prefix}/grass-6.4.2RC2

...

Tcl/Tk support: yes
wxWidgets support: yes
TIFF support: yes
X11 support: yes

Then: make
with No errors detected

And: su -c 'make install' that seemed to work fine.

But, as usual, when I enter: grass64 -wxpython

Cleaning up temporary files ...
Starting GRASS ...
ERROR: wxGUI requires wxPython. No module named wxversion

Please report what this outputs:

rpm -qa | grep wx | sort

best,
Markus

Markus,
rpm -qa | grep wx | sort reports:

wxBase-2.8.10-5.fc10.i386
wxGlade-0.6.3-2.fc10.noarch
wxGTK-2.8.10-5.fc10.i386
wxGTK-gl-2.8.10-5.fc10.i386
wxMaxima-0.8.2-3.fc10.i386
wxPython-2.8.9.1-1.fc10.i386

Best
Aldo

-----Messaggio originale-----
Da: neteler.osgeo@gmail.com [mailto:neteler.osgeo@gmail.com] Per conto di
Markus Neteler
Inviato: giovedì 29 dicembre 2011 17:49
A: Aldo Clerici
Cc: GRASS user list
Oggetto: Re: [GRASS-user] Compile and install 6.4.2RC2

On Thu, Dec 29, 2011 at 1:33 PM, Aldo Clerici <aldo.clerici@unipr.it> wrote:

Thanks to Martin and Markus for the quick answers.
As I don't know where is the package which contains `wxversion` on Fedora,

I

It is
rpm -qf /usr/lib64/python2.7/site-packages/wxversion.py
wxPython-2.8.12.0-1.fc16.x86_64

followed the Markus suggestions executing step by step what's in 'Compile
and Install', hoping it includes the installing of the requested package.

First:
yum install proj-devel libjpeg-devel gdal-devel sqlite-devel ffmpeg-devel
mesa-libGL-devel mesa-libGLU-devel libXmu-devel tcl-devel fftw-devel
lesstif-devel wxGTK-devel

All the packages were installed or updated, but with this message:
No package ffmpeg-devel available.

I noted in your previous message that you use Fedora 10 which is
fairly old. Probably that's why some packages are missing.

https://admin.fedoraproject.org/pkgdb/acls/name/wxPython
-> only goes back to Fedora 14.

Then:
./configure --with-cxx --with-gdal=/usr/local/bin/gdal-config
--with-proj --with-sqlite --with-nls
--with-wxwidgets=/usr/local/bin/wx-config --with-fftw
--with-python=/usr/local/bin/python-config --with-freetype
--with-freetype-includes=/usr/include/freetype2 --enable-largefile
--without-odbc

With the following result:

GRASS is now configured for: i686-pc-linux-gnu

Source directory: /home/clerici/GRASSprograms/grass-6.4.2RC2
Build directory: /home/clerici/GRASSprograms/grass-6.4.2RC2
Installation directory: ${prefix}/grass-6.4.2RC2

...

Tcl/Tk support: yes
wxWidgets support: yes
TIFF support: yes
X11 support: yes

Then: make
with No errors detected

And: su -c 'make install' that seemed to work fine.

But, as usual, when I enter: grass64 -wxpython

Cleaning up temporary files ...
Starting GRASS ...
ERROR: wxGUI requires wxPython. No module named wxversion

Please report what this outputs:

rpm -qa | grep wx | sort

best,
Markus

On Thu, Dec 29, 2011 at 6:05 PM, Aldo Clerici <aldo.clerici@unipr.it> wrote:

Markus,
rpm -qa | grep wx | sort reports:

wxBase-2.8.10-5.fc10.i386
wxGlade-0.6.3-2.fc10.noarch
wxGTK-2.8.10-5.fc10.i386
wxGTK-gl-2.8.10-5.fc10.i386
wxMaxima-0.8.2-3.fc10.i386
wxPython-2.8.9.1-1.fc10.i386

I don't remember which is the minimum version requirement for wx.
On my Fedora box, I have:

wxBase-2.8.12-1.fc16.x86_64
wxGTK-2.8.12-1.fc16.x86_64
wxGTK-devel-2.8.12-1.fc16.x86_64
wxGTK-gl-2.8.12-1.fc16.x86_64
wxGTK-media-2.8.12-1.fc16.x86_64
wxPython-2.8.12.0-1.fc16.x86_64

In Fedora 16, it is in package wxPython.

ah, on Fedora 10 it is perhaps still sitting in:
wxPython-devel

Please install also that package, then you can check its content
for wxversion.py.

Best
Markus

Hi,

2011/12/29 Markus Neteler <neteler@osgeo.org>:

I don't remember which is the minimum version requirement for wx.
On my Fedora box, I have:

2.8.1.1 [1].

Martin

[1] http://trac.osgeo.org/grass/browser/grass/branches/releasebranch_6_4/gui/wxpython/README#L11

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

Dear Markus and Martin,
I found wxpython.py but I still have the same error message. At this point I
think the best to do is to upgrade Fedora, clean everything and restart
GRASS compilation. But not today, next year.
Many thanks for your kind (as usual) assistance and...Happy New Year.
A. Clerici

-----Messaggio originale-----
Da: neteler.osgeo@gmail.com [mailto:neteler.osgeo@gmail.com] Per conto di
Markus Neteler
Inviato: giovedì 29 dicembre 2011 18:16
A: Aldo Clerici
Cc: GRASS user list
Oggetto: Re: [GRASS-user] Compile and install 6.4.2RC2

On Thu, Dec 29, 2011 at 6:05 PM, Aldo Clerici <aldo.clerici@unipr.it> wrote:

Markus,
rpm -qa | grep wx | sort reports:

wxBase-2.8.10-5.fc10.i386
wxGlade-0.6.3-2.fc10.noarch
wxGTK-2.8.10-5.fc10.i386
wxGTK-gl-2.8.10-5.fc10.i386
wxMaxima-0.8.2-3.fc10.i386
wxPython-2.8.9.1-1.fc10.i386

I don't remember which is the minimum version requirement for wx.
On my Fedora box, I have:

wxBase-2.8.12-1.fc16.x86_64
wxGTK-2.8.12-1.fc16.x86_64
wxGTK-devel-2.8.12-1.fc16.x86_64
wxGTK-gl-2.8.12-1.fc16.x86_64
wxGTK-media-2.8.12-1.fc16.x86_64
wxPython-2.8.12.0-1.fc16.x86_64

In Fedora 16, it is in package wxPython.

ah, on Fedora 10 it is perhaps still sitting in:
wxPython-devel

Please install also that package, then you can check its content
for wxversion.py.

Best
Markus

Dear Aldo,

On Sat, Dec 31, 2011 at 11:52 AM, Aldo Clerici <aldo.clerici@unipr.it> wrote:

Dear Markus and Martin,
I found wxpython.py but I still have the same error message. At this point I
think the best to do is to upgrade Fedora, clean everything and restart
GRASS compilation. But not today, next year.

Fine - please let us know how it goes. Meanwhile, I have completed
the install requirements at

http://grass.osgeo.org/wiki/Compile_and_Install#Fedora

thanks to the compilation on yet another new Fedora box here.

Happy New Year to you and all,

Markus