to-matrix under version 1.4.1

34 views
Skip to first unread message

Fernando Saldanha

unread,
Apr 19, 2013, 5:37:40 PM4/19/13
to inca...@googlegroups.com
I noticed that the following code:

(def ret-ds (incanter.io/read-dataset "C:/Dropbox/Data/ClojureData.csv" :header true))
(def ret-mat (to-matrix ret-ds))

fails under version 1.4.1 of incanter io

with the following message:

NoSuchMethodError edu.emory.mathcs.utils.ConcurrencyUtils.getThreadsBeginN_2D()I  cern.colt.matrix.tdouble.impl.DenseColumnDoubleMatrix2D.assign (DenseColumnDoubleMatrix2D.java:661)

It works under version 1.3.0. Any suggestions?

Thanks.

Alex Ott

unread,
Apr 28, 2013, 1:56:22 PM4/28/13
to inca...@googlegroups.com
Hi

That's very strange - it works on my mac os x, so maybe it's windows-specific problem of parallel colt? do you see parallelcolt-0.10.0.jar in the classpath that is printed by 'lein classpath' command?


--
 
---
You received this message because you are subscribed to the Google Groups "Incanter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to incanter+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
With best wishes,                    Alex Ott
http://alexott.net/
Twitter: alexott_en (English), alexott (Russian)
Skype: alex.ott

Hans Engel

unread,
May 11, 2013, 11:36:19 AM5/11/13
to inca...@googlegroups.com
I can't reproduce the problem here (Windows 8, Java 1.7.0_21, with Incanter 1.4.1 checked out). The incanter-io test cases all pass without any problems.

Thanks,
Hans Engel

Nikita Beloglazov

unread,
May 11, 2013, 11:59:28 AM5/11/13
to inca...@googlegroups.com
I had similar error when tried to run some incanter code on server. Server was tomcat or jboss (I don't remember exactly). Issue was fixed by switching to different version of a server. It seems that server was using some other version of emory utilities. So the problem might be that some other libs using it's own version of emory utilites. You can check where ConcurrenctyUtils class is loaded from by using following snippet:

(-> edu.emory.mathcs.utils.ConcurrencyUtils .getProtectionDomain .getCodeSource .getLocation)

It gives me (at my machine) following:

#<URL file:/home/nikelandjelo/.m2/repository/net/sourceforge/parallelcolt/parallelcolt/0.10.0/parallelcolt-0.10.0.jar>

So I suppose that correct lib is parallelcolt-0.10.0

Nikita
Reply all
Reply to author
Forward
0 new messages