[GRASS-user] install grass with new wxPython user interface in Ubuntu

Hamish hamish_b at yahoo.com
Fri Sep 19 02:58:20 EDT 2008


[cc list]

Jhon Ortiz wrote:
> >> But with this errors:
> >> **********************
> >> Errors in:
> >> /usr/local/src/grass-6.3.0/visualization/nviz
> >> **********************
....
> When I type
> cd /usr/local/src/grass-6.3.0/visualization/nviz
> make
> 
> Give me a lot erros, but this errors is because nviz is
> working with tcltk, and I compiled without tcltk. 
> I resolved that compiled with tcltk

ok, it is already fixed in SVN that nviz will only build if Tcl/Tk is
used:
  http://trac.osgeo.org/grass/changeset/31328

but 6.3.0 shipped before that change.

> [...] and python
>
> ./configure -with-cxx -with-gdal=/usr/bin/gdal-config
> -with-postgres
> -with-postgres-includes=/usr/include/postgresql
> -with-postgres-libs=/usr/lib/postgresql/8.2/lib
> -with-tcltk-includes=/usr/include/tcl8.4 -without-mysql
> -without-odbc -with-readline -with-fftw
> -with-fftw-libs=/usr/local/lib -with-freetype
> --with-freetype-includes=/usr/include/freetype2
> -enable-largefile -with-python
> -with-proj-share=/usr/share/proj


"-with-python" is not enough to get the new wxPython GUI installed.
That is only required for the new vdigit.

You will need to install wxPython 2.8 and friends.
see grass-6.3.0/gui/wxpython/README 


> But now when I type in the terminal for start grass
> (grass63 -wxpython), give me this error:
>  
> ***********
> >>john at cito:~$ grass63 -wxpython
> Cleaning up temporary files.....
> Starting GRASS ...
> Traceback (most recent call last):
>   File
> "/usr/local/grass-6.3.0/etc/wxpython/gis_set.py",
> line 31, in 
>     from gui_modules import globalvar
>   File
> "/usr/local/grass-6.3.0/etc/wxpython/gui_modules/globalvar.py",
> line 48, in 
>     CheckForWx()
>   File
> "/usr/local/grass-6.3.0/etc/wxpython/gui_modules/globalvar.py",
> line 39, in CheckForWx
>     except (ImportError, ValueError,
> wxversion.VersionError), e:
> UnboundLocalError: local variable 'wxversion' referenced before
>  assignment
> Error in GUI startup. If necessary, please
> report this error to the GRASS developers.
> Switching to text mode now.
> Hit RETURN to continue...
> ***********

but the Tcl/Tk GUI works, right? and -text mode?
$ grass63 -tcltk

I think just the wxPython 2.8 packages are missing.

> Thanks Hamish and all list
> 
> And sorry for repet the post, but is for answer the
> question to Hamish.

answers are good to have in the archives for others who search for the
same error.
 
> someone has an idea of how I can install grass with new
> wxPython user interface in Ubuntu 7.10?

If you wish to use the new wxGUI I would suggest to download the latest
6.4svn source code snapshot. The GUI has seen a lot of improvements.

  http://grass.osgeo.org/grass64/source/snapshot/


And see grass64.svn/debian/README.debian there for instructions on how
to download Debian packaging rules from DebianGIS and build a .deb for
your version of Ubuntu. (it is almost as simple as "dpkg-buildpackage"
to create them using the automated scripts)

or if you prefer just compile it yourself as you have been doing.


Hamish



      



More information about the grass-user mailing list