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

[GitHub] zachgk opened a new issue #12523: Updates to tutorial "Run MXNet Scala Examples Using the IntelliJ IDE (macOS)"

zachgk opened a new issue #12523: Updates to tutorial "Run MXNet Scala Examples Using the IntelliJ IDE (macOS)"
URL: https://github.com/apache/incubator-mxnet/issues/12523
 
 
   ## Description
   There are some minor problems with the [scala intellij tutorial](https://mxnet.incubator.apache.org/tutorials/scala/mxnet_scala_on_intellij.html) with code [here](https://github.com/apache/incubator-mxnet/blob/master/docs/tutorials/scala/mxnet_scala_on_intellij.md) that could be fixed to improve the experience for new users following the tutorial.
   
   ## Issues
   
   - When I added the MXNet package as a dependency to the pom.xml by copying the XML from the tutorial, the package version specified (1.2.0) could not be found with Intellij notification error `Failed to read artifact descriptor for org.apache.mxnet:mxnet-full_2.11-osx-x86_64-cpu:jar:1.2.0 `.  Updating the version to 1.2.1 fixed this issue.
   - With the initial code, the sample specification file specs.scala is missing a dependency. It causes an error when trying to run the app on step 6
   - When running, the following warning shows up: 
   ```
   SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
   SLF4J: Defaulting to no-operation (NOP) logger implementation
   SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
   ```
     I was able to resolve it by adding the org.slf4j api and log4j12 dependencies: 
   ```
       <dependency>
         <groupId>org.slf4j</groupId>
         <artifactId>slf4j-api</artifactId>
         <version>${slf4jVersion}</version>
       </dependency>
       <dependency>
         <groupId>org.slf4j</groupId>
         <artifactId>slf4j-log4j12</artifactId>
         <version>${slf4jVersion}</version>
       </dependency>
   ```
   - The tutorial should additionally include the file target/classes/log4j.properties
   - It might be worth including a note for users building mxnet scala from source that they can use the scala mxnet they built as opposed to the version from maven by changing the pom.xml.  For me (and my SystemPath including my user), it looks like:
   ```
       <dependency>
         <groupId>org.apache.mxnet</groupId>
         <artifactId>mxnet-full_${scala.binary.version}-${platform}</artifactId>
         <version>1.3.0</version>
         <scope>system</scope>
         <systemPath>/Users/kimbergz/Projects/incubator-mxnet/scala-package/assembly/osx-x86_64-cpu/target/mxnet-full_2.11-osx-x86_64-cpu-1.3.0-SNAPSHOT.jar</systemPath>
       </dependency>
   ```
   
   ## Environment info (Required)
   ```
   ----------Python Info----------
   Version      : 3.6.5
   Compiler     : GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)
   Build        : ('default', 'Apr 26 2018 08:42:37')
   Arch         : ('64bit', '')
   ------------Pip Info-----------
   Version      : 18.0
   Directory    : /usr/local/anaconda3/lib/python3.6/site-packages/pip
   ----------MXNet Info-----------
   /usr/local/anaconda3/lib/python3.6/site-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
     from ._conv import register_converters as _register_converters
   Version      : 1.2.1
   Directory    : /usr/local/anaconda3/lib/python3.6/site-packages/mxnet
   Commit Hash   : 106391a1f0ee012b1ea38764d711e76774ce77e1
   ----------System Info----------
   Platform     : Darwin-16.7.0-x86_64-i386-64bit
   system       : Darwin
   node         : 88e9fe524ef0.ant.amazon.com
   release      : 16.7.0
   version      : Darwin Kernel Version 16.7.0: Thu Jun 21 20:07:39 PDT 2018; root:xnu-3789.73.14~1/RELEASE_X86_64
   ----------Hardware Info----------
   machine      : x86_64
   processor    : i386
   b'machdep.cpu.extfeatures: SYSCALL XD 1GBPAGE EM64T LAHF LZCNT PREFETCHW RDTSCP TSCI'
   b'machdep.cpu.leaf7_features: SMEP ERMS RDWRFSGS TSC_THREAD_OFFSET BMI1 HLE AVX2 BMI2 INVPCID RTM SMAP RDSEED ADX IPT SGX FPU_CSDS MPX CLFSOPT'
   b'machdep.cpu.features: FPU VME DE PSE TSC MSR PAE MCE CX8 APIC SEP MTRR PGE MCA CMOV PAT PSE36 CLFSH DS ACPI MMX FXSR SSE SSE2 SS HTT TM PBE SSE3 PCLMULQDQ DTES64 MON DSCPL VMX SMX EST TM2 SSSE3 FMA CX16 TPR PDCM SSE4.1 SSE4.2 x2APIC MOVBE POPCNT AES PCID XSAVE OSXSAVE SEGLIM64 TSCTMR AVX1.0 RDRAND F16C'
   b'machdep.cpu.brand_string: Intel(R) Core(TM) i7-7660U CPU @ 2.50GHz'
   ----------Network Test----------
   Setting timeout: 10
   Timing for MXNet: https://github.com/apache/incubator-mxnet, DNS: 0.0138 sec, LOAD: 0.6512 sec.
   Timing for Gluon Tutorial(en): http://gluon.mxnet.io, DNS: 0.0496 sec, LOAD: 0.3530 sec.
   Timing for Gluon Tutorial(cn): https://zh.gluon.ai, DNS: 0.0287 sec, LOAD: 0.2834 sec.
   Timing for FashionMNIST: https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/gluon/dataset/fashion-mnist/train-labels-idx1-ubyte.gz, DNS: 0.0312 sec, LOAD: 0.1477 sec.
   Timing for PYPI: https://pypi.python.org/pypi/pip, DNS: 0.0285 sec, LOAD: 0.4610 sec.
   Timing for Conda: https://repo.continuum.io/pkgs/free/, DNS: 0.0193 sec, LOAD: 0.0959 sec.
   ```
   
   Package used (Python/R/Scala/Julia):
   Scala
   
   For Scala user, please provide:
   1. Java version: (`java -version`)
   ```
   java version "1.8.0_181"
   Java(TM) SE Runtime Environment (build 1.8.0_181-b13)
   Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode)
   ```
   2. Maven version: (`mvn -version`)
   ```
   Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T11:33:14-07:00)
   Maven home: /usr/local/Cellar/maven/3.5.4/libexec
   Java version: 1.8.0_181, vendor: Oracle Corporation, runtime: /Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre
   Default locale: en_US, platform encoding: UTF-8
   OS name: "mac os x", version: "10.12.6", arch: "x86_64", family: "mac"
   ```
   3. Scala runtime if applicable: (`scala -version`)
   Specified in pom.xml as 2.11.8 (scala.compat.version 2.11)
   
   MXNet commit hash:
   ac4ef212f6269469f3f3827da49e43fb42f1398f
   
   @mxnet-label-bot[Doc, Scala]

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services