Chouffe opened a new issue #14517: Build from source, clojure, lein test erroring out URL: https://github.com/apache/incubator-mxnet/issues/14517 ## Description When building MXNet from source and running `lein test` using the locally built jar, it errors out with a lot of `java.lang.Exception: = expects more than one argument`. ## Environment info (Required) Here is how I build from source (mostly following the instructions from the docs). I could reproduce on Ubuntu 18.04 and 18.10: 1. `git clone https://github.com/apache/incubator-mxnet.git` 2. `cd docs/install` and then `./install_mxnet_ubuntu_python.sh` 3. installing maven `sudo apt-get install maven` 4. Install Java 8: ```sudo add-apt-repository ppa:webupd8team/java sudo apt install oracle-java8-set-default ``` 5. `cd scala-package` and then `maven install` 6. `cd contrib/clojure-package` and then `lein test` You should see some errors like this: ``` ... ERROR in (test-single-classify) (imageclassifier_test.clj:90) expected: (= (< 0 (:prob (first predictions)) 1)) actual: clojure.main.main main.java: 37 ... clojure.main/main main.clj: 387 clojure.main/main main.clj: 424 clojure.main/null-opt main.clj: 345 clojure.main/initialize main.clj: 311 clojure.main/init-opt main.clj: 280 clojure.main/load-script main.clj: 278 ... user/eval3508 REPL Input user/eval3508/fn REPL Input user/eval3508/fn/fn REPL Input (repeats 2 times) clojure.core/apply core.clj: 657 ... clojure.test/run-tests test.clj: 767 (repeats 2 times) clojure.core/apply core.clj: 659 ... clojure.core/merge-with core.clj: 3043 clojure.core/merge-with core.clj: 3051 clojure.core/reduce1 core.clj: 926 clojure.core/reduce1 core.clj: 936 clojure.core/next core.clj: 64 ... clojure.core/map/fn core.clj: 2747 clojure.test/test-ns test.clj: 757 clojure.test/test-all-vars test.clj: 736 clojure.test/test-vars test.clj: 730 clojure.test/default-fixture test.clj: 686 clojure.test/test-vars/fn test.clj: 734 clojure.test/default-fixture test.clj: 686 clojure.test/test-vars/fn/fn test.clj: 734 clojure.test/test-var test.clj: 716 clojure.test/test-var/fn test.clj: 716 org.apache.clojure-mxnet.infer.imageclassifier-test/fn imageclassifier_test.clj: 90 java.lang.Exception: = expects more than one argument ... ``` ``` python diagnose.py ----------Python Info---------- ('Version :', '2.7.15rc1') ('Compiler :', 'GCC 7.3.0') ('Build :', ('default', 'Nov 12 2018 14:31:15')) ('Arch :', ('64bit', '')) ------------Pip Info----------- ('Version :', '9.0.1') ('Directory :', '/usr/lib/python2.7/dist-packages/pip') ----------MXNet Info----------- No MXNet installed. ----------System Info---------- ('Platform :', 'Linux-4.15.0-46-generic-x86_64-with-Ubuntu-18.04-bionic') ('system :', 'Linux') ('node :', 'xps13') ('release :', '4.15.0-46-generic') ('version :', '#49-Ubuntu SMP Wed Feb 6 09:33:07 UTC 2019') ----------Hardware Info---------- ('machine :', 'x86_64') ('processor :', 'x86_64') Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 4 On-line CPU(s) list: 0-3 Thread(s) per core: 2 Core(s) per socket: 2 Socket(s): 1 NUMA node(s): 1 Vendor ID: GenuineIntel CPU family: 6 Model: 69 Model name: Intel(R) Core(TM) i5-4210U CPU @ 1.70GHz Stepping: 1 CPU MHz: 1450.067 CPU max MHz: 2700.0000 CPU min MHz: 800.0000 BogoMIPS: 4788.67 Virtualization: VT-x L1d cache: 32K L1i cache: 32K L2 cache: 256K L3 cache: 3072K NUMA node0 CPU(s): 0-3 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid xsaveopt dtherm ida arat pln pts flush_l1d ----------Network Test---------- Setting timeout: 10 Error open MXNet: https://github.com/apache/incubator-mxnet, HTTP Error 502: Bad Gateway, DNS finished in 0.0339541435242 sec. Timing for PYPI: https://pypi.python.org/pypi/pip, DNS: 0.0325 sec, LOAD: 0.7447 sec. Timing for FashionMNIST: https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/gluon/dataset/fashion-mnist/train-labels-idx1-ubyte.gz, DNS: 0.0529 sec, LOAD: 1.3148 sec. Timing for Conda: https://repo.continuum.io/pkgs/free/, DNS: 0.0338 sec, LOAD: 0.2386 sec. Timing for Gluon Tutorial(en): http://gluon.mxnet.io, DNS: 0.0659 sec, LOAD: 1.0941 sec. Timing for Gluon Tutorial(cn): https://zh.gluon.ai, DNS: 0.0856 sec, LOAD: 1.0367 sec. ``` ## Build info MXNet commit hash: ``` commit 29e13b4cbffcf47d3006b9478e242683136fff82 ```
---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
