Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Confusing Message when Scala/Clojure package extracts the native library from jar #13108

Closed
gigasquid opened this issue Nov 4, 2018 · 2 comments

Comments

@gigasquid
Copy link
Member

The message when the Scala package extracts the native library from the jar is not very clear and causing some confusion with users. This issue is to explore how/if we can improve it.

INFO  MXNetJVM: Try loading mxnet-scala from native path.
INFO  MXNetJVM: Try loading mxnet-scala-linux-x86_64-gpu from native path.
INFO  MXNetJVM: Try loading mxnet-scala-linux-x86_64-cpu from native path.
WARN  MXNetJVM: MXNet Scala native library not found in path. Copying native library from the archive. Consider installing the library somewhere in the path (for Windows: PATH, for Linux: LD_LIBRARY_PATH), or specifying by Java cmd option -Djava.library.path=[lib path].
INFO  org.apache.mxnet.util.NativeLibraryLoader: Loading libmxnet-scala.so from /lib/native/ copying to mxnet-scala

The message comes from where the native library is being extracted out of the jar, copies it to a temp file, and then loads it into memory from there https://github.com/apache/incubator-mxnet/blob/master/scala-package/core/src/main/scala/org/apache/mxnet/util/NativeLibraryLoader.scala#L92

It was originally brought up by @kohr-h in #12881

@gigasquid gigasquid changed the title Confusing Message when Scala package extracts the native library from jar Confusing Message when Scala/Clojure package extracts the native library from jar Nov 4, 2018
@gigasquid
Copy link
Member Author

Pinging @nswamy @yzhliu @lanking520

@lanking520
Copy link
Member

Thanks for raising this issue. I also checked about this before, looks like we need to fix some paths issues.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants