#2968: g.extension problem with module containing various python files:
"ImportError: No module named"
-------------------------+-------------------------
Reporter: lrntct | Owner: grass-dev@…
Type: defect | Status: new
Priority: major | Milestone: 7.0.4
Component: Addons | Version: svn-trunk
Keywords: g.extension | CPU: x86-64
Platform: Linux |
-------------------------+-------------------------
I encounter an error while trying to install r.agent:
{{{
Fetching <r.agent> from GRASS GIS Addons repository (be patient)...
Compiling...
Traceback (most recent call last):
File "/tmp/grass7-laurent-26795/tmpSuOPAa/r.agent/scripts/r.agent.aco",
line 234, in <module>
import error, grassland, anthill
ImportError: No module named error
make[1]: *** [r.agent.aco.tmp.html] Error 1
/bin/sh: 1: cannot create /usr/lib/grass71/error.log: Permission denied
make: *** [r.agent.aco] Error 2
ERROR: Compilation failed, sorry. Please check above error messages.
}}}
The same error occurs while trying to install v.class.ml (although it
worked once, but then stopped working):
{{{
Fetching <v.class.ml> from GRASS GIS Addons repository (be patient)...
Compiling...
Traceback (most recent call last):
File
"/tmp/grass7-laurent-26795/tmpZf46jp/v.class.ml/scripts/v.class.ml", line
386, in <module>
from training_extraction import extract_training
ImportError: No module named training_extraction
make: *** [v.class.ml.tmp.html] Error 1
ERROR: Compilation failed, sorry. Please check above error messages.
}}}
Since r69193 r.agent is installed by g.extension properly. Also v.class.ml
can be installed successfully. I am taking liberty to close this ticket.
Feel free to re-open if needed. See #2480