I can't get demo to run

I just downloaded the command line version for windows of 2.7.2 and I get the following error

C:\breve_windows_2.7.2\breve_2.7.2>bin\breve demos\Braitenberg\Aggressor.py
'import site' failed; use -v for traceback
Traceback (most recent call last):
File "lib/classes\breve\__init__.py", line 3, in ?
import sys, os, math, random, array
ImportError: No module named os
Failed to initialize Python frontend. breve will not be able to execute Python
files.
Parse Error: syntax error in file "demos\Braitenberg\Aggressor.py" at line 7 nea
r "breve" at line 7 of file "demos\Braitenberg\Aggressor.py"

I had the same problem with 2.6. I do have python installed on my computer. The IDE version does work.

Any ideas?

Thanks,
Jonathan

Strange...

I've just tested this and had no problems. I wonder if the system-wide Python installation could be conflicting with the one that comes with breve. Can you test on a machine that doesn't have Python installed?

- jon

thanks

Jon,

Thanks, I tried all permutations for the PYTHONPATH variable as well as removing python under Breve 2.6 but nothing worked.

But when I set the PYTHONPATH tonight under 2.7.2 it did work. So either my fiddling before didn't hit the right note or there was a change in 2.7 that allowed it to work.

Either way it works for me now.

Thanks,
Jonathan

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.