[clpython-devel] Cannot import

Willem Broekema metawilm at gmail.com
Fri Jul 24 11:22:44 UTC 2009


On Fri, Jul 24, 2009 at 12:14 PM, Seo Sanghyeon<sanxiyn at gmail.com> wrote:
> $ sbcl
> * (require 'clpython)
> * (clpython.app.repl:repl)
>>>> import sys
>>>> sys.path.append('/usr/lib/python2.5')
>>>> import types
> debugger invoked on a
> CLPYTHON.USER.BUILTIN.TYPE.EXCEPTION:|ImportError| in thread
>  ImportError: Could not find module/package `types'.Search paths
> tried: ".", "/usr/lib/python2.5"
>
> Any idea?

Assuming there is a file /usr/lib/python2.5/types.py, try adding a
backslash to the end: "/usr/lib/python2.5/".
I've been working on import improvements, so that many built-in
modules including "types" can be imported. I'll submit that shortly.

- Willem




More information about the Clpython-devel mailing list