-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
r.learn.ml2 fix import of rlearnlib #367
r.learn.ml2 fix import of rlearnlib #367
Conversation
Thank you very much for reporting/testing this and your time. In my previous PR commit I made a change so that the files from the directory
Looks like I forgot to include this change, and this patch patch.zip (one line) will fix it. |
install: | ||
$(MKDIR) $(INST_DIR)/etc/r.learn.ml2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one line fix this error (previous changes isn't needed):
$(MKDIR) $(INST_DIR)/etc/r.learn.ml2/rlearnlib
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed all other changes. But I do not need the -p
in the Makefile, because $(MKDIR)
is in my system mkdir -p
and I am not sure if the -p works in other systems e.g. Windows.
I have:
Distributor ID: LinuxMint
Description: Linux Mint 19.2 Tina
Release: 19.2
Codename: tina
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed all other changes. But I do not need the -p in the Makefile, because $(MKDIR) is in my system mkdir -p and I > am not sure if the -p works in other systems e.g. Windows.
Yes you are right. According $(MKDIR)
variable definition in the file Platform.make.in, mkdir
command has -p
flag and then no needed extra flag definition in this Makefile.
Could @anikaweinmann test it and confirm that it works, please? |
@tmszi yes it is working for me. But I'm not sure that the |
mkdir -p isn't available in Windows, see https://stackoverflow.com/questions/905226/what-is-equivalent-to-linux-mkdir-p-in-windows |
Thanks for info. But Add-On installation work differently on MS Windows (precompiled packages are installed on the client, Add-On compilation takes place on the server which use OSGeo4W installer) e.g. wx.metadata Add-On use wx.metadata Add-On installation dir structure (mdlib 'same' as rlearnlib) and seems alright: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tmszi yes it is working for me. But I'm not sure that the
$(MKDIR) -p
is working for every system.
On my VirtualBox with Windows I get:
Thanks for info. But Add-On installation work differently on MS Windows (precompiled packages are installed on the client, Add-On compilation takes place on the server which use OSGeo4W installer) e.g. wx.metadata Add-On use
$(MKDIR) -p
too, and compilation is alright according https://wingrass.fsv.cvut.cz/grass78/x86_64/addons/latest/logs/. The installation wx.metadata Add-On on MS Windows was not successful, but error not related with$(MKDIR) -p
.wx.metadata Add-On installation dir structure (mdlib 'same' as rlearnlib) and seems alright:
Okay. Then is your change fine for me.
install: | ||
$(MKDIR) $(INST_DIR)/etc/r.learn.ml2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed all other changes. But I do not need the -p
in the Makefile, because $(MKDIR)
is in my system mkdir -p
and I am not sure if the -p works in other systems e.g. Windows.
I have:
Distributor ID: LinuxMint
Description: Linux Mint 19.2 Tina
Release: 19.2
Codename: tina
I try install r.learn.ml2 on MS Windows, and I get error:
r.learn.ml2 Add-On installation dir structure (rlearnlib) seems alright: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You missed the creation of 'rlearnlib' dir in the Makefile, check my commit.
There were changed in the Makefile which leads to ModuleNotFoundError, because the lib path changed:
These changes fix this problem.
(Developed with @griembauer)