Opened 9 years ago
Closed 8 years ago
#2968 closed defect (fixed)
g.extension problem with module containing various python files: "ImportError: No module named"
Reported by: | lrntct | Owned by: | martinl |
---|---|---|---|
Priority: | major | Milestone: | 7.0.5 |
Component: | Addons | Version: | svn-trunk |
Keywords: | g.extension | Cc: | grass-dev@… |
CPU: | x86-64 | Platform: | Linux |
Description
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.
It seems to be related to python modules that includes several python files. I encounter the same problem with a module of mine(cf. https://lists.osgeo.org/pipermail/grass-dev/2016-March/079481.html)
Meanwhile, v.in.wfs2 installation goes well, although its Makefile is very similar to v.class.ml.
Change History (6)
follow-up: 2 comment:1 by , 9 years ago
Cc: | added |
---|---|
Owner: | changed from | to
Status: | new → assigned |
comment:2 by , 9 years ago
comment:3 by , 9 years ago
Removing ~.grass7/addons
solved the problem for v.class ml (see #2480), but r.agent still fail:
Fetching <r.agent> from GRASS GIS Addons repository (be patient)... Compiling... Traceback (most recent call last): File "/tmp/grass7-laurent-14181/tmplbTgeR/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.
comment:4 by , 9 years ago
Milestone: | 7.0.4 → 7.0.5 |
---|
comment:6 by , 8 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
Please try r68156 (trunk)