Reputation: 1813
When binding python in clojure, I encounter the following error. Please comment how to resolve this error.
Exception in thread "main" java.lang.RuntimeException:
Unable to resolve symbol: boolean? in this context, compiling (tech/v2/datatype/casting.clj:154:5)
The configuration as following
a. project.clj
.....
:dependencies [[org.clojure/clojure "1.8.0"]
[environ "1.1.0"]
[clj-python/libpython-clj "1.44"]]
.....
b. core.clj
(:require [clojure.core.async :refer [<!!]]
[clojure.string :as str]
[environ.core :refer [env]]
[libpython-clj.require :refer [require-python]]
[libpython-clj.python :as py :refer [py. py.. py.-]])
.....
Upvotes: 0
Views: 204
Reputation: 34840
The function boolean?
was added in Clojure 1.9:
$ clj
Clojure 1.10.1
user=> (-> #'boolean? meta :added)
"1.9"
Since you are using 1.8
this function is not available.
Upvotes: 6