clj-python / clj-python/libpython-clj
builtins/eval throws 'frame does not exist'
Open
Nobody has claimed this yet.
- Dominant language
- Clojure
- Stars
- 1.2k
- Forks
- 74
- PR merge metrics
- No merged PRs in 30d
Description
(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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the reported reproduction and inspect libpython-clj2/python/ffi.clj at line 708, where the error is reported. Compare the failing bt/eval "1" call with the working call that passes an empty map. Done means both forms evaluate successfully without the “frame does not exist” error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- clojure, python
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100