Re: Exception when trying to require clojure.contrib.io
I have same problem: I'm using NetBeans 6.9.1/Enclojure, clojure-SNAPSHOT, running on Ubuntu 10.04 If I create Clojure project everything works OK. If I add Clojure scripts in existing Java project (and copy appropriate parts of pom.xml into that project) :require causes error as above, but :use works ok On Wed, 11 Aug 2010 16:01:34 +0200, Btsai benny.t...@gmail.com wrote: Hmmm. Actually, as Meikel noted, this should be fine, and it does indeed work for me: (ns your-namespace (:require clojure.contrib.io)) The only time I got the Don't know how to create ISeq from: clojure.lang.Symbol exception is when I erroneously copy-pasted and tried to evaluate this: (ns your-namespace (:require clojure.contrib.io)) On Aug 11, 2:46 am, Meikel Brandmeyer m...@kotka.de wrote: Hi, On 11 Aug., 10:19, Folcon fol...@gmail.com wrote: The stacktrace is as follows: Backtrace: 0: clojure.lang.LazySeq.sval(LazySeq.java:47) useless stuff snipped Wow. Emacs really goes out of its way to hide what's going on. If you try your code in a normal repl it should tell you the file where things go wrong. Also the caused by lines tell you the chain of causes. Not the location information (bar.clj:1) alsthough the 1 is entirely correct. user= (require 'foo.bar) java.lang.RuntimeException: java.lang.RuntimeException: java.lang.IllegalArgumentException: Don't know how to create ISe q from: clojure.lang.Symbol (bar.clj:1) user= (.printStackTrace *e) java.lang.RuntimeException: java.lang.RuntimeException: java.lang.IllegalArgumentException: Don't know how to create ISeq from: clojure.lang.Symbol (bar.clj:1) at clojure.lang.Compiler.eval(Compiler.java:5435) snip at clojure.main.main(main.java:37) Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.IllegalArgumentException: Don't know how to create ISeq from: clojure.lang.Symbol at clojure.lang.LazySeq.sval(LazySeq.java:47) snip at clojure.lang.Compiler.macroexpand(Compiler.java:5336) at clojure.lang.Compiler.eval(Compiler.java:5404) ... 32 more Caused by: java.lang.RuntimeException: java.lang.IllegalArgumentException: Don't know how to create ISeq from: clojure.l ang.Symbol at clojure.lang.LazySeq.sval(LazySeq.java:47) snip at clojure.lang.LazySeq.sval(LazySeq.java:42) ... 45 more Caused by: java.lang.IllegalArgumentException: Don't know how to create ISeq from: clojure.lang.Symbol at clojure.lang.RT.seqFrom(RT.java:471) snip at clojure.lang.LazySeq.sval(LazySeq.java:42) ... 50 more Sincerely Meikel -- Using Opera's revolutionary email client: http://www.opera.com/mail/ -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Exception when trying to require clojure.contrib.io
Actually, it started working with require, and as far as I'm concerned, I've done nothing to fix the problem. On Mon, 16 Aug 2010 20:06:32 +0200, Luka Stojanovic li...@magrathea.rs wrote: I have same problem: I'm using NetBeans 6.9.1/Enclojure, clojure-SNAPSHOT, running on Ubuntu 10.04 If I create Clojure project everything works OK. If I add Clojure scripts in existing Java project (and copy appropriate parts of pom.xml into that project) :require causes error as above, but :use works ok -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Exception when trying to require clojure.contrib.io
I'm trying to create an input stream to use with some libraries. I've been trying to require clojure.contrib.io to use the input-stream function. However I keep getting the exception. java.lang.IllegalArgumentException: Don't know how to create ISeq from: clojure.lang.Symbol Can anyone help? Thanks! -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Exception when trying to require clojure.contrib.io
I've tried using the format shown on the docs which is: (ns your-namespace (:require clojure.contrib.io)) And this is what causes the exception. On Aug 11, 12:06 pm, Folcon fol...@gmail.com wrote: I'm trying to create an input stream to use with some libraries. I've been trying to require clojure.contrib.io to use the input-stream function. However I keep getting the exception. java.lang.IllegalArgumentException: Don't know how to create ISeq from: clojure.lang.Symbol Can anyone help? Thanks! -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Exception when trying to require clojure.contrib.io
quote it? 2010/8/11 Folcon fol...@gmail.com: I've tried using the format shown on the docs which is: (ns your-namespace (:require clojure.contrib.io)) And this is what causes the exception. On Aug 11, 12:06 pm, Folcon fol...@gmail.com wrote: I'm trying to create an input stream to use with some libraries. I've been trying to require clojure.contrib.io to use the input-stream function. However I keep getting the exception. java.lang.IllegalArgumentException: Don't know how to create ISeq from: clojure.lang.Symbol Can anyone help? Thanks! -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- Communication is essential. So we need decent tools when communication is lacking, when language capability is hard to acquire... - http://esperanto.net - http://esperanto-jongeren.nl Linux-user #496644 (http://counter.li.org) - first touch of linux in 2004 -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Exception when trying to require clojure.contrib.io
I did try that and I get the exception: lib names inside prefix lists must not contain periods Thanks for trying ;) On Aug 11, 12:33 pm, Joop Kiefte iko...@gmail.com wrote: quote it? 2010/8/11 Folcon fol...@gmail.com: I've tried using the format shown on the docs which is: (ns your-namespace (:require clojure.contrib.io)) And this is what causes the exception. On Aug 11, 12:06 pm, Folcon fol...@gmail.com wrote: I'm trying to create an input stream to use with some libraries. I've been trying to require clojure.contrib.io to use the input-stream function. However I keep getting the exception. java.lang.IllegalArgumentException: Don't know how to create ISeq from: clojure.lang.Symbol Can anyone help? Thanks! -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- Communication is essential. So we need decent tools when communication is lacking, when language capability is hard to acquire... -http://esperanto.net -http://esperanto-jongeren.nl Linux-user #496644 (http://counter.li.org) - first touch of linux in 2004 -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Exception when trying to require clojure.contrib.io
Hi, On 11 Aug., 09:12, Folcon fol...@gmail.com wrote: I've tried using the format shown on the docs which is: (ns your-namespace (:require clojure.contrib.io)) And this is what causes the exception. Do you have some more information about the stacktrace? It should say in which file the exception happened. The above ns clause looks correct. Sincerely Meikel -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Exception when trying to require clojure.contrib.io
The stacktrace is as follows: Backtrace: 0: clojure.lang.LazySeq.sval(LazySeq.java:47) 1: clojure.lang.LazySeq.seq(LazySeq.java:56) 2: clojure.lang.LazySeq.first(LazySeq.java:78) 3: clojure.lang.RT.first(RT.java:549) 4: clojure.core$first__4227.invoke(core.clj:45) 5: clojure.core$ns__6317.doInvoke(core.clj:3912) 6: clojure.lang.RestFn.invoke(RestFn.java:460) 7: clojure.lang.Var.invoke(Var.java:371) 8: clojure.lang.AFn.applyToHelper(AFn.java:184) 9: clojure.lang.Var.applyTo(Var.java:476) 10: clojure.lang.Compiler.macroexpand1(Compiler.java:4504) [No Locals] 11: clojure.lang.Compiler.macroexpand(Compiler.java:4564) 12: clojure.lang.Compiler.eval(Compiler.java:4628) 13: clojure.lang.Compiler.load(Compiler.java:4972) 14: clojure.lang.RT.loadResourceScript(RT.java:330) 15: clojure.lang.RT.loadResourceScript(RT.java:321) 16: clojure.lang.RT.load(RT.java:399) 17: clojure.lang.RT.load(RT.java:371) 18: clojure.core$load__6449$fn__6458.invoke(core.clj:4171) 19: clojure.core$load__6449.doInvoke(core.clj:4170) 20: clojure.lang.RestFn.invoke(RestFn.java:413) 21: clojure.core$load_one__6379.invoke(core.clj:4007) 22: clojure.core$load_lib__6400.doInvoke(core.clj:4044) 23: clojure.lang.RestFn.applyTo(RestFn.java:147) 24: clojure.core$apply__4370.invoke(core.clj:438) 25: clojure.core$load_libs__6417.doInvoke(core.clj:4070) 26: clojure.lang.RestFn.applyTo(RestFn.java:142) 27: clojure.core$apply__4370.invoke(core.clj:438) 28: clojure.core$require__6440.doInvoke(core.clj:4138) 29: clojure.lang.RestFn.invoke(RestFn.java:413) 30: stockit.core $eval__2978$loading__6309__auto2980.invoke(core.clj:2) 31: stockit.core$eval__2978.invoke(core.clj:2) 32: clojure.lang.Compiler.eval(Compiler.java:4642) 33: clojure.lang.Compiler.eval(Compiler.java:4634) 34: clojure.lang.Compiler.load(Compiler.java:4972) 35: swank.commands.basic$compile_region__1135.invoke(basic.clj:57) 36: swank.commands.basic $eval__1235$compile_string_for_emacs__1237$fn__1239.invoke(basic.clj: 172) 37: swank.commands.basic $eval__1235$compile_string_for_emacs__1237.invoke(basic.clj:166) 38: clojure.lang.Var.invoke(Var.java:375) 39: stockit.core$eval__2972.invoke(NO_SOURCE_FILE) 40: clojure.lang.Compiler.eval(Compiler.java:4642) 41: clojure.core$eval__5236.invoke(core.clj:2017) 42: swank.core$eval_in_emacs_package__586.invoke(core.clj:94) 43: swank.core$eval_for_emacs__698.invoke(core.clj:241) 44: clojure.lang.Var.invoke(Var.java:367) 45: clojure.lang.AFn.applyToHelper(AFn.java:179) 46: clojure.lang.Var.applyTo(Var.java:476) 47: clojure.core$apply__4370.invoke(core.clj:436) 48: swank.core$eval_from_control__589.invoke(core.clj:101) 49: swank.core $spawn_worker_thread__721$fn__753$fn__755.invoke(core.clj:300) 50: clojure.lang.AFn.applyToHelper(AFn.java:171) 51: clojure.lang.AFn.applyTo(AFn.java:164) 52: clojure.core$apply__4370.invoke(core.clj:436) 53: swank.core$spawn_worker_thread__721$fn__753.doInvoke(core.clj: 296) 54: clojure.lang.RestFn.invoke(RestFn.java:402) 55: clojure.lang.AFn.run(AFn.java:37) 56: java.lang.Thread.run(Unknown Source) On Aug 11, 1:00 pm, Meikel Brandmeyer m...@kotka.de wrote: Hi, On 11 Aug., 09:12, Folcon fol...@gmail.com wrote: I've tried using the format shown on the docs which is: (ns your-namespace (:require clojure.contrib.io)) And this is what causes the exception. Do you have some more information about the stacktrace? It should say in which file the exception happened. The above ns clause looks correct. Sincerely Meikel -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Exception when trying to require clojure.contrib.io
http://clojure.github.com/clojure/clojure.core-api.html#clojure.core/require tells me you need to put it in a quoted list (require is a function, so you have to quote anyway. Don't know at the moment if the :require works differently, but I think it shouldn't) 2010/8/11 Folcon fol...@gmail.com: The stacktrace is as follows: Backtrace: 0: clojure.lang.LazySeq.sval(LazySeq.java:47) 1: clojure.lang.LazySeq.seq(LazySeq.java:56) 2: clojure.lang.LazySeq.first(LazySeq.java:78) 3: clojure.lang.RT.first(RT.java:549) 4: clojure.core$first__4227.invoke(core.clj:45) 5: clojure.core$ns__6317.doInvoke(core.clj:3912) 6: clojure.lang.RestFn.invoke(RestFn.java:460) 7: clojure.lang.Var.invoke(Var.java:371) 8: clojure.lang.AFn.applyToHelper(AFn.java:184) 9: clojure.lang.Var.applyTo(Var.java:476) 10: clojure.lang.Compiler.macroexpand1(Compiler.java:4504) [No Locals] 11: clojure.lang.Compiler.macroexpand(Compiler.java:4564) 12: clojure.lang.Compiler.eval(Compiler.java:4628) 13: clojure.lang.Compiler.load(Compiler.java:4972) 14: clojure.lang.RT.loadResourceScript(RT.java:330) 15: clojure.lang.RT.loadResourceScript(RT.java:321) 16: clojure.lang.RT.load(RT.java:399) 17: clojure.lang.RT.load(RT.java:371) 18: clojure.core$load__6449$fn__6458.invoke(core.clj:4171) 19: clojure.core$load__6449.doInvoke(core.clj:4170) 20: clojure.lang.RestFn.invoke(RestFn.java:413) 21: clojure.core$load_one__6379.invoke(core.clj:4007) 22: clojure.core$load_lib__6400.doInvoke(core.clj:4044) 23: clojure.lang.RestFn.applyTo(RestFn.java:147) 24: clojure.core$apply__4370.invoke(core.clj:438) 25: clojure.core$load_libs__6417.doInvoke(core.clj:4070) 26: clojure.lang.RestFn.applyTo(RestFn.java:142) 27: clojure.core$apply__4370.invoke(core.clj:438) 28: clojure.core$require__6440.doInvoke(core.clj:4138) 29: clojure.lang.RestFn.invoke(RestFn.java:413) 30: stockit.core $eval__2978$loading__6309__auto2980.invoke(core.clj:2) 31: stockit.core$eval__2978.invoke(core.clj:2) 32: clojure.lang.Compiler.eval(Compiler.java:4642) 33: clojure.lang.Compiler.eval(Compiler.java:4634) 34: clojure.lang.Compiler.load(Compiler.java:4972) 35: swank.commands.basic$compile_region__1135.invoke(basic.clj:57) 36: swank.commands.basic $eval__1235$compile_string_for_emacs__1237$fn__1239.invoke(basic.clj: 172) 37: swank.commands.basic $eval__1235$compile_string_for_emacs__1237.invoke(basic.clj:166) 38: clojure.lang.Var.invoke(Var.java:375) 39: stockit.core$eval__2972.invoke(NO_SOURCE_FILE) 40: clojure.lang.Compiler.eval(Compiler.java:4642) 41: clojure.core$eval__5236.invoke(core.clj:2017) 42: swank.core$eval_in_emacs_package__586.invoke(core.clj:94) 43: swank.core$eval_for_emacs__698.invoke(core.clj:241) 44: clojure.lang.Var.invoke(Var.java:367) 45: clojure.lang.AFn.applyToHelper(AFn.java:179) 46: clojure.lang.Var.applyTo(Var.java:476) 47: clojure.core$apply__4370.invoke(core.clj:436) 48: swank.core$eval_from_control__589.invoke(core.clj:101) 49: swank.core $spawn_worker_thread__721$fn__753$fn__755.invoke(core.clj:300) 50: clojure.lang.AFn.applyToHelper(AFn.java:171) 51: clojure.lang.AFn.applyTo(AFn.java:164) 52: clojure.core$apply__4370.invoke(core.clj:436) 53: swank.core$spawn_worker_thread__721$fn__753.doInvoke(core.clj: 296) 54: clojure.lang.RestFn.invoke(RestFn.java:402) 55: clojure.lang.AFn.run(AFn.java:37) 56: java.lang.Thread.run(Unknown Source) On Aug 11, 1:00 pm, Meikel Brandmeyer m...@kotka.de wrote: Hi, On 11 Aug., 09:12, Folcon fol...@gmail.com wrote: I've tried using the format shown on the docs which is: (ns your-namespace (:require clojure.contrib.io)) And this is what causes the exception. Do you have some more information about the stacktrace? It should say in which file the exception happened. The above ns clause looks correct. Sincerely Meikel -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- Communication is essential. So we need decent tools when communication is lacking, when language capability is hard to acquire... - http://esperanto.net - http://esperanto-jongeren.nl Linux-user #496644 (http://counter.li.org) - first touch of linux in 2004 -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at
Re: Exception when trying to require clojure.contrib.io
Hi, On 11 Aug., 10:19, Folcon fol...@gmail.com wrote: The stacktrace is as follows: Backtrace: 0: clojure.lang.LazySeq.sval(LazySeq.java:47) useless stuff snipped Wow. Emacs really goes out of its way to hide what's going on. If you try your code in a normal repl it should tell you the file where things go wrong. Also the caused by lines tell you the chain of causes. Not the location information (bar.clj:1) alsthough the 1 is entirely correct. user= (require 'foo.bar) java.lang.RuntimeException: java.lang.RuntimeException: java.lang.IllegalArgumentException: Don't know how to create ISe q from: clojure.lang.Symbol (bar.clj:1) user= (.printStackTrace *e) java.lang.RuntimeException: java.lang.RuntimeException: java.lang.IllegalArgumentException: Don't know how to create ISeq from: clojure.lang.Symbol (bar.clj:1) at clojure.lang.Compiler.eval(Compiler.java:5435) snip at clojure.main.main(main.java:37) Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.IllegalArgumentException: Don't know how to create ISeq from: clojure.lang.Symbol at clojure.lang.LazySeq.sval(LazySeq.java:47) snip at clojure.lang.Compiler.macroexpand(Compiler.java:5336) at clojure.lang.Compiler.eval(Compiler.java:5404) ... 32 more Caused by: java.lang.RuntimeException: java.lang.IllegalArgumentException: Don't know how to create ISeq from: clojure.l ang.Symbol at clojure.lang.LazySeq.sval(LazySeq.java:47) snip at clojure.lang.LazySeq.sval(LazySeq.java:42) ... 45 more Caused by: java.lang.IllegalArgumentException: Don't know how to create ISeq from: clojure.lang.Symbol at clojure.lang.RT.seqFrom(RT.java:471) snip at clojure.lang.LazySeq.sval(LazySeq.java:42) ... 50 more Sincerely Meikel -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Exception when trying to require clojure.contrib.io
Hi, On 11 Aug., 10:44, Joop Kiefte iko...@gmail.com wrote: http://clojure.github.com/clojure/clojure.core-api.html#clojure.core/... tells me you need to put it in a quoted list (require is a function, so you have to quote anyway. Don't know at the moment if the :require works differently, but I think it shouldn't) require the function requires quoting, :require the ns-part does not. Sincerely Meikel -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Exception when trying to require clojure.contrib.io
The following worked for me: (ns your-namespace (:require (clojure.contrib io))) (See: http://clojure.github.com/clojure/clojure.core-api.html#clojure.core/ns) This also works: (ns your-namespace (:require [clojure.contrib.io])) On Aug 11, 2:46 am, Meikel Brandmeyer m...@kotka.de wrote: Hi, On 11 Aug., 10:19, Folcon fol...@gmail.com wrote: The stacktrace is as follows: Backtrace: 0: clojure.lang.LazySeq.sval(LazySeq.java:47) useless stuff snipped Wow. Emacs really goes out of its way to hide what's going on. If you try your code in a normal repl it should tell you the file where things go wrong. Also the caused by lines tell you the chain of causes. Not the location information (bar.clj:1) alsthough the 1 is entirely correct. user= (require 'foo.bar) java.lang.RuntimeException: java.lang.RuntimeException: java.lang.IllegalArgumentException: Don't know how to create ISe q from: clojure.lang.Symbol (bar.clj:1) user= (.printStackTrace *e) java.lang.RuntimeException: java.lang.RuntimeException: java.lang.IllegalArgumentException: Don't know how to create ISeq from: clojure.lang.Symbol (bar.clj:1) at clojure.lang.Compiler.eval(Compiler.java:5435) snip at clojure.main.main(main.java:37) Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.IllegalArgumentException: Don't know how to create ISeq from: clojure.lang.Symbol at clojure.lang.LazySeq.sval(LazySeq.java:47) snip at clojure.lang.Compiler.macroexpand(Compiler.java:5336) at clojure.lang.Compiler.eval(Compiler.java:5404) ... 32 more Caused by: java.lang.RuntimeException: java.lang.IllegalArgumentException: Don't know how to create ISeq from: clojure.l ang.Symbol at clojure.lang.LazySeq.sval(LazySeq.java:47) snip at clojure.lang.LazySeq.sval(LazySeq.java:42) ... 45 more Caused by: java.lang.IllegalArgumentException: Don't know how to create ISeq from: clojure.lang.Symbol at clojure.lang.RT.seqFrom(RT.java:471) snip at clojure.lang.LazySeq.sval(LazySeq.java:42) ... 50 more Sincerely Meikel -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Exception when trying to require clojure.contrib.io
Hmmm. Actually, as Meikel noted, this should be fine, and it does indeed work for me: (ns your-namespace (:require clojure.contrib.io)) The only time I got the Don't know how to create ISeq from: clojure.lang.Symbol exception is when I erroneously copy-pasted and tried to evaluate this: (ns your-namespace (:require clojure.contrib.io)) On Aug 11, 2:46 am, Meikel Brandmeyer m...@kotka.de wrote: Hi, On 11 Aug., 10:19, Folcon fol...@gmail.com wrote: The stacktrace is as follows: Backtrace: 0: clojure.lang.LazySeq.sval(LazySeq.java:47) useless stuff snipped Wow. Emacs really goes out of its way to hide what's going on. If you try your code in a normal repl it should tell you the file where things go wrong. Also the caused by lines tell you the chain of causes. Not the location information (bar.clj:1) alsthough the 1 is entirely correct. user= (require 'foo.bar) java.lang.RuntimeException: java.lang.RuntimeException: java.lang.IllegalArgumentException: Don't know how to create ISe q from: clojure.lang.Symbol (bar.clj:1) user= (.printStackTrace *e) java.lang.RuntimeException: java.lang.RuntimeException: java.lang.IllegalArgumentException: Don't know how to create ISeq from: clojure.lang.Symbol (bar.clj:1) at clojure.lang.Compiler.eval(Compiler.java:5435) snip at clojure.main.main(main.java:37) Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.IllegalArgumentException: Don't know how to create ISeq from: clojure.lang.Symbol at clojure.lang.LazySeq.sval(LazySeq.java:47) snip at clojure.lang.Compiler.macroexpand(Compiler.java:5336) at clojure.lang.Compiler.eval(Compiler.java:5404) ... 32 more Caused by: java.lang.RuntimeException: java.lang.IllegalArgumentException: Don't know how to create ISeq from: clojure.l ang.Symbol at clojure.lang.LazySeq.sval(LazySeq.java:47) snip at clojure.lang.LazySeq.sval(LazySeq.java:42) ... 45 more Caused by: java.lang.IllegalArgumentException: Don't know how to create ISeq from: clojure.lang.Symbol at clojure.lang.RT.seqFrom(RT.java:471) snip at clojure.lang.LazySeq.sval(LazySeq.java:42) ... 50 more Sincerely Meikel -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en