[GRASS-dev] Error while compiling grass 7.0 from source

Hi Everyone,

I encountered an error while installing GRASS GIS from source. When i run the make command i got the following error (see attached error.log)

GRASS GIS compilation log
-------------------------
Started compilation: Tue Dec 4 17:17:19 EAT 2012

Errors in:
/usr/local/src/grass_trunk/gui/wxpython/animation
/usr/local/src/grass_trunk/gui/wxpython/mapswipe
/usr/local/src/grass_trunk/gui/wxpython/gmodeler
/usr/local/src/grass_trunk/gui/wxpython/rlisetup

In case of errors please change into the directory with error and run ‘make’. If you get multiple errors, you need to deal with them in the order they
appear in the error log. If you get an error building a library, you will also get errors from anything which uses the library.

And as suggested I changed into the affected directories and run the make command again and the error listed below came up

Traceback (most recent call last):
File “/usr/local/src/grass_trunk/dist.i686-pc-linux-gnu/scripts/g.gui.animation”, line 50, in
from core.settings import UserSettings
File “/usr/local/src/grass_trunk/dist.i686-pc-linux-gnu/etc/gui/wxpython/core/settings.py”, line 27, in
from core import globalvar
File “/usr/local/src/grass_trunk/dist.i686-pc-linux-gnu/etc/gui/wxpython/core/globalvar.py”, line 75, in
import wx.lib.flatnotebook as FN
ImportError: No module named flatnotebook
make: *** [g.gui.animation.tmp.html] Error 1

While flatnotebook exists within my python modules i don’t understand why it is not being imported successfully. When i run { locate flatnotebook } command on my terminal i get:

/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/lib/flatnotebook.py
/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/lib/flatnotebook.pyc
/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/lib/agw/flatnotebook.py
/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/lib/agw/flatnotebook.pyc

Has anyone encountered the same compilation problem?

Thanks

Regards Erick

(attachments)

error.log (649 Bytes)
grass-7.0-compilation-error.png

try updating pythonpath

*EXPORT
PYTHONPATH=$PYTHONPATH:/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode*

and try `make`

On Tue, Dec 4, 2012 at 8:43 PM, Erick Opiyo <osgis.dev@gmail.com> wrote:

*/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode*

--
Regards,
   Rashad

Hi Mohammed,

Thanks for your reply. I run the command (EXPORT PYTHONPATH=$PYTHONPATH:/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode) on terminal and grass compiled successfully without any errors (see attached screen shot). Really appreciate your help.

Regards
Erick

(attachments)

compilation_succesfull.png