Unable to custom Grass modules

35 views
Skip to first unread message

Audrey L

unread,
Jul 2, 2013, 6:15:56 PM7/2/13
to mdig...@googlegroups.com
Hi Joel - Hope all is going well.

I am trying to install MDiG on the computer of the uni and have a quick help request:

- After installing numpy and scipy separtely as per the instructions at https://github.com/ferrouswheel/mdig
mkvirtualenv mdig
pip install numpy
pip install scipy
the graphic interface of Grass does not work anymore.
> Error wxGui reguires wxpython.
I could manage to reinstall all packages required to run Grass but wanted to notify the issue

When I want to custom Grass modules as per the instructions at https://github.com/ferrouswheel/mdig
cd grass-modules
sudo make MODULE_TOPDIR=/usr/lib/grass64
Makefile:17: /usr/lib/grass64/include/Make/Dir.make: No such file or directory
make: *** No rule to make target `/usr/lib/grass64/include/Make/Dir.make'. Stop.

The file include does not exists.
I tried to install grass from the source and to run
cd mdig/grass-modules
export GRASS_SRC=~/src/grass64_release make -S MODULE_TOPDIR=$GRASS_SRC
Makefile:17: /home/audrey/src/grass64_release/include/Make/Dir.make: No such file or directory
make: *** No rule to make target `/home/audrey/src/grass64_release/include/Make/Dir.make'. Stop.

Am I doing something wrong?
Thanks for your help

Best,
Audrey

Joel Pitt

unread,
Jul 3, 2013, 11:03:34 PM7/3/13
to mdig
Hi Audrey,

On 3 July 2013 10:15, Audrey L <audrey...@gmail.com> wrote:
> - After installing numpy and scipy separtely as per the instructions at
> https://github.com/ferrouswheel/mdig
>
> mkvirtualenv mdig
> pip install numpy
> pip install scipy
>
> the graphic interface of Grass does not work anymore.
>> Error wxGui reguires wxpython.
> I could manage to reinstall all packages required to run Grass but wanted to
> notify the issue

Unfortunately using a virtualenv hides all the python libraries that
the GRASS user interface uses. I probably didn't notice this because I
tend to work on the command line.

> When I want to custom Grass modules as per the instructions at
> https://github.com/ferrouswheel/mdig
>
> cd grass-modules
> sudo make MODULE_TOPDIR=/usr/lib/grass64
> Makefile:17: /usr/lib/grass64/include/Make/Dir.make: No such file or
> directory
> make: *** No rule to make target `/usr/lib/grass64/include/Make/Dir.make'.
> Stop.

Is there a directory called "/usr/lib/grass64"? It will only be called
this if you installed the Ubuntu version of GRASS.

If you installed from source code originally, then the correct
directory to use might be /usr/local/grass-6.4.3svn/

> The file include does not exists.
> I tried to install grass from the source and to run
>
> cd mdig/grass-modules
> export GRASS_SRC=~/src/grass64_release
> make -S MODULE_TOPDIR=$GRASS_SRC
> Makefile:17: /home/audrey/src/grass64_release/include/Make/Dir.make: No such
> file or directory
> make: *** No rule to make target
> `/home/audrey/src/grass64_release/include/Make/Dir.make'. Stop.
>
> Am I doing something wrong?
> Thanks for your help

Check if the grass64_release/include/Make directory exists.

If you the "make" files don't exist, then it might because
"./configure" hasn't been run. ./configure will check that your
computer has all the correct dependencies before generating the make
files needed for the grass-modules to be built.

Hope that helps!
Joel

Audrey L

unread,
Jul 4, 2013, 7:19:57 PM7/4/13
to mdig...@googlegroups.com, joel...@gmail.com
Thanks Joel - It was very helpful.
I did not realized that I was installing grass-6.5.svn so the file grass64 could not exist!

I have another help request
I have installed and compiled everything as per the instructions at https://github.com/ferrouswheel/mdig without error
but while trying to run Mdig I have the following error

audrey@ubuntu:~/mdig/mdig$ python mdig.py --help
Traceback (most recent call last):
  File "mdig.py", line 32, in <module>
    from mdig import actions
  File "/home/audrey/mdig/mdig/mdig/actions/__init__.py", line 5, in <module>
    from .admin import AdminAction, ListAction, AddAction, ResetAction, RemoveAction, RepositoryAction, InfoAction
  File "/home/audrey/mdig/mdig/mdig/actions/admin.py", line 11, in <module>
    from mdig.model import DispersalModel
  File "/home/audrey/mdig/mdig/mdig/model.py", line 31, in <module>
    import lxml.etree

ImportError: No module named lxml.etree

Any suggestions where the problem comes from?
Best,
Audrey

Audrey L

unread,
Jul 4, 2013, 7:52:58 PM7/4/13
to mdig...@googlegroups.com, joel...@gmail.com
The issue was fixed. Instructions to install
python-lxml
does not appear at https://github.com/ferrouswheel/mdig

MDiG is running now :)
Thanks a lot for your help.
Reply all
Reply to author
Forward
0 new messages