clj-python / clj-python/libpython-clj
builtins/eval throws 'frame does not exist'
未關閉
還沒有人認領這個 Issue。
- 主要語言
- Clojure
- 星號
- 1.2k
- 分支
- 74
- PR 合併指標
- 30 天內沒有已合併 PR
描述
(require-python '[builtins :as bt])
(bt/eval "1")
;Execution error at libpython-clj2.python.ffi/check-error-throw (ffi.clj:708) .
; SystemError: frame does not exist
while this works
(require-python '[builtins :as bt])
(bt/eval "1" {})
while in python both work:
>>> eval('1+1')
2
>>> eval('1+1',{})
2
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
從報告中的重現步驟開始,檢查 libpython-clj2/python/ffi.clj 第 708 行,也就是回報錯誤的位置。比較失敗的 bt/eval "1" 呼叫與傳入空 map 的正常呼叫。當兩種形式都能成功求值且不出現 “frame does not exist” 錯誤時,即完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- clojure, python
- 領域
- api, backend
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100