shadaj on master
Update scalacheck to 1.15.2 (#1… (compare)
shadaj on master
Update sbt-mdoc to 2.2.14 (#130) (compare)
sbt clean test
would evade the problem for now
Hi @shadaj,
First off, thank you for the excellent work you're doing on Scalapy :) I'd like to ask you a little bit about 2.13 support, and about writing facades after version 0.3.0 of Scalapy.
A little bit of background: I'm working on a strongly typed, shape-safe library for TensorFlow, using some of the latest Dotty features (I'll open source all of this within a month or two). I'm using Scalapy under the hood to call the Python implementation of TensorFlow, as it's a convenient piece of glue between Scala and the C implementation. Currently, I'm using Scalapy 0.3.0 (which I've ported to 2.13 here MaximeKjaer/scalapy@35dca37, so that I can call it from Dotty-compiled code). I'm using this version as you already had an implementation of a TensorFlow facade for that version that I could base myself on. However, as I'm preparing to open-source my code, I'd like the dependencies to be formalized a little (so that they're on Maven, and not just a git fork). I'd also like to eventually contribute the work I've done on extending the TensorFlow facade back to your project.
Hi @MaximeKjaer!
I am definitely interested in supporting Scala 2.13, just haven't gotten to implementing that yet so PRs are welcome! Yes, we would need to cross compile to 2.12 (and 2.11 for Scala Native) since a good chunk of the community hasn't moved over yet.
From the perspective of scalapy-tensorflow, I don't think any of the changes since 0.3.0 will affect the facades. Most of the work has been on cleaning up the internals with the shared backend between JVM and native.
I'd love to hear more about the type-safe TensorFlow facade! That's a really exciting area, and challenging too, so I'm looking forward to seeing how it works.
Jozsefs-MacBook-Pro:scalapytest joco$ sbt
[info] Loading global plugins from /Users/joco/.sbt/1.0/plugins
[info] Loading project definition from /Users/joco/dev/ml/scalapy/test01/github/scalapytest/project
[info] Loading settings for project root from build.sbt ...
[info] Set current project to ScalaPyTest (in build file:/Users/joco/dev/ml/scalapy/test01/github/scalapytest/)
[info] sbt server started at local:///Users/joco/.sbt/1.0/server/3f6c4d00bf97ae0f90ba/sock
sbt:ScalaPyTest> run
[info] running (fork) example.Hello
[info] code runs
[error] Exception in thread "main" java.lang.Error: java.lang.UnsatisfiedLinkError: jep.MainInterpreter.initializePython([Ljava/lang/String;)V
[error] at jep.MainInterpreter.initialize(MainInterpreter.java:183)
[error] at jep.MainInterpreter.getMainInterpreter(MainInterpreter.java:97)
[error] at jep.Jep.<init>(Jep.java:232)
[error] at jep.Jep.<init>(Jep.java:228)
[error] at me.shadaj.scalapy.py.JepInterpreter.<init>(JepInterpreter.scala:9)
[error] at me.shadaj.scalapy.py.Platform$.newInterpreter(Platform.scala:5)
[error] at me.shadaj.scalapy.py.package$.interpreter(package.scala:11)
[error] at me.shadaj.scalapy.py.Writer$$anon$11.write(Writer.scala:75)
[error] at me.shadaj.scalapy.py.Any$.from(Any.scala:28)
[error] at example.Hello$.delayedEndpoint$example$Hello$1(Hello.scala:6)
[error] at example.Hello$delayedInit$body.apply(Hello.scala:3)
[error] at scala.Function0.apply$mcV$sp(Function0.scala:39)
[error] at scala.Function0.apply$mcV$sp$(Function0.scala:39)
[error] at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:17)
[error] at scala.App.$anonfun$main$1$adapted(App.scala:80)
[error] at scala.collection.immutable.List.foreach(List.scala:392)
[error] at scala.App.main(App.scala:80)
[error] at scala.App.main$(App.scala:78)
[error] at example.Hello$.main(Hello.scala:3)
[error] at example.Hello.main(Hello.scala)
[error] Caused by: java.lang.UnsatisfiedLinkError: jep.MainInterpreter.initializePython([Ljava/lang/String;)V
[error] at jep.MainInterpreter.initializePython(Native Method)
[error] at jep.MainInterpreter.access$100(MainInterpreter.java:64)
[error] at jep.MainInterpreter$1.run(MainInterpreter.java:140)
[error] Nonzero exit code returned from runner: 1
[error] (Compile / run) Nonzero exit code returned from runner: 1
[error] Total time: 1 s, completed Dec 24, 2019 11:51:02 PM
sbt:ScalaPyTest>
scalapy-core:0.3.0
, which is on Maven https://search.maven.org/artifact/me.shadaj/scalapy-core_2.12
[error] Multiple repositories are found:
[error] [meshadaj-1361] status:open, profile:me.shadaj(efba3c89dc27) description: Implicitly created (auto staging).
[error] [meshadaj-1362] status:open, profile:me.shadaj(efba3c89dc27) description: Implicitly created (auto staging).
[error] [meshadaj-1363] status:open, profile:me.shadaj(efba3c89dc27) description: Implicitly created (auto staging).
[error] [meshadaj-1364] status:open, profile:me.shadaj(efba3c89dc27) description: Implicitly created (auto staging).
[error] [meshadaj-1365] status:open, profile:me.shadaj(efba3c89dc27) description: Implicitly created (auto staging).
[error] [meshadaj-1366] status:open, profile:me.shadaj(efba3c89dc27) description: Implicitly created (auto staging).
[error] [meshadaj-1367] status:open, profile:me.shadaj(efba3c89dc27) description: Implicitly created (auto staging).
[error] [meshadaj-1368] status:open, profile:me.shadaj(efba3c89dc27) description: Implicitly created (auto staging).
[error] [meshadaj-1369] status:open, profile:me.shadaj(efba3c89dc27) description: Implicitly created (auto staging).
[error] [meshadaj-1370] status:open, profile:me.shadaj(efba3c89dc27) description: Implicitly created (auto staging).
[error] [meshadaj-1371] status:open, profile:me.shadaj(efba3c89dc27) description: Implicitly created (auto staging).
[error] [meshadaj-1372] status:open, profile:me.shadaj(efba3c89dc27) description: Implicitly created (auto staging).
[error] [meshadaj-1373] status:open, profile:me.shadaj(efba3c89dc27) description: Implicitly created (auto staging).
[error] Specify one of the repository ids in the command line
[error] java.lang.IllegalStateException: Found multiple staging repositories
[error] Use 'last' for the full log.
sbt-sonatype
could help
scalapy-numpy
cross building to 2.13 in this commit MaximeKjaer/scalapy-numpy@d8805dc but would need version 0.3.0+13-0c255e53
of ScalaPy on Maven in order to make builds reproducible