vegas-viz / Vegas

The missing MatPlotLib for Scala + Spark
MIT License
730 stars 98 forks source link

Error initializing dependencies in Jupyter/Toree #101

Open HawkinsJM opened 7 years ago

HawkinsJM commented 7 years ago

I'm trying to get Vegas working in Jupyter via Toree under Spark 2.1.0 and Scala 2.11.

When I run: %AddDeps org.vegas-viz vegas_2.11 0.3.8 --transitive --verbose

I get the attached errors from jupyters console. jupyter_out.txt

And this output in the notebook itself. nb_out.txt

Is this just an issue with Scala 2.11 not being supported yet?

ostrokach commented 7 years ago

Same error here with Toree 0.2.0.dev1 and Spark 2.1.1:

Notebook
Marking org.vegas-viz:vegas_2.11:0.3.6 for download
Preparing to fetch from:
-> file:/tmp/toree-tmp-dir1302372874294090186/toree_add_deps/
-> https://repo1.maven.org/maven2
-> New file at /tmp/toree-tmp-dir1302372874294090186/toree_add_deps/https/repo1.maven.org/maven2/org/webjars/bower/vega/3.0.0-beta.32/vega-3.0.0-beta.32.jar
-> New file at /tmp/toree-tmp-dir1302372874294090186/toree_add_deps/https/repo1.maven.org/maven2/org/scalaz/scalaz-core_2.11/7.1.1/scalaz-core_2.11-7.1.1.jar
-> New file at /tmp/toree-tmp-dir1302372874294090186/toree_add_deps/https/repo1.maven.org/maven2/org/spire-math/algebra_2.11/0.3.1/algebra_2.11-0.3.1.jar
-> New file at /tmp/toree-tmp-dir1302372874294090186/toree_add_deps/https/repo1.maven.org/maven2/org/vegas-viz/vegas_2.11/0.3.6/vegas_2.11-0.3.6.jar
-> New file at /tmp/toree-tmp-dir1302372874294090186/toree_add_deps/https/repo1.maven.org/maven2/com/chuusai/shapeless_2.11/2.3.0/shapeless_2.11-2.3.0.jar
-> New file at /tmp/toree-tmp-dir1302372874294090186/toree_add_deps/https/repo1.maven.org/maven2/org/scala-lang/modules/scala-parser-combinators_2.11/1.0.2/scala-parser-combinators_2.11-1.0.2.jar
-> New file at /tmp/toree-tmp-dir1302372874294090186/toree_add_deps/https/repo1.maven.org/maven2/org/typelevel/cats-core_2.11/0.4.1/cats-core_2.11-0.4.1.jar
-> New file at /tmp/toree-tmp-dir1302372874294090186/toree_add_deps/https/repo1.maven.org/maven2/org/spire-math/algebra-std_2.11/0.3.1/algebra-std_2.11-0.3.1.jar
-> New file at /tmp/toree-tmp-dir1302372874294090186/toree_add_deps/https/repo1.maven.org/maven2/org/scalafx/scalafx_2.11/8.0.92-R10/scalafx_2.11-8.0.92-R10.jar
-> New file at /tmp/toree-tmp-dir1302372874294090186/toree_add_deps/https/repo1.maven.org/maven2/org/webjars/bower/vega-lite/1.2.0/vega-lite-1.2.0.jar
-> New file at /tmp/toree-tmp-dir1302372874294090186/toree_add_deps/https/repo1.maven.org/maven2/io/circe/circe-parser_2.11/0.4.1/circe-parser_2.11-0.4.1.jar
-> New file at /tmp/toree-tmp-dir1302372874294090186/toree_add_deps/https/repo1.maven.org/maven2/com/github/julien-truffaut/monocle-core_2.11/1.1.0/monocle-core_2.11-1.1.0.jar
-> New file at /tmp/toree-tmp-dir1302372874294090186/toree_add_deps/https/repo1.maven.org/maven2/io/circe/circe-core_2.11/0.4.1/circe-core_2.11-0.4.1.jar
-> New file at /tmp/toree-tmp-dir1302372874294090186/toree_add_deps/https/repo1.maven.org/maven2/org/vegas-viz/vegas-macros_2.11/0.3.6/vegas-macros_2.11-0.3.6.jar
-> New file at /tmp/toree-tmp-dir1302372874294090186/toree_add_deps/https/repo1.maven.org/maven2/org/typelevel/machinist_2.11/0.4.1/machinist_2.11-0.4.1.jar
-> New file at /tmp/toree-tmp-dir1302372874294090186/toree_add_deps/https/repo1.maven.org/maven2/org/spire-math/jawn-parser_2.11/0.8.4/jawn-parser_2.11-0.8.4.jar
-> New file at /tmp/toree-tmp-dir1302372874294090186/toree_add_deps/https/repo1.maven.org/maven2/io/circe/circe-generic_2.11/0.4.1/circe-generic_2.11-0.4.1.jar
-> New file at /tmp/toree-tmp-dir1302372874294090186/toree_add_deps/https/repo1.maven.org/maven2/org/typelevel/macro-compat_2.11/1.1.1/macro-compat_2.11-1.1.1.jar
-> New file at /tmp/toree-tmp-dir1302372874294090186/toree_add_deps/https/repo1.maven.org/maven2/org/scala-lang/modules/scala-xml_2.11/1.0.2/scala-xml_2.11-1.0.2.jar
-> New file at /tmp/toree-tmp-dir1302372874294090186/toree_add_deps/https/repo1.maven.org/maven2/org/typelevel/cats-macros_2.11/0.4.1/cats-macros_2.11-0.4.1.jar
-> New file at /tmp/toree-tmp-dir1302372874294090186/toree_add_deps/https/repo1.maven.org/maven2/com/github/mpilquist/simulacrum_2.11/0.7.0/simulacrum_2.11-0.7.0.jar
-> New file at /tmp/toree-tmp-dir1302372874294090186/toree_add_deps/https/repo1.maven.org/maven2/io/circe/circe-jawn_2.11/0.4.1/circe-jawn_2.11-0.4.1.jar
-> New file at /tmp/toree-tmp-dir1302372874294090186/toree_add_deps/https/repo1.maven.org/maven2/io/circe/circe-numbers_2.11/0.4.1/circe-numbers_2.11-0.4.1.jar
-> New file at /tmp/toree-tmp-dir1302372874294090186/toree_add_deps/https/repo1.maven.org/maven2/com/github/julien-truffaut/monocle-macro_2.11/1.1.0/monocle-macro_2.11-1.1.0.jar
scala.reflect.internal.Definitions$DefinitionsClass.scala$reflect$internal$Definitions$DefinitionsClass$$fatalMissingSymbol(Definitions.scala:1186)
scala.reflect.internal.Definitions$DefinitionsClass.getMember(Definitions.scala:1203)
scala.reflect.internal.Definitions$DefinitionsClass.getMemberMethod(Definitions.scala:1238)
scala.reflect.internal.Definitions$DefinitionsClass$RunDefinitions.Predef_classOf$lzycompute(Definitions.scala:1469)
scala.reflect.internal.Definitions$DefinitionsClass$RunDefinitions.Predef_classOf(Definitions.scala:1469)
scala.reflect.internal.Definitions$DefinitionsClass$RunDefinitions.isPredefClassOf(Definitions.scala:1459)
scala.tools.nsc.typechecker.Typers$Typer.typedIdent$2(Typers.scala:4885)
scala.tools.nsc.typechecker.Typers$Typer.typedIdentOrWildcard$1(Typers.scala:4908)
scala.tools.nsc.typechecker.Typers$Typer.typedInAnyMode$1(Typers.scala:5340)
scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5360)
scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5396)
scala.tools.nsc.typechecker.Typers$Typer.scala$tools$nsc$typechecker$Typers$Typer$$typedInternal(Typers.scala:5423)
scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5370)
scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5374)
scala.tools.nsc.interpreter.ReplGlobal$$anon$1$$anon$2.typed(ReplGlobal.scala:36)
scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:5472)
scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:5480)
scala.tools.nsc.typechecker.Typers$Typer.typedPackageDef$1(Typers.scala:5012)
scala.tools.nsc.typechecker.Typers$Typer.typedMemberDef$1(Typers.scala:5312)
scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5359)
scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5396)
scala.tools.nsc.typechecker.Typers$Typer.scala$tools$nsc$typechecker$Typers$Typer$$typedInternal(Typers.scala:5423)
scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5370)
scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5374)
scala.tools.nsc.interpreter.ReplGlobal$$anon$1$$anon$2.typed(ReplGlobal.scala:36)
scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5448)
scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3.apply(Analyzer.scala:102)
scala.tools.nsc.Global$GlobalPhase$$anonfun$applyPhase$1.apply$mcV$sp(Global.scala:440)
scala.tools.nsc.Global$GlobalPhase.withCurrentUnit(Global.scala:431)
scala.tools.nsc.Global$GlobalPhase.applyPhase(Global.scala:440)
scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3$$anonfun$run$1.apply(Analyzer.scala:94)
scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3$$anonfun$run$1.apply(Analyzer.scala:93)
scala.collection.Iterator$class.foreach(Iterator.scala:893)
scala.collection.AbstractIterator.foreach(Iterator.scala:1336)
scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3.run(Analyzer.scala:93)
scala.tools.nsc.Global$Run.compileUnitsInternal(Global.scala:1501)
scala.tools.nsc.Global$Run.compileUnits(Global.scala:1486)
scala.tools.nsc.Global$Run.compileSources(Global.scala:1481)
scala.tools.nsc.interpreter.IMain.compileSourcesKeepingRun(IMain.scala:435)
scala.tools.nsc.interpreter.IMain$ReadEvalPrint.compileAndSaveRun(IMain.scala:855)
scala.tools.nsc.interpreter.IMain$ReadEvalPrint.compile(IMain.scala:813)
scala.tools.nsc.interpreter.IMain$Request.compile$lzycompute(IMain.scala:1002)
scala.tools.nsc.interpreter.IMain$Request.compile(IMain.scala:997)
scala.tools.nsc.interpreter.IMain.compile(IMain.scala:579)
scala.tools.nsc.interpreter.IMain.compiled(IMain.scala:591)
scala.tools.nsc.interpreter.IMain.eval(IMain.scala:1074)
javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:264)
org.apache.toree.kernel.interpreter.scala.ScalaInterpreterSpecific$class.read(ScalaInterpreterSpecific.scala:262)
org.apache.toree.kernel.interpreter.scala.ScalaInterpreter.read(ScalaInterpreter.scala:44)
org.apache.toree.kernel.protocol.v5.magic.PostProcessor$$anonfun$1.apply(PostProcessor.scala:29)
org.apache.toree.kernel.protocol.v5.magic.PostProcessor$$anonfun$1.apply(PostProcessor.scala:29)
scala.Option.flatMap(Option.scala:171)
org.apache.toree.kernel.protocol.v5.magic.PostProcessor.process(PostProcessor.scala:29)
org.apache.toree.kernel.protocol.v5.relay.ExecuteRequestRelay$$anonfun$org$apache$toree$kernel$protocol$v5$relay$ExecuteRequestRelay$$packageFutureResponse$1.apply(ExecuteRequestRelay.scala:80)
org.apache.toree.kernel.protocol.v5.relay.ExecuteRequestRelay$$anonfun$org$apache$toree$kernel$protocol$v5$relay$ExecuteRequestRelay$$packageFutureResponse$1.apply(ExecuteRequestRelay.scala:77)
scala.util.Success$$anonfun$map$1.apply(Try.scala:237)
scala.util.Try$.apply(Try.scala:192)
scala.util.Success.map(Try.scala:237)
scala.concurrent.Future$$anonfun$map$1.apply(Future.scala:237)
scala.concurrent.Future$$anonfun$map$1.apply(Future.scala:237)
scala.concurrent.impl.CallbackRunnable.run(Promise.scala:32)
akka.dispatch.BatchingExecutor$AbstractBatch.processBatch(BatchingExecutor.scala:55)
akka.dispatch.BatchingExecutor$BlockableBatch$$anonfun$run$1.apply$mcV$sp(BatchingExecutor.scala:91)
akka.dispatch.BatchingExecutor$BlockableBatch$$anonfun$run$1.apply(BatchingExecutor.scala:91)
akka.dispatch.BatchingExecutor$BlockableBatch$$anonfun$run$1.apply(BatchingExecutor.scala:91)
scala.concurrent.BlockContext$.withBlockContext(BlockContext.scala:72)
akka.dispatch.BatchingExecutor$BlockableBatch.run(BatchingExecutor.scala:90)
akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:39)
akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:415)
scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
Console
scala.reflect.internal.FatalError: object Predef does not have a member classOf
        at scala.reflect.internal.Definitions$DefinitionsClass.scala$reflect$internal$Definitions$DefinitionsClass$$fatalMissingSymbol(Definitions.scala:1186)
        at scala.reflect.internal.Definitions$DefinitionsClass.getMember(Definitions.scala:1203)
        at scala.reflect.internal.Definitions$DefinitionsClass.getMemberMethod(Definitions.scala:1238)
        at scala.reflect.internal.Definitions$DefinitionsClass$RunDefinitions.Predef_classOf$lzycompute(Definitions.scala:1469)
        at scala.reflect.internal.Definitions$DefinitionsClass$RunDefinitions.Predef_classOf(Definitions.scala:1469)
        at scala.reflect.internal.Definitions$DefinitionsClass$RunDefinitions.isPredefClassOf(Definitions.scala:1459)
        at scala.tools.nsc.typechecker.Typers$Typer.typedIdent$2(Typers.scala:4885)
        at scala.tools.nsc.typechecker.Typers$Typer.typedIdentOrWildcard$1(Typers.scala:4908)
        at scala.tools.nsc.typechecker.Typers$Typer.typedInAnyMode$1(Typers.scala:5340)
        at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5360)
        at scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5396)
        at scala.tools.nsc.typechecker.Typers$Typer.scala$tools$nsc$typechecker$Typers$Typer$$typedInternal(Typers.scala:5423)
        at scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5370)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5374)
        at scala.tools.nsc.interpreter.ReplGlobal$$anon$1$$anon$2.typed(ReplGlobal.scala:36)
        at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:5472)
        at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:5480)
        at scala.tools.nsc.typechecker.Typers$Typer.typedPackageDef$1(Typers.scala:5012)
        at scala.tools.nsc.typechecker.Typers$Typer.typedMemberDef$1(Typers.scala:5312)
        at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5359)
        at scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5396)
        at scala.tools.nsc.typechecker.Typers$Typer.scala$tools$nsc$typechecker$Typers$Typer$$typedInternal(Typers.scala:5423)
        at scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5370)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5374)
        at scala.tools.nsc.interpreter.ReplGlobal$$anon$1$$anon$2.typed(ReplGlobal.scala:36)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5448)
        at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3.apply(Analyzer.scala:102)
        at scala.tools.nsc.Global$GlobalPhase$$anonfun$applyPhase$1.apply$mcV$sp(Global.scala:440)
        at scala.tools.nsc.Global$GlobalPhase.withCurrentUnit(Global.scala:431)
        at scala.tools.nsc.Global$GlobalPhase.applyPhase(Global.scala:440)
        at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3$$anonfun$run$1.apply(Analyzer.scala:94)
        at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3$$anonfun$run$1.apply(Analyzer.scala:93)
        at scala.collection.Iterator$class.foreach(Iterator.scala:893)
        at scala.collection.AbstractIterator.foreach(Iterator.scala:1336)
        at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3.run(Analyzer.scala:93)
        at scala.tools.nsc.Global$Run.compileUnitsInternal(Global.scala:1501)
        at scala.tools.nsc.Global$Run.compileUnits(Global.scala:1486)
        at scala.tools.nsc.Global$Run.compileSources(Global.scala:1481)
        at scala.tools.nsc.interpreter.IMain.compileSourcesKeepingRun(IMain.scala:435)
        at scala.tools.nsc.interpreter.IMain$ReadEvalPrint.compileAndSaveRun(IMain.scala:855)
        at scala.tools.nsc.interpreter.IMain$ReadEvalPrint.compile(IMain.scala:813)
        at scala.tools.nsc.interpreter.IMain$Request.compile$lzycompute(IMain.scala:1002)
        at scala.tools.nsc.interpreter.IMain$Request.compile(IMain.scala:997)
        at scala.tools.nsc.interpreter.IMain.compile(IMain.scala:579)
        at scala.tools.nsc.interpreter.IMain.interpret(IMain.scala:567)
        at scala.tools.nsc.interpreter.IMain.interpret(IMain.scala:565)
        at org.apache.toree.kernel.interpreter.scala.ScalaInterpreterSpecific$$anonfun$interpretAddTask$1$$anonfun$apply$3.apply(ScalaInterpreterSpecific.scala:386)
        at org.apache.toree.kernel.interpreter.scala.ScalaInterpreterSpecific$$anonfun$interpretAddTask$1$$anonfun$apply$3.apply(ScalaInterpreterSpecific.scala:381)
        at scala.util.DynamicVariable.withValue(DynamicVariable.scala:58)
        at scala.Console$.withErr(Console.scala:80)
        at org.apache.toree.global.StreamState$$anonfun$1$$anonfun$apply$1.apply(StreamState.scala:73)
        at scala.util.DynamicVariable.withValue(DynamicVariable.scala:58)
        at scala.Console$.withOut(Console.scala:53)
        at org.apache.toree.global.StreamState$$anonfun$1.apply(StreamState.scala:72)
        at scala.util.DynamicVariable.withValue(DynamicVariable.scala:58)
        at scala.Console$.withIn(Console.scala:124)
        at org.apache.toree.global.StreamState$.withStreams(StreamState.scala:71)
        at org.apache.toree.kernel.interpreter.scala.ScalaInterpreterSpecific$$anonfun$interpretAddTask$1.apply(ScalaInterpreterSpecific.scala:380)
        at org.apache.toree.kernel.interpreter.scala.ScalaInterpreterSpecific$$anonfun$interpretAddTask$1.apply(ScalaInterpreterSpecific.scala:380)
        at org.apache.toree.utils.TaskManager$$anonfun$add$2$$anon$1.run(TaskManager.scala:140)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
pday commented 7 years ago

+1

rgbkrk commented 7 years ago

@rdblue - what's the recommendation here? Are there toree changes we had to make for this?

saatvikshah commented 7 years ago

Facing the same issue with the AddJar magic too

kervel commented 7 years ago

Actually, this problem also shows with other libraries, so i guess it's more a toree problem not a vegas problem. I got exactly the same problem with %AddDeps org.scalikejdbc scalikejdbc_2.11 3.0.2 -transitive

kervel commented 7 years ago

Actually, i think this issue is a duplicate of https://issues.apache.org/jira/browse/TOREE-420 and can be closed

Alotor commented 7 years ago

I've worked around this issue by adding one by one all the dependencies and not including the ones inside org.scala-lang.modules group.

I leave the list here so anyone can at least work while the issue in Toree is resolved.

Just add the following to your notebook:

%AddDeps org.typelevel cats-core_2.11 0.9.0
%AddDeps org.typelevel cats-kernel_2.11 0.9.0
%AddDeps org.typelevel cats-macros_2.11 0.9.0
%AddDeps io.circe circe-core_2.11 0.7.0
%AddDeps io.circe circe-generic_2.11 0.7.0
%AddDeps io.circe circe-jawn_2.11 0.7.0
%AddDeps io.circe circe-numbers_2.11 0.7.0
%AddDeps io.circe circe-parser_2.11 0.7.0
%AddDeps org.spire-math jawn-parser_2.11 0.10.4
%AddDeps org.typelevel machinist_2.11 0.6.1
%AddDeps org.typelevel macro-compat_2.11 1.1.1
%AddDeps com.github.julien-truffaut monocle-core_2.11 1.1.0
%AddDeps com.github.julien-truffaut monocle-macro_2.11 1.1.0
%AddDeps org.scalafx scalafx_2.11-8 0.92-R10
%AddDeps org.scalaz scalaz-core_2.11 7.1.1
%AddDeps com.chuusai shapeless_2.11 2.3.2
%AddDeps com.github.mpilquist simulacrum_2.11 0.10.0
%AddDeps org.webjars.bower vega-3 0.0-rc4
%AddDeps org.webjars.bower vega-lite 1.2.0
%AddDeps org.vegas-viz vegas_2.11 0.3.11
%AddDeps org.vegas-viz vegas-macros_2.11 0.3.11

I hope someone find this useful :smile:

rBlue commented 7 years ago

you got the wrong rblue

On Thu, Sep 7, 2017 at 8:41 AM, Alonso Torres notifications@github.com wrote:

I've worked around this issue by adding one by one all the dependencies and not including the ones inside org.scala-lang.modules group.

I leave the list here so anyone can at least work while the issue in Toree is resolved.

Just add the following to your notebook:

%AddDeps org.typelevel cats-core_2.11 0.9.0 %AddDeps org.typelevel cats-kernel_2.11 0.9.0 %AddDeps org.typelevel cats-macros_2.11 0.9.0 %AddDeps io.circe circe-core_2.11 0.7.0 %AddDeps io.circe circe-generic_2.11 0.7.0 %AddDeps io.circe circe-jawn_2.11 0.7.0 %AddDeps io.circe circe-numbers_2.11 0.7.0 %AddDeps io.circe circe-parser_2.11 0.7.0 %AddDeps org.spire-math jawn-parser_2.11 0.10.4 %AddDeps org.typelevel machinist_2.11 0.6.1 %AddDeps org.typelevel macro-compat_2.11 1.1.1 %AddDeps com.github.julien-truffaut monocle-core_2.11 1.1.0 %AddDeps com.github.julien-truffaut monocle-macro_2.11 1.1.0 %AddDeps org.scalafx scalafx_2.11-8 0.92-R10 %AddDeps org.scalaz scalaz-core_2.11 7.1.1 %AddDeps com.chuusai shapeless_2.11 2.3.2 %AddDeps com.github.mpilquist simulacrum_2.11 0.10.0 %AddDeps org.webjars.bower vega-3 0.0-rc4 %AddDeps org.webjars.bower vega-lite 1.2.0 %AddDeps org.vegas-viz vegas_2.11 0.3.11 %AddDeps org.vegas-viz vegas-macros_2.11 0.3.11

I hope someone find this useful 😄

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/vegas-viz/Vegas/issues/101#issuecomment-327787333, or mute the thread https://github.com/notifications/unsubscribe-auth/AHS7iLRaiM5nfk9TLgEz4zpF83PKqPoMks5sf-SIgaJpZM4Mf1uU .

-- Robert Blue Bachelor's Degree Information Technology RIT '10 Phi Beta Sigma Fraternity Inc - Theta Upsilon Sigma Chapter

rdblue commented 7 years ago

You have to use the same Scala version for all libraries in your Scala interpreter. If you're using Toree compiled for Scala 2.10, then this would happen. Be sure you've compiled Toree for 2.11.

Also, make sure you don't pull in any classes in the scala package because it breaks the Scala interpreter when classes are redefined. I think there's a patch in master to avoid pulling in Scala artifacts, but it can happen if you have a single class in a different Jar that defines something in the scala package. That's a bug in the way the Scala interpreter/compiler handles classes in 2.11 and there's not much we can do to fix it.

rBlue commented 7 years ago

You gave the wrong rblue cc'd in these emails.

On Sep 7, 2017 12:54 PM, "Ryan Blue" notifications@github.com wrote:

You have to use the same Scala version for all libraries in your Scala interpreter. If you're using Toree compiled for Scala 2.10, then this would happen. Be sure you've compiled Toree for 2.11.

Also, make sure you don't pull in any classes in the scala package because it breaks the Scala interpreter when classes are redefined. I think there's a patch in master to avoid pulling in Scala artifacts, but it can happen if you have a single class in a different Jar that defines something in the scala package. That's a bug in the way the Scala interpreter/compiler handles classes in 2.11 and there's not much we can do to fix it.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/vegas-viz/Vegas/issues/101#issuecomment-327859687, or mute the thread https://github.com/notifications/unsubscribe-auth/AHS7iMh0BoBMzQNTqvhBoA5Xus79oFuLks5sgB_PgaJpZM4Mf1uU .

rdblue commented 7 years ago

@rBlue, sorry you were included by accident. You can mute the notifications using the link in the email footer.

kervel commented 7 years ago

For reference, i can confirm that after applying the pull request associated with https://issues.apache.org/jira/browse/TOREE-420 , vegas works again on toree.

Also, i tried to create a more generic approach to excluding dependencies in toree in order to be able to do: %AddDeps org.vegas-viz vegas_2.11 0.3.11 --transitive --exclude org.scala-lang:* --exclude org.scala-lang.modules:*

the work is here: https://github.com/Kapernikov/incubator-toree/tree/depExcludes

rBlue commented 7 years ago

Stop CC'ing rblue. You got the wrong rblue.

On Sep 12, 2017 8:13 AM, "Frank Dekervel" notifications@github.com wrote:

For reference, i can confirm that after applying the pull request associated with https://issues.apache.org/jira/browse/TOREE-420 , vegas works again on toree.

Also, i tried to create a more generic approach to excluding dependencies in toree in order to be able to do: %AddDeps org.vegas-viz vegas_2.11 0.3.11 --transitive --exclude org.scala-lang: --exclude org.scala-lang.modules:

the work is here: https://github.com/Kapernikov/incubator-toree/tree/ depExcludes

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/vegas-viz/Vegas/issues/101#issuecomment-328833941, or mute the thread https://github.com/notifications/unsubscribe-auth/AHS7iC6bEhM4Nlm9N2MC_AVNPTCItPoIks5shnVYgaJpZM4Mf1uU .

rdblue commented 7 years ago

Notifications are automatic when you've been mentioned. If you want to stop receiving notifications, you need to mute the thread. There's a link in the e-mail.