Comments (5)
cloning and building from the incubator made a difference, but not quite there...
git clone https://github.com/apache/incubator-tinkerpop.git
from incubator-tinkerpop root > mvn clean install
then back to my gremlin-scala root, freshly cloned from git
sbt compile
yielded parse exceptions...
error sbt.ResolveException: unresolved dependency: org.apache.tinkerpop#gremlin-core;3.0.0-SNAPSHOT: java.text.ParseException: The element type "hr" must be terminated by the matching end-tag "".
[error] unresolved dependency: org.apache.tinkerpop#tinkergraph-gremlin;3.0.0-SNAPSHOT: java.text.ParseException: The element type "hr" must be terminated by the matching end-tag "".
[error] unresolved dependency: org.apache.tinkerpop#gremlin-test;3.0.0-SNAPSHOT: java.text.ParseException: The element type "hr" must be terminated by the matching end-tag "".
[error] Total time: 2 s, completed Mar 4, 2015 11:14:21 AM
from gremlin-scala.
Did the mvn clean install
on incubator-tinkerpop work for you? it used to work for me in the past, however with the latest master (revision 57ae2b6) I'm getting errors:
COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /home/mp/Projects/tinkerpop/tinkerpop3/hadoop-gremlin/src/main/java/org/apache/tinkerpop/gremlin/hadoop/process/computer/spark/util/SparkHelper.java:[109,87] incompatible types: inferred type does not conform to upper bound(s)
inferred: org.apache.tinkerpop.gremlin.process.computer.MapReduce<java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object>
upper bound(s): org.apache.tinkerpop.gremlin.process.computer.MapReduce<java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object>,org.apache.tinkerpop.gremlin.process.computer.MapReduce<K,V,?,?,?>
[ERROR] /home/mp/Projects/tinkerpop/tinkerpop3/hadoop-gremlin/src/main/java/org/apache/tinkerpop/gremlin/hadoop/process/computer/spark/util/SparkHelper.java:[123,89] incompatible types: inferred type does not conform to upper bound(s)
inferred: org.apache.tinkerpop.gremlin.process.computer.MapReduce<java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object>
upper bound(s): org.apache.tinkerpop.gremlin.process.computer.MapReduce<java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object>,org.apache.tinkerpop.gremlin.process.computer.MapReduce<K,V,OK,OV,?>
[INFO] 2 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache TinkerPop: A Graph Computing Framework ...... SUCCESS [ 56.101 s]
[INFO] Gremlin Core: The Primary Components of TinkerPop3 . SUCCESS [ 26.529 s]
[INFO] Gremlin Algorithms: Graph Computing Algorithms for TinkerPop3 SUCCESS [ 1.881 s]
[INFO] Gremlin Test: Gremlin Structure and Process Test Suite SUCCESS [ 12.161 s]
[INFO] Gremlin Groovy: Gremlin for the Groovy Language .... SUCCESS [ 12.818 s]
[INFO] Gremlin Groovy Test: Gremlin Structure and Process Test Suite SUCCESS [ 7.600 s]
[INFO] TinkerGraph Gremlin: The Reference Implementation of TinkerPop3 SUCCESS [ 3.901 s]
[INFO] Neo4j Gremlin: An Implementation of TinkerPop3 for the Neo4j Graph Database SUCCESS [ 7.542 s]
[INFO] Hadoop Gremlin: An Implementation of TinkerPop3 for Hadoop FAILURE [01:36 min]
[INFO] Gremlin Driver: Connect to Gremlin Server with Java SKIPPED
[INFO] Gremlin Server: Gremlin on the Server .............. SKIPPED
[INFO] Gremlin Console: Gremlin Groovy REPL ............... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
from gremlin-scala.
here's my environment:
java -version
java version "1.8.0_05"
Java(TM) SE Runtime Environment (build 1.8.0_05-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode)
mvn clean install -DskipTests
from gremlin-scala.
Thanks, Michael. mvn clean install on incubator-tinkerpop worked for me after I manually purged the ivy cache. I haven't had any trouble building incubator-tinkerpop from HEAD, but I do have compiler errors when building gremlin-scala, so I should probably traverse back to an earlier tinkerpop revision, and lock down on something for a quick POC.
java -version
java version "1.8.0_31"
Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)
Fred-Pattons-MacBook-Pro:gremlin-scala fpatton$ sbt compile
[info] Loading global plugins from /Users/fpatton/.sbt/0.13/plugins
[info] Loading project definition from /Users/fpatton/third-party/gremlin-scala/project
[info] Set current project to gremlin-scala (in build file:/Users/fpatton/third-party/gremlin-scala/)
[info] Updating {file:/Users/fpatton/third-party/gremlin-scala/}gremlin-scala...
[info] Resolving jline#jline;2.12 ...
[info] Done updating.
[info] Compiling 5 Scala sources to /Users/fpatton/third-party/gremlin-scala/target/scala-2.11/classes...
[error] /Users/fpatton/third-party/gremlin-scala/src/main/scala/gremlin/scala/GremlinScala.scala:82: overloaded method aggregate needs result type
[error] def aggregate() = GremlinScalaEnd, Labels
[error] ^
[error] /Users/fpatton/third-party/gremlin-scala/src/main/scala/gremlin/scala/GremlinScala.scala:135: polymorphic expression cannot be instantiated to expected type;
[error] found : [K, R]org.apache.tinkerpop.gremlin.process.graph.traversal.GraphTraversal[$1(in value traversal)(in value traversal)(in value traversal)(in value traversal),java.util.Map[K,R]]
[error] required: org.apache.tinkerpop.gremlin.process.graph.traversal.GraphTraversal[, End]
[error] def group() = GremlinScalaEnd, Labels
[error] ^
[error] /Users/fpatton/third-party/gremlin-scala/src/main/scala/gremlin/scala/GremlinScala.scala:141: polymorphic expression cannot be instantiated to expected type;
[error] found : [E2]org.apache.tinkerpop.gremlin.process.graph.traversal.GraphTraversal[$1(in value traversal)(in value traversal)(in value traversal)(in value traversal),java.util.Map[E2,Long]]
[error] required: org.apache.tinkerpop.gremlin.process.graph.traversal.GraphTraversal[, End]
[error] def groupCount() = GremlinScalaEnd, Labels
[error] ^
[warn] /Users/fpatton/third-party/gremlin-scala/src/main/scala/gremlin/scala/LabelledPathStep.scala:5: imported `Traverser' is permanently hidden by definition of type Traverser in package scala
[warn] import org.apache.tinkerpop.gremlin.process.Traverser
[warn] ^
[warn] one warning found
[error] three errors found
error Compilation failed
[error] Total time: 6 s, completed Mar 4, 2015 4:36:24 PM
from gremlin-scala.
Ok, that sounds more like it. Note that the current snapshot is still in alpha - the TP3 crew is still making loads of changes quickly, and hence breaking Gremlin-Scala. I'm getting married in a few days, so have to sort out some other things now ;) If you manage to fix it yourself please send me a PR, otherwise either wait or use the last release (3.0.0.M7).
from gremlin-scala.
Related Issues (20)
- Error when updating a vertex HOT 1
- @id attribute of case class without Option HOT 6
- How to get both edge and vertex properties? HOT 4
- Bump gremlin-scala lib version to 3.4.0.x after TinkerPop version bump to 3.4.0. HOT 6
- toCC() key not found HOT 11
- Create vertex with Custom vertex id HOT 1
- Create vertices if not exists and add relation HOT 1
- Getting Side Effects Of Traversal HOT 4
- how to set up tinkerpop for scala HOT 1
- How to get node(s) and children with all properties as a map HOT 5
- Support for list types with cardinality HOT 4
- Scala 2.13 support HOT 4
- Annotations.labelOf is catastrophically slow HOT 4
- g.V(vertexID).headOption() returning null.
- With Sack not initialising properly. HOT 1
- Update gremlin-scala to TinkerPop 3.5.x HOT 2
- Support for scala 3.x HOT 1
- select for tuples have unused type parameter HOT 1
- Unable to build a traversal dynamically with labelled steps
- Tinkerpop 3.6.x support: mergeE / mergeV traversal semantics
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gremlin-scala.