Hello,
I'm trying to run pybench with clpython. It fails for me pretty early by not finding the 'platform' module. Has anyone tried to do this before?
Thanks in advance,
Hello Luís, welcome to the list.
On Mon, Aug 17, 2009 at 7:23 PM, Luís Oliveiraluismbo@gmail.com wrote:
I'm trying to run pybench with clpython. It fails for me pretty early by not finding the 'platform' module. Has anyone tried to do this before?
Make sure that you have set cl-user::*clpython-module-search-paths* to include the path to the Python 2.5 (or so) libs, and that the path ends in a slash. (I'm working on removing the silly slash requirement.) Then it should be able to find module "platform".
Importing the file will still probably fail though, because it references "sys.executable" which is not defined yet, and beyond that there's probably more things missing. Maybe you can hack up the missing things as you encounter them and see how far you can get?
- Willem
On Tue, Aug 18, 2009 at 11:00 PM, Willem Broekemametawilm@gmail.com wrote:
Make sure that you have set cl-user::*clpython-module-search-paths* to include the path to the Python 2.5 (or so) libs, and that the path ends in a slash. (I'm working on removing the silly slash requirement.) Then it should be able to find module "platform".
Ah, I see. I was trying to do that using sys.path.append() and it wasn't working.
Importing the file will still probably fail though, because it references "sys.executable" which is not defined yet, and beyond that there's probably more things missing. Maybe you can hack up the missing things as you encounter them and see how far you can get?
Will do, thanks for the hints.
On Wed, Aug 19, 2009 at 12:07 AM, Luís Oliveiraluismbo@gmail.com wrote:
Ah, I see. I was trying to do that using sys.path.append() and it wasn't working.
The items in sys.path and *clpython-module-search-paths* are combined, so putting it in either should work. But if you found it didn't, I'll have to look at it.
- Willem
clpython-devel@common-lisp.net