clstoulouse / motu-client-python

Motu is a high efficient and robust Web Server which fills the gap between heterogeneous data providers to end users. Motu handles, extracts and transforms oceanographic huge volumes of data without performance collapse. This client enables to extract and download data through a python command line.
GNU Lesser General Public License v3.0
49 stars 22 forks source link

Error install motu-client-python #3

Closed ZenKa24 closed 6 years ago

ZenKa24 commented 7 years ago

I got errors below when I run this command: mvn clean install -Dmaven.test.skip=true Warning: JAVA_HOME environment variable is not set. [INFO] Scanning for projects... [ERROR] The build could not read 1 project -> [Help 1] [ERROR]
[ERROR] The project cls.atoll.motu.client:motu-client-python:1.4.00 (/home/ubuntu/motu-client-python/po m.xml) has 1 error [ERROR] Non-resolvable parent POM: Failure to find cls.commons:cls-project-config:pom:1.2.00 in http: //repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted unt il the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at w rong local POM @ line 2, column 13 -> [Help 2] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException

Please check it to me!

Thank you so much!

clstoulouse commented 7 years ago

Dear,

To fix it, edit motu-client-python/pom.xml file and comment lines below (line 2 to 6):

    <!-- <parent>
        <artifactId>cls-project-config</artifactId>
        <groupId>cls.commons</groupId>
        <version>1.2.00</version>
    </parent> -->

This "maven" command is used to build the tar.gz file from sources. We have already built this archive for you and you can download it diretly from https://github.com/clstoulouse/motu-client-python/releases (motu-client-python-1.4.00-20170410143941999-bin.tar.gz for the current last version). then install the archive: https://github.com/clstoulouse/motu-client-python#installation

If you want to build the project, install MAVEN https://maven.apache.org/install.html and then follow: https://github.com/clstoulouse/motu-client-python#Build

In the next version, we will add the project on Python Pypi repository to ease installation in a full python environment.

Best Regards.

ZenKa24 commented 7 years ago

It worked fine. Thank you so much!