lein compile errors

83 views
Skip to first unread message

Avram

unread,
Jun 23, 2010, 1:16:48 PM6/23/10
to cascalog-user

Hi there, I am on a Mac using 10.6.4 following the cascalog build
instructions but it seems there is an ingredient missing from the cake
because the lein compile step is complaining.

Could someone help discover why cascalog won't build?

Thanks,
Avram

] java -version
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02-279-10M3065)
Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01-279, mixed mode)
] uname -a
Darwin msdc1z9.eharmony.com 10.4.0 Darwin Kernel Version 10.4.0: Fri
Apr 23 18:28:53 PDT 2010; root:xnu-1504.7.4~1/RELEASE_I386 i386

] export JAVA_OPTS=-Xmx768m
] echo $JAVA_OPTS
-Xmx768m
] wget http://github.com/technomancy/leiningen/raw/stable/bin/lein
--2010-06-23 09:42:43-- http://github.com/technomancy/leiningen/raw/stable/bin/lein
Resolving github.com... 207.97.227.239
Connecting to github.com|207.97.227.239|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4061 (4.0K) [text/plain]
Saving to: `lein'

100%
[=================================================================================================================================>]
4,061 --.-K/s in 0.07s

2010-06-23 09:42:43 (57.3 KB/s) - `lein' saved [4061/4061]
] lein self-install
Downloading Leiningen now...
% Total % Received % Xferd Average Speed Time Time
Time Current
Dload Upload Total Spent
Left Speed
100 8076k 100 8076k 0 0 2077k 0 0:00:03 0:00:03
--:--:-- 2465k
] git clone git://github.com/nathanmarz/cascalog.git
Initialized empty Git repository in /Users/aaelony/projects/
cascalog/.git/
remote: Counting objects: 948, done.
remote: Compressing objects: 100% (795/795), done.
remote: Total 948 (delta 526), reused 0 (delta 0)
Receiving objects: 100% (948/948), 154.47 KiB, done.
Resolving deltas: 100% (526/526), done.
] cd cascalog && lein deps && lein compile-java && lein compile
[INFO] snapshot cascading1.1:cascading1.1:1.1.3-SNAPSHOT: checking for
updates from central
[INFO] snapshot cascading1.1:cascading1.1:1.1.3-SNAPSHOT: checking for
updates from clojure
[INFO] snapshot cascading1.1:cascading1.1:1.1.3-SNAPSHOT: checking for
updates from clojure-snapshots
[INFO] snapshot cascading1.1:cascading1.1:1.1.3-SNAPSHOT: checking for
updates from clojars
[INFO] snapshot lein-javac:lein-javac:0.0.2-SNAPSHOT: checking for
updates from central
[INFO] snapshot lein-javac:lein-javac:0.0.2-SNAPSHOT: checking for
updates from clojure
[INFO] snapshot lein-javac:lein-javac:0.0.2-SNAPSHOT: checking for
updates from clojure-snapshots
[INFO] snapshot lein-javac:lein-javac:0.0.2-SNAPSHOT: checking for
updates from clojars
[copy] Copying 27 files to /Users/aaelony/projects/cascalog/lib
[javac] Compiling 22 source files to /Users/aaelony/projects/
cascalog/classes
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[null] Compiling cascalog.graph
[null] Compiling cascalog.predicate
[null] WARNING: partition-by already refers to: #'clojure.core/
partition-by in namespace: cascalog.predicate, being replaced by:
#'clojure.contrib.seq-utils/partition-by
[null] WARNING: flatten already refers to: #'clojure.core/flatten
in namespace: cascalog.vars, being replaced by: #'clojure.contrib.seq-
utils/flatten
[null] WARNING: flatten already refers to: #'clojure.core/flatten
in namespace: cascalog.util, being replaced by: #'clojure.contrib.seq-
utils/flatten
[null] WARNING: group-by already refers to: #'clojure.core/group-
by in namespace: cascalog.workflow, being replaced by:
#'cascalog.workflow/group-by
[null] Exception in thread "main"
java.lang.IllegalArgumentException: Wrong number of args (3) passed
to: workflow$assembly (workflow.clj:341)
[null] at clojure.lang.Compiler.analyzeSeq(Compiler.java:5305)
[null] at clojure.lang.Compiler.analyze(Compiler.java:5119)
[null] at clojure.lang.Compiler.analyze(Compiler.java:5080)
[null] at clojure.lang.Compiler$BodyExpr
$Parser.parse(Compiler.java:4621)
[null] at clojure.lang.Compiler$FnMethod.parse(Compiler.java:
4279)
[null] at clojure.lang.Compiler$FnExpr.parse(Compiler.java:3124)
[null] at clojure.lang.Compiler.analyzeSeq(Compiler.java:5296)
[null] at clojure.lang.Compiler.analyze(Compiler.java:5119)
[null] at clojure.lang.Compiler.analyzeSeq(Compiler.java:5286)
[null] at clojure.lang.Compiler.analyze(Compiler.java:5119)
[null] at clojure.lang.Compiler.analyze(Compiler.java:5080)
[null] at clojure.lang.Compiler$HostExpr
$Parser.parse(Compiler.java:781)
[null] at clojure.lang.Compiler.analyzeSeq(Compiler.java:5298)
[null] at clojure.lang.Compiler.analyze(Compiler.java:5119)
[null] at clojure.lang.Compiler.analyzeSeq(Compiler.java:5286)
[null] at clojure.lang.Compiler.analyze(Compiler.java:5119)
[null] at clojure.lang.Compiler.access$100(Compiler.java:35)
[null] at clojure.lang.Compiler$DefExpr
$Parser.parse(Compiler.java:421)
[null] at clojure.lang.Compiler.analyzeSeq(Compiler.java:5298)
[null] at clojure.lang.Compiler.analyze(Compiler.java:5119)
[null] at clojure.lang.Compiler.analyze(Compiler.java:5080)
[null] at clojure.lang.Compiler.compile1(Compiler.java:5857)
[null] at clojure.lang.Compiler.compile(Compiler.java:5921)
[null] at clojure.lang.RT.compile(RT.java:366)
[null] at clojure.lang.RT.load(RT.java:405)
[null] at clojure.lang.RT.load(RT.java:379)
[null] at clojure.core$load$fn__4448.invoke(core.clj:4889)
[null] at clojure.core$load.doInvoke(core.clj:4888)
[null] at clojure.lang.RestFn.invoke(RestFn.java:409)
[null] at clojure.core$load_one.invoke(core.clj:4713)
[null] at clojure.core$load_lib.doInvoke(core.clj:4750)
[null] at clojure.lang.RestFn.applyTo(RestFn.java:143)
[null] at clojure.core$apply.invoke(core.clj:538)
[null] at clojure.core$load_libs.doInvoke(core.clj:4788)
[null] at clojure.lang.RestFn.applyTo(RestFn.java:138)
[null] at clojure.core$apply.invoke(core.clj:538)
[null] at clojure.core$require.doInvoke(core.clj:4853)
[null] at clojure.lang.RestFn.invoke(RestFn.java:409)
[null] at cascalog.predicate
$loading__4347__auto__.invoke(predicate.clj:16)
[null] at clojure.lang.AFn.applyToHelper(AFn.java:159)
[null] at clojure.lang.AFn.applyTo(AFn.java:151)
[null] at clojure.lang.Compiler$InvokeExpr.eval(Compiler.java:
2857)
[null] at clojure.lang.Compiler.compile1(Compiler.java:5862)
[null] at clojure.lang.Compiler.compile1(Compiler.java:5852)
[null] at clojure.lang.Compiler.compile(Compiler.java:5921)
[null] at clojure.lang.RT.compile(RT.java:366)
[null] at clojure.lang.RT.load(RT.java:405)
[null] at clojure.lang.RT.load(RT.java:379)
[null] at clojure.core$load$fn__4448.invoke(core.clj:4889)
[null] at clojure.core$load.doInvoke(core.clj:4888)
[null] at clojure.lang.RestFn.invoke(RestFn.java:409)
[null] at clojure.core$load_one.invoke(core.clj:4713)
[null] at clojure.core$compile$fn__4453.invoke(core.clj:4900)
[null] at clojure.core$compile.invoke(core.clj:4899)
[null] at user$eval5.invoke(NO_SOURCE_FILE:1)
[null] at clojure.lang.Compiler.eval(Compiler.java:5353)
[null] at clojure.lang.Compiler.eval(Compiler.java:5344)
[null] at clojure.lang.Compiler.eval(Compiler.java:5320)
[null] at clojure.core$eval.invoke(core.clj:2366)
[null] at clojure.main$eval_opt.invoke(main.clj:233)
[null] at clojure.main$initialize.invoke(main.clj:252)
[null] at clojure.main$null_opt.invoke(main.clj:277)
[null] at clojure.main$main.doInvoke(main.clj:352)
[null] at clojure.lang.RestFn.invoke(RestFn.java:422)
[null] at clojure.lang.Var.invoke(Var.java:369)
[null] at clojure.lang.AFn.applyToHelper(AFn.java:165)
[null] at clojure.lang.Var.applyTo(Var.java:482)
[null] at clojure.main.main(main.java:37)
[null] Caused by: java.lang.IllegalArgumentException: Wrong
number of args (3) passed to: workflow$assembly
[null] at clojure.lang.AFn.throwArity(AFn.java:439)
[null] at clojure.lang.AFn.invoke(AFn.java:47)
[null] at cascalog.workflow$assembly.invoke(workflow.clj:322)
[null] at clojure.lang.Var.invoke(Var.java:377)
[null] at clojure.lang.AFn.applyToHelper(AFn.java:174)
[null] at clojure.lang.Var.applyTo(Var.java:482)
[null] at clojure.lang.Compiler.macroexpand1(Compiler.java:5215)
[null] at clojure.lang.Compiler.analyzeSeq(Compiler.java:5284)
[null] ... 67 more
Exception in thread "main" Java returned: 1 (NO_SOURCE_FILE:0)
at clojure.lang.Compiler.eval(Compiler.java:4658)
at clojure.core$eval__5236.invoke(core.clj:2017)
at clojure.main$eval_opt__7411.invoke(main.clj:227)
at clojure.main$initialize__7418.invoke(main.clj:246)
at clojure.main$null_opt__7446.invoke(main.clj:271)
at clojure.main$main__7466.doInvoke(main.clj:346)
at clojure.lang.RestFn.invoke(RestFn.java:426)
at clojure.lang.Var.invoke(Var.java:363)
at clojure.lang.AFn.applyToHelper(AFn.java:175)
at clojure.lang.Var.applyTo(Var.java:476)
at clojure.main.main(main.java:37)
Caused by: Java returned: 1
at org.apache.tools.ant.taskdefs.Java.execute(Java.java:87)
at leiningen.compile$eval_in_project__1568.doInvoke(compile.clj:141)
at clojure.lang.RestFn.invoke(RestFn.java:430)
at leiningen.compile$compile__1583.invoke(compile.clj:154)
at clojure.lang.Var.invoke(Var.java:359)
at clojure.lang.AFn.applyToHelper(AFn.java:173)
at clojure.lang.Var.applyTo(Var.java:476)
at clojure.core$apply__4370.invoke(core.clj:436)
at leiningen.core$_main__77$fn__80.invoke(core.clj:81)
at leiningen.core$_main__77.doInvoke(core.clj:78)
at clojure.lang.RestFn.invoke(RestFn.java:413)
at user$eval__86.invoke(NO_SOURCE_FILE:1)
at clojure.lang.Compiler.eval(Compiler.java:4642)
... 10 more


nathanmarz

unread,
Jun 23, 2010, 1:35:49 PM6/23/10
to cascalog-user
Hi Avram,

Can you paste the result of running "lein -v"? Can you also paste the
results of "ls -R lib/" from the cascalog folder?

Thanks,
Nathan



On Jun 23, 10:16 am, Avram <aav...@me.com> wrote:
> Hi there, I am on a Mac using 10.6.4 following the cascalog build
> instructions but it seems there is an ingredient missing from the cake
> because the lein compile step is complaining.
>
> Could someone help discover why cascalog won't build?
>
> Thanks,
> Avram
>
> ]  java -version
> java version "1.6.0_20"
> Java(TM) SE Runtime Environment (build 1.6.0_20-b02-279-10M3065)
> Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01-279, mixed mode)
> ]  uname -a
> Darwin msdc1z9.eharmony.com 10.4.0 Darwin Kernel Version 10.4.0: Fri
> Apr 23 18:28:53 PDT 2010; root:xnu-1504.7.4~1/RELEASE_I386 i386
>
> ]  export JAVA_OPTS=-Xmx768m
> ]  echo $JAVA_OPTS
> -Xmx768m
> ]  wgethttp://github.com/technomancy/leiningen/raw/stable/bin/lein

Avram

unread,
Jun 23, 2010, 2:00:20 PM6/23/10
to cascalog-user
sure. here it is:

] lein -v
Leiningen 1.1.0 on Java 1.6.0_20 Java HotSpot(TM) 64-Bit Server VM
] ls -R lib/
ant-1.6.5.jar commons-codec-1.3.jar jets3t-0.6.1.jar
oro-2.0.8.jar
ant-1.7.0.jar commons-el-1.0.jar jetty-6.1.14.jar servlet-
api-2.5-6.1.14.jar
ant-launcher-1.7.0.jar commons-httpclient-3.1.jar jetty-
util-6.1.14.jar servlet-api-2.5.jar
cascading1.1-1.1.3-20100308.145053-4.jar commons-logging-1.0.4.jar
jsp-2.1-6.1.14.jar slf4j-api-1.4.3.jar
clojure-1.1.0.jar commons-net-1.4.1.jar jsp-
api-2.1-6.1.14.jar slf4j-log4j12-1.4.3.jar
clojure-contrib-1.1.0.jar core-3.1.1.jar lein-
javac-0.0.2-20091216.162623-1.jar xmlenc-0.52.jar
commons-cli-1.2.jar hadoop-core-0.20.2-dev.jar log4j-1.2.15.jar

Lastly, this may be "jumping the gun" but eventually once this gets
resolved and running, it would be great to include the incanter and
compojure jars in the project.clj at some point for graphing and web
serving respectively.. Look forward to your advice on that...

~Avram
> ...
>
> read more »

nathanmarz

unread,
Jun 23, 2010, 2:20:04 PM6/23/10
to cascalog-user
The warnings about flatten, partition-by, and group-by indicate that
you have clojure-1.2 in the classpath during compilation (these
functions were moved to clojure core for 1.2). Cascalog uses Clojure
1.1 as Clojure 1.2 hasn't been released yet.

If Clojure is installed elsewhere on the system, you should remove it
or get it out of the classpath. Otherwise, I would try deleting your
~/.m2 folder, reinstall leiningen, and try again.

Feel free to jump into the #cascading room on freenode for more
interactive help.
> ...
>
> read more »

nathanmarz

unread,
Jun 23, 2010, 2:29:17 PM6/23/10
to cascalog-user
Regarding incanter and compojure:

cascalog is ultimately a library. So in your projects you can include
cascalog and any other libraries you want as dependencies.



On Jun 23, 11:00 am, Avram <aav...@me.com> wrote:
> ...
>
> read more »

Avram

unread,
Jun 23, 2010, 2:34:00 PM6/23/10
to cascalog-user


Is there a way I can remove from my classpath via lein? or do I need
to go outside of lein?
As far as I can tell, I'm not doing anything different than a fresh
install.

I started fresh and completely removed ~/.m2 and yet it still
complains and fails at the last step (lein compile).
I guess I'll have to tinker with it some more.

~A
> ...
>
> read more »

nathanmarz

unread,
Jun 23, 2010, 2:41:18 PM6/23/10
to cascalog-user
Let's try one more thing. Can you "export DEBUG=true", run lein
compile again, and paste the results? That should print the classpath
that lein is using during compilation.
> ...
>
> read more »

Avram

unread,
Jun 23, 2010, 2:47:48 PM6/23/10
to cascalog-user
nice to learn about ~/.m2 and debug vars..

Here is the output:

] export DEBUG=true
] lein compile
/Users/aa/.m2/repository/leiningen/leiningen/1.1.0/leiningen-1.1.0-
standalone.jar:lib//ant-1.6.5.jar:lib//ant-1.7.0.jar:lib//ant-
launcher-1.7.0.jar:lib//cascading1.1-1.1.3-20100308.145053-4.jar:lib//
clojure-1.1.0.jar:lib//clojure-contrib-1.1.0.jar:lib//commons-
cli-1.2.jar:lib//commons-codec-1.3.jar:lib//commons-el-1.0.jar:lib//
commons-httpclient-3.1.jar:lib//commons-logging-1.0.4.jar:lib//commons-
net-1.4.1.jar:lib//core-3.1.1.jar:lib//hadoop-core-0.20.2-dev.jar:lib//
jets3t-0.6.1.jar:lib//jetty-6.1.14.jar:lib//jetty-util-6.1.14.jar:lib//
jsp-2.1-6.1.14.jar:lib//jsp-api-2.1-6.1.14.jar:lib//lein-
javac-0.0.2-20091216.162623-1.jar:lib//log4j-1.2.15.jar:lib//
oro-2.0.8.jar:lib//servlet-api-2.5-6.1.14.jar:lib//servlet-
api-2.5.jar:lib//slf4j-api-1.4.3.jar:lib//slf4j-log4j12-1.4.3.jar:lib//
xmlenc-0.52.jar:
[null] at clojure.lang.RT.compile(RT.java:366)
[null] at clojure.lang.RT.load(RT.java:405)
[null] at clojure.lang.RT.load(RT.java:379)
[null] at clojure.core$load$fn__4448.invoke(core.clj:4889)
[null] at clojure.core$load.doInvoke(core.clj:4888)
[null] at clojure.lang.RestFn.invoke(RestFn.java:409)
[null] at clojure.core$load_one.invoke(core.clj:4713)
[null] at clojure.core$load_lib.doInvoke(core.clj:4750)
[null] at clojure.lang.RestFn.applyTo(RestFn.java:143)
[null] at clojure.core$apply.invoke(core.clj:538)
[null] at clojure.core$load_libs.doInvoke(core.clj:4788)
[null] at clojure.lang.RestFn.applyTo(RestFn.java:138)
[null] at clojure.core$apply.invoke(core.clj:538)
[null] at clojure.core$require.doInvoke(core.clj:4853)
[null] at clojure.lang.RestFn.invoke(RestFn.java:409)
[null] at cascalog.predicate
$loading__4347__auto__.invoke(predicate.clj:16)
[null] at clojure.lang.AFn.applyToHelper(AFn.java:159)
[null] at clojure.lang.AFn.applyTo(AFn.java:151)
[null] at clojure.lang.Compiler$InvokeExpr.eval(Compiler.java:
2857)
[null] at clojure.lang.Compiler.compile1(Compiler.java:5862)
[null] at clojure.lang.Compiler.compile1(Compiler.java:5852)
[null] at clojure.lang.Compiler.compile(Compiler.java:5921)
[null] at clojure.lang.RT.compile(RT.java:366)
[null] at clojure.lang.RT.load(RT.java:405)
[null] at clojure.lang.RT.load(RT.java:379)
[null] at clojure.core$load$fn__4448.invoke(core.clj:4889)
[null] at clojure.core$load.doInvoke(core.clj:4888)
[null] at clojure.lang.RestFn.invoke(RestFn.java:409)
[null] at clojure.core$load_one.invoke(core.clj:4713)
[null] at clojure.core$compile$fn__4453.invoke(core.clj:4900)
[null] at clojure.core$compile.invoke(core.clj:4899)
[null] at user$eval5.invoke(NO_SOURCE_FILE:1)
[null] at clojure.lang.Compiler.eval(Compiler.java:5353)
[null] at clojure.lang.Compiler.eval(Compiler.java:5344)
[null] at clojure.lang.Compiler.eval(Compiler.java:5320)
[null] at clojure.core$eval.invoke(core.clj:2366)
[null] at clojure.main$eval_opt.invoke(main.clj:233)
[null] at clojure.main$initialize.invoke(main.clj:252)
[null] at clojure.main$null_opt.invoke(main.clj:277)
[null] at clojure.main$main.doInvoke(main.clj:352)
[null] at clojure.lang.RestFn.invoke(RestFn.java:422)
[null] at clojure.lang.Var.invoke(Var.java:369)
[null] at clojure.lang.AFn.applyToHelper(AFn.java:165)
[null] at clojure.lang.Var.applyTo(Var.java:482)
[null] at clojure.main.main(main.java:37)
[null] Caused by: java.lang.IllegalArgumentException: Wrong
number of args (3) passed to: workflow$assembly
[null] at clojure.lang.AFn.throwArity(AFn.java:439)
[null] at clojure.lang.AFn.invoke(AFn.java:47)
[null] at cascalog.workflow$assembly.invoke(workflow.clj:322)
[null] at clojure.lang.Var.invoke(Var.java:377)
[null] at clojure.lang.AFn.applyToHelper(AFn.java:174)
[null] at clojure.lang.Var.applyTo(Var.java:482)
> ...
>
> read more »

nathanmarz

unread,
Jun 23, 2010, 4:51:25 PM6/23/10
to cascalog-user
That's the same classpath as I have when I compile, so I'm pretty
mystified at this point. You can try creating a new project and
include cascalog as a dependency, like the cascalog-demo project:
http://github.com/nathanmarz/cascalog-demo . I would guess that you
would run into similar issues if you tried to compile anything, but if
you just want to experiment with cascalog's playground that might
work.
> ...
>
> read more »

Avram

unread,
Jun 23, 2010, 5:11:04 PM6/23/10
to cascalog-user
I think I just need to find a way to properly clean out my entire
clojure environment.
Getting the repl with a git clone of casaclog-demo confirms that its
1.2.0 that's running.

Clojure 1.2.0-master-SNAPSHOT
user=>

If I can nuke it properly, that might solve it. Perhaps it just isn't
sufficient to remove ~/.m2 ??
Anyways, thanks for your help.

~Avram


On Jun 23, 1:51 pm, nathanmarz <nathan.m...@gmail.com> wrote:
> That's the same classpath as I have when I compile, so I'm pretty
> mystified at this point. You can try creating a new project and
> include cascalog as a dependency, like the cascalog-demo project:http://github.com/nathanmarz/cascalog-demo. I would guess that you
> ...
>
> read more »
Reply all
Reply to author
Forward
0 new messages