You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mxnet.apache.org by GitBox <gi...@apache.org> on 2021/11/08 23:33:54 UTC

[GitHub] [incubator-mxnet] lion241 opened a new issue #20733: Scala runtime issues for mxnet

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-unsubscribe@mxnet.apache.org

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



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


[GitHub] [incubator-mxnet] github-actions[bot] commented on issue #20733: Scala runtime issues for mxnet

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #20733:
URL: https://github.com/apache/incubator-mxnet/issues/20733#issuecomment-963672846


   Welcome to Apache MXNet (incubating)! We are on a mission to democratize AI, and we are glad that you are contributing to it by opening this issue.
   Please make sure to include all the relevant context, and one of the @apache/mxnet-committers will be here shortly.
   If you are interested in contributing to our project, let us know! Also, be sure to check out our guide on [contributing to MXNet](https://mxnet.apache.org/community/contribute) and our [development guides wiki](https://cwiki.apache.org/confluence/display/MXNET/Developments).


-- 
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-unsubscribe@mxnet.apache.org

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



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