Uploaded image for project: 'TOREE'
  1. TOREE
  2. TOREE-485

Not able to run Toree kernel in JupyterLab 0.34

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.3.0
    • None
    • None
    • Ubuntu 18.04, Python 3.6.6, JupyterLab v0.34.12, Apache Toree 0.2.0-rc6

    Description

      Hello! I've been using Toree kernel in JupyterLab (Python 2.7) versions 0.32 and 0.33 for some time and it worked great. Recently I updated JupyterLab to version 0.34 that supports only Python 3 and now I'm not ably to run Scala code in Toree. The kernel starts fine, without any warnings, but once I executed the cell with simple import I get the following error:

      ERROR OneForOneStrategy:159 - JsResultException(errors:List((/deletedCells,List(ValidationError(error.expected.jsstring,WrappedArray())))))
      play.api.libs.json.JsResultException: JsResultException(errors:List((/deletedCells,List(ValidationError(error.expected.jsstring,WrappedArray())))))
        at play.api.libs.json.JsValue$$anonfun$2.apply(JsValue.scala:67)
        at play.api.libs.json.JsValue$$anonfun$2.apply(JsValue.scala:67)
        at play.api.libs.json.JsResult$class.fold(JsResult.scala:77)
        at play.api.libs.json.JsError.fold(JsResult.scala:13)
        at play.api.libs.json.JsValue$class.as(JsValue.scala:65)
        at play.api.libs.json.JsObject.as(JsValue.scala:166)
        at org.apache.toree.kernel.protocol.v5.kernel.Utilities$.ZMQMessageToKernelMessage(Utilities.scala:69)
        at org.apache.toree.kernel.protocol.v5.kernel.socket.ZeromqKernelMessageSocket$$anonfun$receive$1.applyOrElse(ZeromqKernelMessageSocket.scala:48)
        at akka.actor.Actor$class.aroundReceive(Actor.scala:502)
        at org.apache.toree.kernel.protocol.v5.kernel.socket.ZeromqKernelMessageSocket.aroundReceive(ZeromqKernelMessageSocket.scala:39)
        at akka.actor.ActorCell.receiveMessage(ActorCell.scala:526)
        at akka.actor.ActorCell.invoke(ActorCell.scala:495)
        at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:257)
        at akka.dispatch.Mailbox.run(Mailbox.scala:224)
        at akka.dispatch.Mailbox.exec(Mailbox.scala:234)
        at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
        at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
        at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
        at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
      2018-09-26 14:45:29 ERROR ZeroMQSocketRunnable:167 - Unexpected exception in 0mq socket runnable!
      org.zeromq.ZMQException: Errno 48 : Address already in use
        at org.zeromq.ZMQ$Socket.mayRaise(ZMQ.java:1425)
        at org.zeromq.ZMQ$Socket.bind(ZMQ.java:1187)
        at org.zeromq.ZMQ$Socket.bind(ZMQ.java:1148)
        at org.apache.toree.communication.socket.ZeroMQSocketRunnable$$anonfun$processOptions$2.apply(ZeroMQSocketRunnable.scala:88)
        at org.apache.toree.communication.socket.ZeroMQSocketRunnable$$anonfun$processOptions$2.apply(ZeroMQSocketRunnable.scala:87)
        at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)
        at scala.collection.mutable.WrappedArray.foreach(WrappedArray.scala:35)
        at org.apache.toree.communication.socket.ZeroMQSocketRunnable.processOptions(ZeroMQSocketRunnable.scala:87)
        at org.apache.toree.communication.socket.ZeroMQSocketRunnable.run(ZeroMQSocketRunnable.scala:144)
        at java.lang.Thread.run(Thread.java:748)

      I tried to update Toree: install with pip3 the latest rc6 release, but the issue remains. Is there any way to fix this?

       

      Thanks,

      Sergey

      Attachments

        Issue Links

          Activity

            People

              lresende Luciano Resende
              sergey_kk Sergey Kuznetsov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: