From bon at science.uva.nl Wed Jun 22 12:27:38 2011 From: bon at science.uva.nl (=?utf-8?Q?Breannd=C3=A1n_=C3=93_Nuall=C3=A1in?=) Date: Wed, 22 Jun 2011 14:27:38 +0200 Subject: [clpython-devel] import gives UnexpectedEofError Message-ID: <87hb7it5j9.fsf@science.uva.nl> 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 #: 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 From metawilm at gmail.com Wed Jun 22 14:24:28 2011 From: metawilm at gmail.com (Willem Broekema) Date: Wed, 22 Jun 2011 16:24:28 +0200 Subject: [clpython-devel] import gives UnexpectedEofError In-Reply-To: <87hb7it5j9.fsf@science.uva.nl> References: <87hb7it5j9.fsf@science.uva.nl> Message-ID: On Wed, Jun 22, 2011 at 2:27 PM, Breannd?n ? Nuall?in 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/6008967cbb2ee690a087120a8170ca08ec354715 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 From bon at science.uva.nl Wed Jun 22 16:01:45 2011 From: bon at science.uva.nl (=?utf-8?Q?Breannd=C3=A1n_=C3=93_Nuall=C3=A1in?=) Date: Wed, 22 Jun 2011 18:01:45 +0200 Subject: [clpython-devel] import gives UnexpectedEofError In-Reply-To: (Willem Broekema's message of "Wed, 22 Jun 2011 16:24:28 +0200") References: <87hb7it5j9.fsf@science.uva.nl> Message-ID: <87liwtsvme.fsf@science.uva.nl> >>>>> "Willem" == Willem Broekema writes: Willem> On Wed, Jun 22, 2011 at 2:27 PM, Breannd?n ? Nuall?in Willem> 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/6008967cbb2ee690a087120a8170ca08ec354715 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