I'm running into an error while trying to get CLPython up and running.
The test suite fails on the first Python import test with an UnexpectedEofError. Any other attempt at importing gives the same error. For example these three lines of code give the error as below:
(ql:quickload "clpython") (push #p"clpython-20110219-git/test/data" *CLPYTHON-MODULE-SEARCH-PATHS*) (clpython:run "import bar")
;; Parsing #P"clpython-20110219-git/test/data/bar.py" into #P"clpython-20110219-git/test/data/bar.py.lisp"
;; Error occured while reading input with the Python readtable: ;; UnexpectedEofError: Unexpected end of file. ;; Standard IO syntax (*readtable* etc) has been activated to enable debugging.
debugger invoked on a CLPYTHON.USER.BUILTIN.TYPE.EXCEPTION:|UnexpectedEofError| in thread #<THREAD "initial thread" RUNNING {10029994E1}>: UnexpectedEofError: Unexpected end of file.
It's the most recent quicklisp version of CLPython on Linux.
SBCL 1.0.49 quicklisp version 2011051901 clpython-20110219-git Python 2.7.2 Linux 2.6.39
On Wed, Jun 22, 2011 at 2:27 PM, Breanndán Ó Nualláin bon@science.uva.nl wrote:
I'm running into an error while trying to get CLPython up and running.
The test suite fails on the first Python import test with an UnexpectedEofError. Any other attempt at importing gives the same error.
Thanks for the report. It's caused by a bug in SBCL that I had encountered earlier, but had forgotten to commit a workaround for: https://bugs.launchpad.net/sbcl/+bug/690408
I've committed the workaround now: https://github.com/franzinc/cl-python/commit/6008967cbb2ee690a087120a8170ca0...
Until this version is included in QuickLisp I'm not sure what the proper way to patch your CLPython within QuickLisp is, but modifying quicklisp/dists/quicklisp/software/clpython-20110619-git/util/readtable.lisp seems to work.
- Willem
"Willem" == Willem Broekema metawilm@gmail.com writes:
Willem> On Wed, Jun 22, 2011 at 2:27 PM, Breanndán Ó Nualláin Willem> bon@science.uva.nl wrote: >> I'm running into an error while trying to get CLPython up and >> running. >> >> The test suite fails on the first Python import test with an >> UnexpectedEofError. Any other attempt at importing gives the same >> error.
Willem> Thanks for the report. It's caused by a bug in SBCL that I had Willem> encountered earlier, but had forgotten to commit a workaround Willem> for: https://bugs.launchpad.net/sbcl/+bug/690408
Willem> I've committed the workaround now: Willem> https://github.com/franzinc/cl-python/commit/6008967cbb2ee690a087120a8170ca0...
Willem> Until this version is included in QuickLisp I'm not sure what Willem> the proper way to patch your CLPython within QuickLisp is, but Willem> modifying Willem> quicklisp/dists/quicklisp/software/clpython-20110619-git/util/readtable.lisp Willem> seems to work.
Many thanks for the quick turnaround, Willem.
I sidestepped quicklisp, pulled the latest git of cl-python and hooked it in using asdf. It works fine.
Groeten,
Breanndán
clpython-devel@common-lisp.net