在clojure中绑定python时,遇到如下错误。请评论如何解决此错误。
Exception in thread "main" java.lang.RuntimeException:
Unable to resolve symbol: boolean? in this context, compiling (tech/v2/datatype/casting.clj:154:5)
Run Code Online (Sandbox Code Playgroud)
配置如下
一种。项目.clj
.....
:dependencies [[org.clojure/clojure "1.8.0"]
[environ "1.1.0"]
[clj-python/libpython-clj "1.44"]]
.....
Run Code Online (Sandbox Code Playgroud)
湾 核心文件
(: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.-]])
.....
Run Code Online (Sandbox Code Playgroud)
该函数boolean?是在 Clojure 1.9 中添加的:
$ clj
Clojure 1.10.1
user=> (-> #'boolean? meta :added)
"1.9"
Run Code Online (Sandbox Code Playgroud)
由于您正在使用1.8此功能不可用。
| 归档时间: |
|
| 查看次数: |
122 次 |
| 最近记录: |