Failed to initialize Python frontend

Hi All,

As a new comer to breve, I have just downloaded breve and have installed it in my WinXP platform. However, when I am running the first breve demo in a DOS box, the following error occurs

C:\breve_2.7.2>.\BIN\BREVE.EXE DEMOS\GATHERERS.TZ
'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.

It seems that breve does not know the path to the Python packages. I notice that I had already installed another version of Python and the 'PYTHONPATH' environment variable has been set to 'C:\Program Files\nupic-1.5\lib\python2.4\site-packages'.

Does anyone know how to config breve to point to the appropriate Python package (or point to Python package supplied in breve) ?

Thanks for any suggestion.

Regards
Lawrence

breve has it's own Python built-in

breve comes with its own Python libraries, so I'm betting that the PYTHONPATH you have set up is causing breve to get confused.

Try unsetting the PYTHONPATH variable and see if breve finds the correct libraries in its own distribution.

- jon

Failed to initialize Python frontend

Hi jon,

The problem is solved when I try to use "breve Integrated Development Environment Version 2.7.2" instead of the command line version.

Thanks for your suggestion.

Regards
Lawrence

Comment viewing options

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