views:

8

answers:

1

I have a fresh install of python25 with xwidgits for it just like the instructions say. When I try to run the py file I get the following error.

C:\development\android-sdk-windows\tools\Jet\JetCreator>python -v JetCreator.py

installing zipimport hook

import zipimport # builtin

installed zipimport hook

'import site' failed; traceback: ImportError: No module named site Python 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. Traceback (most recent call last): File "JetCreator.py", line 23, in from future import with_statement ImportError: No module named future

clear builtin._

clear sys.path

clear sys.argv

clear sys.ps1

clear sys.ps2

clear sys.exitfunc

clear sys.exc_type

clear sys.exc_value

clear sys.exc_traceback

clear sys.last_type

clear sys.last_value

clear sys.last_traceback

clear sys.path_hooks

clear sys.path_importer_cache

clear sys.meta_path

restore sys.stdin

restore sys.stdout

restore sys.stderr

cleanup main

cleanup[1] zipimport

cleanup[1] signal

cleanup[1] exceptions

cleanup sys

cleanup builtin

cleanup ints

cleanup floats

I can't think of anything else to do and I would like to have the flexibility in the JetEngine since MOD libs don't seem to have the dynamic control I need. I haven't begun to learn python yet so I'm not sure, but I can't really see where it's looking for the module site or future.

A: 

The problem was messed up PYTHONPATH AND PYTHONHOME env variables. I'm pretty sure I've fallen for this one before so I didn't think it was the problem yet again...

Benjamin