#2480: v.class.ml: ImportError: No module named training_extraction
------------------------------------+---------------------------------------
Reporter: mlennert | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone:
Component: Addons | Version: svn-releasebranch70
Keywords: v.class.ml g.extension | Platform: Unspecified
Cpu: Unspecified |
------------------------------------+---------------------------------------
Comment(by mlennert):
Replying to [comment:3 nikosa]:
> I guess after cleaning old compiled stuff, and installing sklearn, all
works fine now.
Could you explain what exactly you did to make it work ? Did you use
g.extension, or compiled it from a source tree on your machine ?
When I compile manually with MODULE_TOPDIR set to my source dir,
everything works fine, i.e. the main v.class.ml ends up in scripts/ and
all the additional files get copied to etc/v.class.ml/.
However, when I use g.extension, only the main script gets copied to
.grass7/addons/scripts whereas nothing is copied to .grass7/addons/etc.
#2480: v.class.ml: ImportError: No module named training_extraction
------------------------------------+---------------------------------------
Reporter: mlennert | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone:
Component: Addons | Version: svn-releasebranch70
Keywords: v.class.ml g.extension | Platform: Unspecified
Cpu: Unspecified |
------------------------------------+---------------------------------------
Comment(by nikosa):
Replying to [comment:4 mlennert]:
> Replying to [comment:3 nikosa]:
> > I guess after cleaning old compiled stuff, and installing sklearn, all
works fine now.
> Could you explain what exactly you did to make it work ? Did you use
g.extension, or compiled it from a source tree on your machine ?
I compiled from a local copy of the source tree (v.70)
> When I compile manually with MODULE_TOPDIR set to my source dir,
everything works fine, i.e. the main v.class.ml ends up in scripts/ and
all the additional files get copied to etc/v.class.ml/.
>
> However, when I use g.extension, only the main script gets copied to
.grass7/addons/scripts whereas nothing is copied to .grass7/addons/etc.
#2480: v.class.ml: ImportError: No module named training_extraction
------------------------------------+---------------------------------------
Reporter: mlennert | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone:
Component: Addons | Version: svn-releasebranch70
Keywords: v.class.ml g.extension | Platform: Unspecified
Cpu: Unspecified |
------------------------------------+---------------------------------------
Comment(by martinl):
Replying to [comment:5 nikosa]:
> > However, when I use g.extension, only the main script gets copied to
.grass7/addons/scripts whereas nothing is copied to .grass7/addons/etc.
>
> g.extension fails here too.
please try recent version, this issue should be fixed also in g70.
#2480: v.class.ml: ImportError: No module named training_extraction
------------------------------------+---------------------------------------
Reporter: mlennert | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone:
Component: Addons | Version: svn-releasebranch70
Keywords: v.class.ml g.extension | Platform: Unspecified
Cpu: Unspecified |
------------------------------------+---------------------------------------
Comment(by mlennert):
Replying to [comment:6 martinl]:
> Replying to [comment:5 nikosa]:
> > > However, when I use g.extension, only the main script gets copied to
.grass7/addons/scripts whereas nothing is copied to .grass7/addons/etc.
> >
> > g.extension fails here too.
>
> please try recent version, this issue should be fixed also in g70.
Trunk, make distcleaned, updated, and compiled yesterday (r63985):
{{{
g.extension extension=v.class.ml svnurl=http://svn.osgeo.org/grass/grass-
addons/grass7
Fetching <v.class.ml> from GRASS-Addons SVN repository (be patient)...
Compiling...
Traceback (most recent call last):
File "/tmp/tmpJCQjBq/v.class.ml/scripts/v.class.ml", line
387, 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.
}}}
#2480: v.class.ml: ImportError: No module named training_extraction
--------------------------+------------------------------------
Reporter: mlennert | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Addons | Version: svn-releasebranch70
Resolution: | Keywords: v.class.ml g.extension
CPU: Unspecified | Platform: Unspecified
--------------------------+------------------------------------
Comment (by nikosa):
Any news for this one? I have the same problem when tryin to compile
i.segment.hierarchical ([http://trac.osgeo.org/grass/ticket/2534#2534])
and a new script of mine as well.