[ 
https://issues.apache.org/jira/browse/TOREE-485?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16628981#comment-16628981
 ] 

Luciano Resende commented on TOREE-485:
---------------------------------------

Ok, this seems like a recent change in Lab that is passing additional metadata 
on the requests and Scala type-safe objects are not accommodating these changes:

 

The IDs of all deleted cells since the last run cell are now passed as part of
the cell metadata on execution. The IDs of deleted cells since the last run
cell are stored as ``deletedCells`` in ``NotebookModel``. This helps in
developing reactive kernels. (`#5037
<[https://github.com/jupyterlab/jupyterlab/pull/5037]>`__)

 

Contents looks like:
{"deletedCells":[],"cellId":"d01fdb74-4760-4bd2-91d7-11f85977cb43"}

The issue is that v5.Metadata does not seem to accommodate these new values.

> Not able to run Toree kernel in JupyterLab 0.34
> -----------------------------------------------
>
>                 Key: TOREE-485
>                 URL: https://issues.apache.org/jira/browse/TOREE-485
>             Project: TOREE
>          Issue Type: Bug
>         Environment: Ubuntu 18.04, Python 3.6.6, JupyterLab v0.34.12, Apache 
> Toree 0.2.0-rc6
>            Reporter: Sergey Kuznetsov
>            Priority: Major
>
> 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:
> {noformat}
> 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){noformat}
> 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



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to