On Thu, Jun 15, 2006 at 09:37:32AM +0800, YongLi wrote: > Hello All, > > I am using scratchbox 1.0.3 version. I setup an ARM target named test1. > > I encountered a problem about Python in scratchbox. Below is the error > message: > > [sbox-test1: ~] > cd /targets/test1 > 'import site' failed; use -v for traceback
For most operations (excluding packing the root image) you shouldn't go to /targets/foo directory manually; use the root directory instead. Python is being run on prompt command and for some reason it fails. > If I execute the python in /targets/test, I received the below message: > [sbox-: /targets/test1] > python > 'import site' failed; use -v for traceback > Python 2.3.4 (#1, Apr 15 2006, 14:10:44) > [GCC 3.3.5 (Debian 1:3.3.5-13)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>> > > I have compiled an ARM python and installed in the /targets/test1 > directoy. I guess the ARM python caused this problem. what is the > root cause? It might be, that the host python uses wrong modules for some reason (eg. PYTHONPATH variable). output of 'python -v' should give a hint of what is going on. -- Toni Timonen 040-5111863,GPG 0x7984A4FD _______________________________________________ Scratchbox-users mailing list Scratchbox-users@lists.scratchbox.org http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users