framed-data / overseer

Overseer is a library for building and running data pipelines in Clojure.
Eclipse Public License 1.0
97 stars 10 forks source link

issue with clj_http dependency? #101

Open dvliman opened 5 years ago

dvliman commented 5 years ago

I am running into this issue when requiring overseer.api :as overseer. Here is my vanilla setup: https://github.com/dvliman/workflow_poc

I tested against clojure 1.8.0, 1.9.0, and 1.10.0 and overseer 0.8.6, 0.8.8 and 0.8.9-SNAPSHOT. Might be a good idea to update [clj-http "1.1.2"] version? latest version is [clj-http "3.9.1"]

gt@gts-MacBook-Pro ~/v/workflow-poc> lein uberjar
Compiling workflow-poc.core
WARNING: int? already refers to: #'clojure.core/int? in namespace: miner.herbert.predicates, being replaced by: #'miner.herbert.predicates/int?
WARNING: any? already refers to: #'clojure.core/any? in namespace: miner.herbert.predicates, being replaced by: #'miner.herbert.predicates/any?
WARNING: indexed? already refers to: #'clojure.core/indexed? in namespace: miner.herbert.predicates, being replaced by: #'miner.herbert.predicates/indexed?
WARNING: pos-int? already refers to: #'clojure.core/pos-int? in namespace: taoensso.encore, being replaced by: #'taoensso.encore/pos-int?
WARNING: bytes? already refers to: #'clojure.core/bytes? in namespace: taoensso.encore, being replaced by: #'taoensso.encore/bytes?
Syntax error macroexpanding clojure.core/import at (clj_http/headers.clj:105:1).
Exception in thread "main" Syntax error macroexpanding clojure.core/import at (clj_http/headers.clj:105:1).
Call to clojure.core/import did not conform to spec.
    at clojure.lang.Compiler.checkSpecs(Compiler.java:6971)
    at clojure.lang.Compiler.macroexpand1(Compiler.java:6987)
    at clojure.core$macroexpand_1.invokeStatic(core.clj:4024)
    at clojure.core$macroexpand_1.invoke(core.clj:4018)
    at riddley.walk$macroexpand$fn__5354.invoke(walk.clj:30)
    at clojure.lang.AFn.applyToHelper(AFn.java:152)
    at clojure.lang.AFn.applyTo(AFn.java:144)
    at clojure.core$apply.invokeStatic(core.clj:665)
    at clojure.core$with_bindings_STAR_.invokeStatic(core.clj:1973)
    at clojure.core$with_bindings_STAR_.doInvoke(core.clj:1973)
    at clojure.lang.RestFn.invoke(RestFn.java:425)
    at riddley.walk$macroexpand.invokeStatic(walk.clj:19)
    at riddley.walk$macroexpand.invoke(walk.clj:12)
    at riddley.walk$walk_exprs$fn__5467$fn__5468.invoke(walk.clj:195)
    at riddley.walk$walk_exprs$fn__5467.invoke(walk.clj:194)
    at clojure.lang.AFn.applyToHelper(AFn.java:152)
    at clojure.lang.AFn.applyTo(AFn.java:144)
    at clojure.core$apply.invokeStatic(core.clj:665)
    at clojure.core$with_bindings_STAR_.invokeStatic(core.clj:1973)
    at clojure.core$with_bindings_STAR_.doInvoke(core.clj:1973)
    at clojure.lang.RestFn.invoke(RestFn.java:425)
    at riddley.walk$walk_exprs.invokeStatic(walk.clj:193)
    at riddley.walk$walk_exprs.invoke(walk.clj:178)
    at clojure.core$partial$fn__5828.invoke(core.clj:2638)
    at clojure.core$map$fn__5851.invoke(core.clj:2755)
    at clojure.lang.LazySeq.sval(LazySeq.java:42)
    at clojure.lang.LazySeq.seq(LazySeq.java:51)
    at clojure.lang.Cons.next(Cons.java:39)
    at clojure.lang.RT.next(RT.java:709)
    at clojure.core$next__5371.invokeStatic(core.clj:64)
    at clojure.core$dorun.invokeStatic(core.clj:3142)
    at clojure.core$doall.invokeStatic(core.clj:3148)
    at clojure.core$doall.invoke(core.clj:3148)
    at riddley.walk$let_handler$fn__5442.invoke(walk.clj:136)
    at clojure.lang.AFn.applyToHelper(AFn.java:152)
    at clojure.lang.AFn.applyTo(AFn.java:144)
    at clojure.core$apply.invokeStatic(core.clj:665)
    at clojure.core$with_bindings_STAR_.invokeStatic(core.clj:1973)
    at clojure.core$with_bindings_STAR_.doInvoke(core.clj:1973)
    at clojure.lang.RestFn.invoke(RestFn.java:425)
    at riddley.walk$let_handler.invokeStatic(walk.clj:135)
    at riddley.walk$let_handler.invoke(walk.clj:134)
    at riddley.walk$walk_exprs$fn__5467.invoke(walk.clj:211)
    at clojure.lang.AFn.applyToHelper(AFn.java:152)
    at clojure.lang.AFn.applyTo(AFn.java:144)
    at clojure.core$apply.invokeStatic(core.clj:665)
    at clojure.core$with_bindings_STAR_.invokeStatic(core.clj:1973)
    at clojure.core$with_bindings_STAR_.doInvoke(core.clj:1973)
    at clojure.lang.RestFn.invoke(RestFn.java:425)
    at riddley.walk$walk_exprs.invokeStatic(walk.clj:193)
    at riddley.walk$walk_exprs.invoke(walk.clj:178)
    at riddley.walk$walk_exprs.invokeStatic(walk.clj:191)
    at riddley.walk$walk_exprs.invoke(walk.clj:178)
    at riddley.walk$macroexpand_all.invokeStatic(walk.clj:257)
    at riddley.walk$macroexpand_all.invoke(walk.clj:254)
    at potemkin.types$deftype_PLUS_.invokeStatic(types.clj:309)
    at potemkin.types$deftype_PLUS_.doInvoke(types.clj:290)
    at clojure.lang.RestFn.applyTo(RestFn.java:151)
    at clojure.lang.Var.applyTo(Var.java:705)
    at clojure.lang.Compiler.macroexpand1(Compiler.java:6992)
    at clojure.lang.Compiler.macroexpand(Compiler.java:7074)
    at clojure.lang.Compiler.compile1(Compiler.java:7715)
    at clojure.lang.Compiler.compile1(Compiler.java:7720)
    at clojure.lang.Compiler.compile(Compiler.java:7797)
    at clojure.lang.RT.compile(RT.java:415)
    at clojure.lang.RT.load(RT.java:461)
    at clojure.lang.RT.load(RT.java:428)
    at clojure.core$load$fn__6824.invoke(core.clj:6126)
    at clojure.core$load.invokeStatic(core.clj:6125)
    at clojure.core$load.doInvoke(core.clj:6109)
    at clojure.lang.RestFn.invoke(RestFn.java:408)
    at clojure.core$load_one.invokeStatic(core.clj:5908)
    at clojure.core$load_one.invoke(core.clj:5903)
    at clojure.core$load_lib$fn__6765.invoke(core.clj:5948)
    at clojure.core$load_lib.invokeStatic(core.clj:5947)
    at clojure.core$load_lib.doInvoke(core.clj:5928)
    at clojure.lang.RestFn.applyTo(RestFn.java:142)
    at clojure.core$apply.invokeStatic(core.clj:667)
    at clojure.core$load_libs.invokeStatic(core.clj:5985)
    at clojure.core$load_libs.doInvoke(core.clj:5969)
    at clojure.lang.RestFn.applyTo(RestFn.java:137)
    at clojure.core$apply.invokeStatic(core.clj:667)
    at clojure.core$require.invokeStatic(core.clj:6007)
    at clojure.core$require.doInvoke(core.clj:6007)
    at clojure.lang.RestFn.invoke(RestFn.java:482)
    at clj_http.core$loading__6706__auto____5284.invoke(core.clj:1)
    at clojure.lang.AFn.applyToHelper(AFn.java:152)
    at clojure.lang.AFn.applyTo(AFn.java:144)
    at clojure.lang.Compiler$InvokeExpr.eval(Compiler.java:3702)
    at clojure.lang.Compiler.compile1(Compiler.java:7730)
    at clojure.lang.Compiler.compile1(Compiler.java:7720)
    at clojure.lang.Compiler.compile(Compiler.java:7797)
    at clojure.lang.RT.compile(RT.java:415)
    at clojure.lang.RT.load(RT.java:461)
    at clojure.lang.RT.load(RT.java:428)
    at clojure.core$load$fn__6824.invoke(core.clj:6126)
    at clojure.core$load.invokeStatic(core.clj:6125)
    at clojure.core$load.doInvoke(core.clj:6109)
    at clojure.lang.RestFn.invoke(RestFn.java:408)
    at clojure.core$load_one.invokeStatic(core.clj:5908)
    at clojure.core$load_one.invoke(core.clj:5903)
    at clojure.core$load_lib$fn__6765.invoke(core.clj:5948)
    at clojure.core$load_lib.invokeStatic(core.clj:5947)
    at clojure.core$load_lib.doInvoke(core.clj:5928)
    at clojure.lang.RestFn.applyTo(RestFn.java:142)
    at clojure.core$apply.invokeStatic(core.clj:667)
    at clojure.core$load_libs.invokeStatic(core.clj:5985)
    at clojure.core$load_libs.doInvoke(core.clj:5969)
    at clojure.lang.RestFn.applyTo(RestFn.java:137)
    at clojure.core$apply.invokeStatic(core.clj:667)
    at clojure.core$require.invokeStatic(core.clj:6007)
    at clojure.core$require.doInvoke(core.clj:6007)
    at clojure.lang.RestFn.invoke(RestFn.java:805)
    at clj_http.client$loading__6706__auto____5136.invoke(client.clj:1)
    at clojure.lang.AFn.applyToHelper(AFn.java:152)
    at clojure.lang.AFn.applyTo(AFn.java:144)
    at clojure.lang.Compiler$InvokeExpr.eval(Compiler.java:3702)
    at clojure.lang.Compiler.compile1(Compiler.java:7730)
    at clojure.lang.Compiler.compile1(Compiler.java:7720)
    at clojure.lang.Compiler.compile(Compiler.java:7797)
    at clojure.lang.RT.compile(RT.java:415)
    at clojure.lang.RT.load(RT.java:461)
    at clojure.lang.RT.load(RT.java:428)
    at clojure.core$load$fn__6824.invoke(core.clj:6126)
    at clojure.core$load.invokeStatic(core.clj:6125)
    at clojure.core$load.doInvoke(core.clj:6109)
    at clojure.lang.RestFn.invoke(RestFn.java:408)
    at clojure.core$load_one.invokeStatic(core.clj:5908)
    at clojure.core$load_one.invoke(core.clj:5903)
    at clojure.core$load_lib$fn__6765.invoke(core.clj:5948)
    at clojure.core$load_lib.invokeStatic(core.clj:5947)
    at clojure.core$load_lib.doInvoke(core.clj:5928)
    at clojure.lang.RestFn.applyTo(RestFn.java:142)
    at clojure.core$apply.invokeStatic(core.clj:667)
    at clojure.core$load_libs.invokeStatic(core.clj:5985)
    at clojure.core$load_libs.doInvoke(core.clj:5969)
    at clojure.lang.RestFn.applyTo(RestFn.java:137)
    at clojure.core$apply.invokeStatic(core.clj:667)
    at clojure.core$require.invokeStatic(core.clj:6007)
    at clojure.core$require.doInvoke(core.clj:6007)
    at clojure.lang.RestFn.invoke(RestFn.java:436)
    at raven_clj.core$loading__6706__auto____4438.invoke(core.clj:1)
    at clojure.lang.AFn.applyToHelper(AFn.java:152)
    at clojure.lang.AFn.applyTo(AFn.java:144)
    at clojure.lang.Compiler$InvokeExpr.eval(Compiler.java:3702)
    at clojure.lang.Compiler.compile1(Compiler.java:7730)
    at clojure.lang.Compiler.compile1(Compiler.java:7720)
    at clojure.lang.Compiler.compile(Compiler.java:7797)
    at clojure.lang.RT.compile(RT.java:415)
    at clojure.lang.RT.load(RT.java:461)
    at clojure.lang.RT.load(RT.java:428)
    at clojure.core$load$fn__6824.invoke(core.clj:6126)
    at clojure.core$load.invokeStatic(core.clj:6125)
    at clojure.core$load.doInvoke(core.clj:6109)
    at clojure.lang.RestFn.invoke(RestFn.java:408)
    at clojure.core$load_one.invokeStatic(core.clj:5908)
    at clojure.core$load_one.invoke(core.clj:5903)
    at clojure.core$load_lib$fn__6765.invoke(core.clj:5948)
    at clojure.core$load_lib.invokeStatic(core.clj:5947)
    at clojure.core$load_lib.doInvoke(core.clj:5928)
    at clojure.lang.RestFn.applyTo(RestFn.java:142)
    at clojure.core$apply.invokeStatic(core.clj:667)
    at clojure.core$load_libs.invokeStatic(core.clj:5989)
    at clojure.core$load_libs.doInvoke(core.clj:5969)
    at clojure.lang.RestFn.applyTo(RestFn.java:137)
    at clojure.core$apply.invokeStatic(core.clj:667)
    at clojure.core$require.invokeStatic(core.clj:6007)
    at clojure.core$require.doInvoke(core.clj:6007)
    at clojure.lang.RestFn.invoke(RestFn.java:457)
    at overseer.errors$loading__6706__auto____4412.invoke(errors.clj:1)
    at clojure.lang.AFn.applyToHelper(AFn.java:152)
    at clojure.lang.AFn.applyTo(AFn.java:144)
    at clojure.lang.Compiler$InvokeExpr.eval(Compiler.java:3702)
    at clojure.lang.Compiler.compile1(Compiler.java:7730)
    at clojure.lang.Compiler.compile1(Compiler.java:7720)
    at clojure.lang.Compiler.compile(Compiler.java:7797)
    at clojure.lang.RT.compile(RT.java:415)
    at clojure.lang.RT.load(RT.java:461)
    at clojure.lang.RT.load(RT.java:428)
    at clojure.core$load$fn__6824.invoke(core.clj:6126)
    at clojure.core$load.invokeStatic(core.clj:6125)
    at clojure.core$load.doInvoke(core.clj:6109)
    at clojure.lang.RestFn.invoke(RestFn.java:408)
    at clojure.core$load_one.invokeStatic(core.clj:5908)
    at clojure.core$load_one.invoke(core.clj:5903)
    at clojure.core$load_lib$fn__6765.invoke(core.clj:5948)
    at clojure.core$load_lib.invokeStatic(core.clj:5947)
    at clojure.core$load_lib.doInvoke(core.clj:5928)
    at clojure.lang.RestFn.applyTo(RestFn.java:142)
    at clojure.core$apply.invokeStatic(core.clj:667)
    at clojure.core$load_libs.invokeStatic(core.clj:5989)
    at clojure.core$load_libs.doInvoke(core.clj:5969)
    at clojure.lang.RestFn.applyTo(RestFn.java:137)
    at clojure.core$apply.invokeStatic(core.clj:667)
    at clojure.core$require.invokeStatic(core.clj:6007)
    at clojure.core$require.doInvoke(core.clj:6007)
    at clojure.lang.RestFn.invoke(RestFn.java:436)
    at overseer.executor$loading__6706__auto____2348.invoke(executor.clj:1)
    at clojure.lang.AFn.applyToHelper(AFn.java:152)
    at clojure.lang.AFn.applyTo(AFn.java:144)
    at clojure.lang.Compiler$InvokeExpr.eval(Compiler.java:3702)
    at clojure.lang.Compiler.compile1(Compiler.java:7730)
    at clojure.lang.Compiler.compile1(Compiler.java:7720)
    at clojure.lang.Compiler.compile(Compiler.java:7797)
    at clojure.lang.RT.compile(RT.java:415)
    at clojure.lang.RT.load(RT.java:461)
    at clojure.lang.RT.load(RT.java:428)
    at clojure.core$load$fn__6824.invoke(core.clj:6126)
    at clojure.core$load.invokeStatic(core.clj:6125)
    at clojure.core$load.doInvoke(core.clj:6109)
    at clojure.lang.RestFn.invoke(RestFn.java:408)
    at clojure.core$load_one.invokeStatic(core.clj:5908)
    at clojure.core$load_one.invoke(core.clj:5903)
    at clojure.core$load_lib$fn__6765.invoke(core.clj:5948)
    at clojure.core$load_lib.invokeStatic(core.clj:5947)
    at clojure.core$load_lib.doInvoke(core.clj:5928)
    at clojure.lang.RestFn.applyTo(RestFn.java:142)
    at clojure.core$apply.invokeStatic(core.clj:667)
    at clojure.core$load_libs.invokeStatic(core.clj:5989)
    at clojure.core$load_libs.doInvoke(core.clj:5969)
    at clojure.lang.RestFn.applyTo(RestFn.java:137)
    at clojure.core$apply.invokeStatic(core.clj:667)
    at clojure.core$require.invokeStatic(core.clj:6007)
    at clojure.core$require.doInvoke(core.clj:6007)
    at clojure.lang.RestFn.invoke(RestFn.java:512)
    at overseer.api$loading__6706__auto____173.invoke(api.clj:1)
    at clojure.lang.AFn.applyToHelper(AFn.java:152)
    at clojure.lang.AFn.applyTo(AFn.java:144)
    at clojure.lang.Compiler$InvokeExpr.eval(Compiler.java:3702)
    at clojure.lang.Compiler.compile1(Compiler.java:7730)
    at clojure.lang.Compiler.compile1(Compiler.java:7720)
    at clojure.lang.Compiler.compile(Compiler.java:7797)
    at clojure.lang.RT.compile(RT.java:415)
    at clojure.lang.RT.load(RT.java:461)
    at clojure.lang.RT.load(RT.java:428)
    at clojure.core$load$fn__6824.invoke(core.clj:6126)
    at clojure.core$load.invokeStatic(core.clj:6125)
    at clojure.core$load.doInvoke(core.clj:6109)
    at clojure.lang.RestFn.invoke(RestFn.java:408)
    at clojure.core$load_one.invokeStatic(core.clj:5908)
    at clojure.core$load_one.invoke(core.clj:5903)
    at clojure.core$load_lib$fn__6765.invoke(core.clj:5948)
    at clojure.core$load_lib.invokeStatic(core.clj:5947)
    at clojure.core$load_lib.doInvoke(core.clj:5928)
    at clojure.lang.RestFn.applyTo(RestFn.java:142)
    at clojure.core$apply.invokeStatic(core.clj:667)
    at clojure.core$load_libs.invokeStatic(core.clj:5985)
    at clojure.core$load_libs.doInvoke(core.clj:5969)
    at clojure.lang.RestFn.applyTo(RestFn.java:137)
    at clojure.core$apply.invokeStatic(core.clj:667)
    at clojure.core$require.invokeStatic(core.clj:6007)
    at clojure.core$require.doInvoke(core.clj:6007)
    at clojure.lang.RestFn.invoke(RestFn.java:408)
    at workflow_poc.core$loading__6706__auto____171.invoke(core.clj:1)
    at clojure.lang.AFn.applyToHelper(AFn.java:152)
    at clojure.lang.AFn.applyTo(AFn.java:144)
    at clojure.lang.Compiler$InvokeExpr.eval(Compiler.java:3702)
    at clojure.lang.Compiler.compile1(Compiler.java:7730)
    at clojure.lang.Compiler.compile1(Compiler.java:7720)
    at clojure.lang.Compiler.compile(Compiler.java:7797)
    at clojure.lang.RT.compile(RT.java:415)
    at clojure.lang.RT.load(RT.java:461)
    at clojure.lang.RT.load(RT.java:428)
    at clojure.core$load$fn__6824.invoke(core.clj:6126)
    at clojure.core$load.invokeStatic(core.clj:6125)
    at clojure.core$load.doInvoke(core.clj:6109)
    at clojure.lang.RestFn.invoke(RestFn.java:408)
    at clojure.core$load_one.invokeStatic(core.clj:5908)
    at clojure.core$compile$fn__6829.invoke(core.clj:6136)
    at clojure.core$compile.invokeStatic(core.clj:6136)
    at clojure.core$compile.invoke(core.clj:6128)
    at user$eval155$fn__164.invoke(form-init4666090487079478965.clj:1)
    at user$eval155.invokeStatic(form-init4666090487079478965.clj:1)
    at user$eval155.invoke(form-init4666090487079478965.clj:1)
    at clojure.lang.Compiler.eval(Compiler.java:7176)
    at clojure.lang.Compiler.eval(Compiler.java:7166)
    at clojure.lang.Compiler.eval(Compiler.java:7166)
    at clojure.lang.Compiler.load(Compiler.java:7635)
    at clojure.lang.Compiler.loadFile(Compiler.java:7573)
    at clojure.main$load_script.invokeStatic(main.clj:452)
    at clojure.main$init_opt.invokeStatic(main.clj:454)
    at clojure.main$init_opt.invoke(main.clj:454)
    at clojure.main$initialize.invokeStatic(main.clj:485)
    at clojure.main$null_opt.invokeStatic(main.clj:519)
    at clojure.main$null_opt.invoke(main.clj:516)
    at clojure.main$main.invokeStatic(main.clj:598)
    at clojure.main$main.doInvoke(main.clj:561)
    at clojure.lang.RestFn.applyTo(RestFn.java:137)
    at clojure.lang.Var.applyTo(Var.java:705)
    at clojure.main.main(main.java:37)
Caused by: clojure.lang.ExceptionInfo: Call to clojure.core/import did not conform to spec. {:clojure.spec.alpha/problems ({:path [:class :spec], :pred clojure.core/simple-symbol?, :val clj_http.headers.clj-http.headers/HeaderMap, :via [:clojure.core.specs.alpha/quotable-import-list :clojure.core.specs.alpha/quotable-import-list], :in [0]} {:path [:class :quoted-spec], :pred (clojure.core/fn [%] (clojure.core/or (clojure.core/nil? %) (clojure.core/sequential? %))), :val clj_http.headers.clj-http.headers/HeaderMap, :via [:clojure.core.specs.alpha/quotable-import-list :clojure.core.specs.alpha/quotable-import-list], :in [0]} {:path [:package-list :spec], :pred (clojure.core/fn [%] (clojure.core/or (clojure.core/nil? %) (clojure.core/sequential? %))), :val clj_http.headers.clj-http.headers/HeaderMap, :via [:clojure.core.specs.alpha/quotable-import-list :clojure.core.specs.alpha/quotable-import-list :clojure.core.specs.alpha/package-list], :in [0]} {:path [:package-list :quoted-spec], :pred (clojure.core/fn [%] (clojure.core/or (clojure.core/nil? %) (clojure.core/sequential? %))), :val clj_http.headers.clj-http.headers/HeaderMap, :via [:clojure.core.specs.alpha/quotable-import-list :clojure.core.specs.alpha/quotable-import-list], :in [0]}), :clojure.spec.alpha/spec #object[clojure.spec.alpha$regex_spec_impl$reify__2509 0x18a6c904 "clojure.spec.alpha$regex_spec_impl$reify__2509@18a6c904"], :clojure.spec.alpha/value (clj_http.headers.clj-http.headers/HeaderMap), :clojure.spec.alpha/args (clj_http.headers.clj-http.headers/HeaderMap)}
    at clojure.spec.alpha$macroexpand_check.invokeStatic(alpha.clj:705)
    at clojure.spec.alpha$macroexpand_check.invoke(alpha.clj:697)
    at clojure.lang.AFn.applyToHelper(AFn.java:156)
    at clojure.lang.AFn.applyTo(AFn.java:144)
    at clojure.lang.Var.applyTo(Var.java:705)
    at clojure.lang.Compiler.checkSpecs(Compiler.java:6969)
    ... 289 more
Compilation failed: Subprocess failed
andrewberls commented 5 years ago

Hello @dvliman , thanks for bringing this to our attention! I've merged #102 and released Overseer 0.8.9 which should fix these issues. Let us know if it works for you!