Git Product home page Git Product logo

Comments (11)

alansaid avatar alansaid commented on June 11, 2024 2

I suggest you try importing it as a Maven project and use Maven to build it. This simply appears to be an artefact of attempting to build RiVal in an unsupported way (at least by us).

To see how to use RiVal as a Maven dependency, please have a look at the rival-examples sub-project

from rival.

abellogin avatar abellogin commented on June 11, 2024 1

Hi @ChemsEddineBerbegue ,

I faced recently this problem you issued some time ago and found a solution using Maven.

The thing is that there is a conflict with the artifact solr-commons-csv from mahour which, in my build, was producing the same error as the one you reported (mainly due to that artifact importing a different version of the commons-csv module).
The fix was done by modifying the pom as follows:

	<dependency>
		<groupId>org.apache.mahout</groupId>
		<artifactId>mahout-mr</artifactId>
		<version>0.10.0</version>
		<exclusions>
			<exclusion>
				<groupId>org.apache.solr</groupId>
				<artifactId>solr-commons-csv</artifactId>
			</exclusion>
		</exclusions>
	</dependency>

Hope this helps.

from rival.

alansaid avatar alansaid commented on June 11, 2024

Hi @ChemsEddineBerbegue,
Can you provide a minimal working example (or not working in this case)?
I believe this is likely to an incorrect maven setup in your Eclipse environment as both CVSParser and CSVRecord classes are from a third party module.

from rival.

8-chems avatar 8-chems commented on June 11, 2024

Hi,
this is the class which make the problem: import org.apache.commons.csv.CSVFormat; i tried with many versions of commons-csv (1.0 1.1 1.2 1.4) but all of them haven't solved the problem, in addition I am using mahout version 0.12.2 and lenskit 2.2.1, all classes are right except the problem in the class UIPParser.
the method .parse(in) returns a CSVparser while the variable "record" have the type Iterable.
pom.xml file located in the project rival core indicates that the used version of commons-csv is 1.0.

from rival.

alansaid avatar alansaid commented on June 11, 2024

Can you provide a code example (of your code) and the scenario in which your build fails?
As you can see in the rival-core pom file, RiVal uses Apache Commons CSV 1.0.
How are you using RiVal? The base case is that you import RiVal through the pom file in your Maven-built project.

from rival.

8-chems avatar 8-chems commented on June 11, 2024

HI, I never worked with Maven before, I took all the separated projects and merge them in just one SRC folder than put them in eclipse project adding the required jar files and it is done, I used to work with similar projects with the similar approache it worked fine except rival.

from rival.

abellogin avatar abellogin commented on June 11, 2024

Hi @ChemsEddineBerbegue,
since that is not the expected development scenario, it is not easy for us to reproduce your problem.
I could take a look at it if you provide us with a link to your environment (e.g., a dropbox link or a ZIP file).
In any case, according to the documentation of the commons-csv library that @alansaid pointed out before, that method should always work. See here the code included in the documentation is the same as the one in the UIPParser.
Hence, I would encourage you to check if you are really including the commons-csv library and if there no other conflicts with other libraries that might be imported with higher preference in your Eclipse project.

Best,
Alejandro

from rival.

8-chems avatar 8-chems commented on June 11, 2024

I am agree that there is certainly a conflict with the rest of jar files, thank you

from rival.

abellogin avatar abellogin commented on June 11, 2024

Btw, @alansaid, if we check that this solution does not break any of the mahout code, we should add it to the release ASAP.

from rival.

alansaid avatar alansaid commented on June 11, 2024

Odd that it wasn't causing errors before.
Let's go ahead with the update. However, given Mahout's current development direction, we could consider skipping Mahout in future releases. Mahout Taste is becoming deprecated (or at least stale with only minor bugfixes coming in in the last ~2 years, see inline screenshot of latest commits in https://github.com/apache/mahout/tree/master/mr/src/main/java/org/apache/mahout/cf/taste/impl/recommender)
image

from rival.

alansaid avatar alansaid commented on June 11, 2024

What's the status current status of this?

from rival.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.