[GRASS-dev] [GRASS GIS] #2480: v.class.ml: ImportError: No module named training_extraction

GRASS GIS trac at osgeo.org
Tue Sep 6 07:13:29 PDT 2016


#2480: v.class.ml: ImportError: No module named training_extraction
--------------------------+------------------------------------
  Reporter:  mlennert     |      Owner:  grass-dev@…
      Type:  defect       |     Status:  closed
  Priority:  normal       |  Milestone:  7.0.5
 Component:  Addons       |    Version:  svn-releasebranch70
Resolution:  fixed        |   Keywords:  v.class.ml g.extension
       CPU:  Unspecified  |   Platform:  Unspecified
--------------------------+------------------------------------

Comment (by wenzeslaus):

 `v.class.ml` was not compiling for me with `g.extension`:

 {{{
 > g.extension v.class.ml
 Fetching <v.class.ml> from GRASS GIS Addons repository (be patient)...
 Compiling...
 Traceback (most recent call last):
   File "/tmp/grass7-vpetras-6663/tmpXvI6fK/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.
 }}}

 Thanks to `g.extension -d` I was able to test the code from `r.agent` and
 use it in r69389. `g.extension v.class.ml` works for me now.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2480#comment:26>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list