abo-abo / lispy

Short and sweet LISP editing
http://oremacs.com/lispy/
1.19k stars 129 forks source link

json-parse-error when evaluating Python with lispy #681

Open guibor opened 1 month ago

guibor commented 1 month ago

Debugger entered--Lisp error: (json-parse-error "invalid token near '_'" "" 1 1 1) json-parse-string("__PYTHON_EL_eval(\"lp.eval_to_json(\\"\\"\\"a = 1 \\"\\"..." :object-type plist :null-object nil)

guibor commented 1 month ago

and now I get

(args-out-of-range "__PYTHON_EL_eval(\"lp.eval_to_json(\\"\\"\\"import inf..." 2518 nil)

guibor commented 3 weeks ago

Ultimately was an issue loading the module. I had to install gnureadline on my mac, and replace "import readline" with "import gnureadline as readline" in lispy-python.py