Skip to content

How to load cl python in clasp

Karsten Poeck edited this page Mar 22, 2019 · 5 revisions
  • clone clpython from https://github.com/kpoeck/cl-python.git (master) into ~/quicklisp/local-projects/fork-cl-python/
  • (load "~/quicklisp/setup.lisp")
  • (ql:quickload "clpython" :verbose t) you will get the following error:
Condition of type: SIMPLE-ERROR
Class #<The STANDARD-CLASS CLPYTHON::DICT-MIXIN> is not a valid superclass for #<The CLPYTHON::PY-META-TYPE CLPYTHON:PY-TYPE>
Available restarts:
(use :r1 to invoke restart 1)
  • (load "~/quicklisp/local-projects/fork-cl-python/runtime/metaclass.lisp")
  • :r1
  • cl-python should be loaded
  • test
COMMON-LISP-USER> (clpython:run "2 + 3")
5
COMMON-LISP-USER> (clpython:run "for i in range(4): print i")
0
1
2
3
NIL
  • optionally (ASDF/OPERATE:TEST-SYSTEM "clpython")
Clone this wiki locally