[GRASS-dev] GRASS 7 compiled from source on Ubuntu 11.04, error with 3-D view.

Hi all,

After some time I’ve decided to start testing latest devel versions of GRASS on Ubuntu again. I have just today successfully compiled this week’s SVN snapshot on Ubuntu 11.04 64-bit with the following configuration options: CFLAGS="-g -Wall" ./configure --with-cxx --with-freetype=yes --with-postgres=no --with-sqlite=yes --with-tcltk-includes=/usr/include/tcl8.5 --with-freetype-includes=/usr/include/freetype2 --with-python=/usr/bin/python-config --with-wxwidgets=yes --with-nls --enable-largefile --with-proj-share=/usr/share/proj --enable-64bit --with-libs=/usr/lib64 --with-gdal=/usr/bin/gdal-config

There was one error upon compile in the NVIS directory where StdCmap.h was not found. It was because libxmu-dev was not installed. Apparently libxmu is a necessary component for NVIS to compile, but it is strangely not listed as a necessary component on the requirements page (http://grass.osgeo.org/grass70/source/snapshot/REQUIREMENTS.html). Anyhow, after I installed libxmu-dev then GRASS 7 compiles with no errors.

So far, most basic functionality seems to work, except for the 3-D view in the map display. I get the following errors when I try to use it:

Starting 3D view mode…
Exception in thread Thread-5:
Traceback (most recent call last):
File “/usr/lib/python2.7/threading.py”, line 552, in
__bootstrap_inner
self.run()
File “/usr/local/grass-7.0.svn/etc/gui/wxpython/nviz/mapwi
ndow.py”, line 62, in run
self._display = wxnviz.Nviz(self.log, self.progressbar)
File
“/usr/local/grass-7.0.svn/etc/gui/wxpython/nviz/wxnviz.py”,
line 104, in init
self.data_obj = nv_data()
NameError: global name ‘nv_data’ is not defined
Exception
AttributeError
:
“‘Nviz’ object has no attribute ‘data’”
in
<bound method Nviz.del of <nviz.wxnviz.Nviz object at
0x53f3390>>
ignored
Traceback (most recent call last):
File “/usr/local/grass-7.0.svn/etc/gui/wxpython/mapdisp/to
olbars.py”, line 229, in OnSelectTool

self.parent.AddNviz()
File “/usr/local/grass-7.0.svn/etc/gui/wxpython/mapdisp/fr
ame.py”, line 296, in AddNviz

Map = self.Map, tree = self.tree, lmgr = self._layerManager)
File “/usr/local/grass-7.0.svn/etc/gui/wxpython/nviz/mapwi
ndow.py”, line 152, in init

self.decoration = self.nvizDefault.SetDecorDefaultProp(type
= ‘arrow’)
File “/usr/local/grass-7.0.svn/etc/gui/wxpython/nviz/works
pace.py”, line 330, in SetDecorDefaultProp

UserSettings.Get(group = ‘nviz’, key = ‘arrow’, subkey =
‘color’)[:3])
TypeError
:
%d format: a number is required, not str

Is this a known issue? Or something ubuntu-specific? It looks like an error with a specific variable that’s being called in a python script before it is assigned. Any ideas on what to tinker with to get it working?

Regards,

Isaac I Ullah, M.A.

Archaeology PhD Candidate,
ASU School of Evolution and Social Change

Research Assistant,
Mediterranean Landscape Dynamics Project


isaac.ullah@asu.edu
ullah@archaeologist.com

http://www.public.asu.edu/~iullah


Actually, now that I am thinking about it, this may be related to an ongoing NVIZ problem that I have had since moving to Ubuntu 11.03. Essentially, what happens is that NVIZ only sort of works in that I can get it to load up and display a map, but as soon as i touch any of the controls with the mouse, the map canvas goes blank. I can see glimpses of the map in coarse mode as if I rotate the view or zoom perspective or raise the height, but the display always goes back blank as soon as I stop moving. Sometimes the display DOES come back if I briefly click the eye arrow and then don’t move the mouse, but this is only temporary. This happens on all three versions of grass I have installed (6.4.1 from ubuntu GIS repository, 6.4.2 from SVN snapshot binary, and 7.0 compiled from source). This is not the same exact issue with the 3D map display in 7.0, which just doesn’t even load through, but it is an error I have been having with 3D display of maps in GRASS in general…

~Isaac

On Fri, Feb 24, 2012 at 2:34 PM, Isaac Ullah <isaac.ullah@asu.edu> wrote:

Hi all,

After some time I’ve decided to start testing latest devel versions of GRASS on Ubuntu again. I have just today successfully compiled this week’s SVN snapshot on Ubuntu 11.04 64-bit with the following configuration options: CFLAGS="-g -Wall" ./configure --with-cxx --with-freetype=yes --with-postgres=no --with-sqlite=yes --with-tcltk-includes=/usr/include/tcl8.5 --with-freetype-includes=/usr/include/freetype2 --with-python=/usr/bin/python-config --with-wxwidgets=yes --with-nls --enable-largefile --with-proj-share=/usr/share/proj --enable-64bit --with-libs=/usr/lib64 --with-gdal=/usr/bin/gdal-config

There was one error upon compile in the NVIS directory where StdCmap.h was not found. It was because libxmu-dev was not installed. Apparently libxmu is a necessary component for NVIS to compile, but it is strangely not listed as a necessary component on the requirements page (http://grass.osgeo.org/grass70/source/snapshot/REQUIREMENTS.html). Anyhow, after I installed libxmu-dev then GRASS 7 compiles with no errors.

So far, most basic functionality seems to work, except for the 3-D view in the map display. I get the following errors when I try to use it:

Starting 3D view mode…
Exception in thread Thread-5:
Traceback (most recent call last):
File “/usr/lib/python2.7/threading.py”, line 552, in
__bootstrap_inner
self.run()
File “/usr/local/grass-7.0.svn/etc/gui/wxpython/nviz/mapwi
ndow.py”, line 62, in run
self._display = wxnviz.Nviz(self.log, self.progressbar)
File
“/usr/local/grass-7.0.svn/etc/gui/wxpython/nviz/wxnviz.py”,
line 104, in init
self.data_obj = nv_data()
NameError: global name ‘nv_data’ is not defined
Exception
AttributeError
:
“‘Nviz’ object has no attribute ‘data’”
in
<bound method Nviz.del of <nviz.wxnviz.Nviz object at
0x53f3390>>
ignored
Traceback (most recent call last):
File “/usr/local/grass-7.0.svn/etc/gui/wxpython/mapdisp/to
olbars.py”, line 229, in OnSelectTool

self.parent.AddNviz()
File “/usr/local/grass-7.0.svn/etc/gui/wxpython/mapdisp/fr
ame.py”, line 296, in AddNviz

Map = self.Map, tree = self.tree, lmgr = self._layerManager)
File “/usr/local/grass-7.0.svn/etc/gui/wxpython/nviz/mapwi
ndow.py”, line 152, in init

self.decoration = self.nvizDefault.SetDecorDefaultProp(type
= ‘arrow’)
File “/usr/local/grass-7.0.svn/etc/gui/wxpython/nviz/works
pace.py”, line 330, in SetDecorDefaultProp

UserSettings.Get(group = ‘nviz’, key = ‘arrow’, subkey =
‘color’)[:3])
TypeError
:
%d format: a number is required, not str

Is this a known issue? Or something ubuntu-specific? It looks like an error with a specific variable that’s being called in a python script before it is assigned. Any ideas on what to tinker with to get it working?

Regards,

Isaac I Ullah, M.A.

Archaeology PhD Candidate,
ASU School of Evolution and Social Change

Research Assistant,
Mediterranean Landscape Dynamics Project


isaac.ullah@asu.edu
ullah@archaeologist.com

http://www.public.asu.edu/~iullah



Isaac I Ullah, M.A.

Archaeology PhD Candidate,
ASU School of Evolution and Social Change

Research Assistant,
Mediterranean Landscape Dynamics Project


isaac.ullah@asu.edu
ullah@archaeologist.com

http://www.public.asu.edu/~iullah


No ideas?

~Isaac

On Fri, Feb 24, 2012 at 3:19 PM, Isaac Ullah <isaac.ullah@asu.edu> wrote:

Actually, now that I am thinking about it, this may be related to an ongoing NVIZ problem that I have had since moving to Ubuntu 11.03. Essentially, what happens is that NVIZ only sort of works in that I can get it to load up and display a map, but as soon as i touch any of the controls with the mouse, the map canvas goes blank. I can see glimpses of the map in coarse mode as if I rotate the view or zoom perspective or raise the height, but the display always goes back blank as soon as I stop moving. Sometimes the display DOES come back if I briefly click the eye arrow and then don’t move the mouse, but this is only temporary. This happens on all three versions of grass I have installed (6.4.1 from ubuntu GIS repository, 6.4.2 from SVN snapshot binary, and 7.0 compiled from source). This is not the same exact issue with the 3D map display in 7.0, which just doesn’t even load through, but it is an error I have been having with 3D display of maps in GRASS in general…

~Isaac

On Fri, Feb 24, 2012 at 2:34 PM, Isaac Ullah <isaac.ullah@asu.edu> wrote:

Hi all,

After some time I’ve decided to start testing latest devel versions of GRASS on Ubuntu again. I have just today successfully compiled this week’s SVN snapshot on Ubuntu 11.04 64-bit with the following configuration options: CFLAGS="-g -Wall" ./configure --with-cxx --with-freetype=yes --with-postgres=no --with-sqlite=yes --with-tcltk-includes=/usr/include/tcl8.5 --with-freetype-includes=/usr/include/freetype2 --with-python=/usr/bin/python-config --with-wxwidgets=yes --with-nls --enable-largefile --with-proj-share=/usr/share/proj --enable-64bit --with-libs=/usr/lib64 --with-gdal=/usr/bin/gdal-config

There was one error upon compile in the NVIS directory where StdCmap.h was not found. It was because libxmu-dev was not installed. Apparently libxmu is a necessary component for NVIS to compile, but it is strangely not listed as a necessary component on the requirements page (http://grass.osgeo.org/grass70/source/snapshot/REQUIREMENTS.html). Anyhow, after I installed libxmu-dev then GRASS 7 compiles with no errors.

So far, most basic functionality seems to work, except for the 3-D view in the map display. I get the following errors when I try to use it:

Starting 3D view mode…
Exception in thread Thread-5:
Traceback (most recent call last):
File “/usr/lib/python2.7/threading.py”, line 552, in
__bootstrap_inner
self.run()
File “/usr/local/grass-7.0.svn/etc/gui/wxpython/nviz/mapwi
ndow.py”, line 62, in run
self._display = wxnviz.Nviz(self.log, self.progressbar)
File
“/usr/local/grass-7.0.svn/etc/gui/wxpython/nviz/wxnviz.py”,
line 104, in init
self.data_obj = nv_data()
NameError: global name ‘nv_data’ is not defined
Exception
AttributeError
:
“‘Nviz’ object has no attribute ‘data’”
in
<bound method Nviz.del of <nviz.wxnviz.Nviz object at
0x53f3390>>
ignored
Traceback (most recent call last):
File “/usr/local/grass-7.0.svn/etc/gui/wxpython/mapdisp/to
olbars.py”, line 229, in OnSelectTool

self.parent.AddNviz()
File “/usr/local/grass-7.0.svn/etc/gui/wxpython/mapdisp/fr
ame.py”, line 296, in AddNviz

Map = self.Map, tree = self.tree, lmgr = self._layerManager)
File “/usr/local/grass-7.0.svn/etc/gui/wxpython/nviz/mapwi
ndow.py”, line 152, in init

self.decoration = self.nvizDefault.SetDecorDefaultProp(type
= ‘arrow’)
File “/usr/local/grass-7.0.svn/etc/gui/wxpython/nviz/works
pace.py”, line 330, in SetDecorDefaultProp

UserSettings.Get(group = ‘nviz’, key = ‘arrow’, subkey =
‘color’)[:3])
TypeError
:
%d format: a number is required, not str

Is this a known issue? Or something ubuntu-specific? It looks like an error with a specific variable that’s being called in a python script before it is assigned. Any ideas on what to tinker with to get it working?

Regards,

Isaac I Ullah, M.A.

Archaeology PhD Candidate,
ASU School of Evolution and Social Change

Research Assistant,
Mediterranean Landscape Dynamics Project


isaac.ullah@asu.edu
ullah@archaeologist.com

http://www.public.asu.edu/~iullah



Isaac I Ullah, M.A.

Archaeology PhD Candidate,
ASU School of Evolution and Social Change

Research Assistant,
Mediterranean Landscape Dynamics Project


isaac.ullah@asu.edu
ullah@archaeologist.com

http://www.public.asu.edu/~iullah



Isaac I Ullah, M.A.

Archaeology PhD Candidate,
ASU School of Evolution and Social Change

Research Assistant,
Mediterranean Landscape Dynamics Project


isaac.ullah@asu.edu
ullah@archaeologist.com

http://www.public.asu.edu/~iullah