lion241 opened a new issue #20733:
URL: https://github.com/apache/incubator-mxnet/issues/20733


   ## Description
   I am trying to use MXnet in scala, there are no clear instructions on the 
issue of installation and running something simple.
   
   
   ### Error Message
   log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for 
more info.
   Exception in thread "main" java.lang.UnsatisfiedLinkError: Couldn't find the 
resource libmxnet-scala.jnilib
        at 
ml.dmlc.mxnet.util.NativeLibraryLoader$.loadLibrary(NativeLibraryLoader.scala:90)
        at ml.dmlc.mxnet.Base$.<init>(Base.scala:70)
        at ml.dmlc.mxnet.Base$.<clinit>(Base.scala)
        at ml.dmlc.mxnet.NDArray$.initNDArrayModule(NDArray.scala:151)
        at ml.dmlc.mxnet.NDArray$.<init>(NDArray.scala:38)
        at ml.dmlc.mxnet.NDArray$.<clinit>(NDArray.scala)
        at TrainMnist$.main(TrainMnist.scala:70)
        at TrainMnist.main(TrainMnist.scala)
   
   ## To Reproduce
   (If you developed your own code, please provide a short script that 
reproduces the error. For existing examples, please provide link.)
   
   
   
   ### Steps to reproduce
   (Paste the commands you ran that produced the error.)
   
   import ml.dmlc.mxnet._
   
   object test {
   
     val arr = NDArray.ones(2, 3)
   
     print(arr)
   
   
   }
   
   
   ## What have you tried to solve it?
   
   I am a bit new in scala but the website maven installation did not manage to 
load the package.
   
   when i tried to add the archtype , nothing was added . I got stuck at :
   
   GroupId net.alchim31.maven ArtifactId scala-archetype-simple Version 1.6 
Repository 
https://mvnrepository.com/artifact/net.alchim31.maven/scala-archetype-simple
   
   I tried to using sbt but it claims package is not found as a build error :
   libraryDependencies += "org.apache.mxnet" % "mxnet-full_2.11-osx-x86_64-cpu" 
% "1.5.0"
   
   This one seems to work:
   libraryDependencies += "ml.dmlc.mxnet" %% "mxnet-core" % "0.9.3a"
   
   ## Environment
   
   sbt=1.1.6
   scalaVersion := "2.11.12"
   Java 8
   
   <details>
   <summary>Environment Information</summary>
   
   ```
   # Paste the diagnose.py command output here
   ```
   
   </details>
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@mxnet.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@mxnet.apache.org
For additional commands, e-mail: issues-h...@mxnet.apache.org

Reply via email to