From chenchao at inhand.com.cn Fri Jul 24 04:20:08 2015 From: chenchao at inhand.com.cn (chenchao at inhand.com.cn) Date: Fri, 24 Jul 2015 10:20:08 +0800 Subject: [Mobile-sig] ImportError: No module named site Message-ID: <55B1A0D8.6030202@inhand.com.cn> hi: I'm Needing to get python 2.7.10 to cross compile correctly for an ARM embedded device. When I execute python using shell, it comes out this error:ImportError: No module named site.I have setted environment varible:PYTHONHOME and PYTHONPATH. Is there some good idea to sovle this issue? From lac at openend.se Fri Jul 24 06:15:20 2015 From: lac at openend.se (Laura Creighton) Date: Fri, 24 Jul 2015 06:15:20 +0200 Subject: [Mobile-sig] ImportError: No module named site In-Reply-To: Message from "chenchao@inhand.com.cn" of "Fri, 24 Jul 2015 10:20:08 +0800." <55B1A0D8.6030202@inhand.com.cn> References: <55B1A0D8.6030202@inhand.com.cn> Message-ID: <201507240415.t6O4FKNt012126@fido.openend.se> In a message of Fri, 24 Jul 2015 10:20:08 +0800, "chenchao at inhand.com.cn" write s: >hi: >I'm Needing to get python 2.7.10 to cross compile correctly for an ARM >embedded device. When I execute python using shell, it comes out this >error:ImportError: No module named site.I have setted environment >varible:PYTHONHOME and PYTHONPATH. Is there some good idea to sovle this >issue? You can import other modules just fine? It is just this one that is not working? Laura Creighton From chenchao at inhand.com.cn Fri Jul 24 08:09:45 2015 From: chenchao at inhand.com.cn (chenchao at inhand.com.cn) Date: Fri, 24 Jul 2015 14:09:45 +0800 Subject: [Mobile-sig] python2.7.10-xcompile.patch Message-ID: <55B1D6A9.4010008@inhand.com.cn> hi: Is there anybody know where can I download that patch file? thanks. From chenchao at inhand.com.cn Fri Jul 24 12:10:27 2015 From: chenchao at inhand.com.cn (chenchao at inhand.com.cn) Date: Fri, 24 Jul 2015 18:10:27 +0800 Subject: [Mobile-sig] ImportError: No module named site Message-ID: <55B20F13.1070609@inhand.com.cn> hi: I'm Needing to get python 2.7.10 to cross compile correctly for an ARM embedded device. When I execute python using shell, it comes out this error:ImportError: No module named site.I have setted environment varible:PYTHONHOME and PYTHONPATH. Is there some good idea to solve this issue? This is the result of executingpython -v: -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: aedbdgga.png Type: image/png Size: 168900 bytes Desc: not available URL: From guido at python.org Sat Jul 25 20:14:05 2015 From: guido at python.org (Guido van Rossum) Date: Sat, 25 Jul 2015 20:14:05 +0200 Subject: [Mobile-sig] ImportError: No module named site In-Reply-To: <55B20F13.1070609@inhand.com.cn> References: <55B20F13.1070609@inhand.com.cn> Message-ID: Probably the entire stdlib cannot be found -- 'site' is simply the first module that is imported by the interpreter. To what values did you set PYTHONHOME and PYTHONPATH? I'm guessing that PYTHONHOME is set incorrectly. But you're not giving us enough information to help you further. I recommend asking for help on IRC (#python on freenode) or python-list at python.org. On Fri, Jul 24, 2015 at 12:10 PM, chenchao at inhand.com.cn < chenchao at inhand.com.cn> wrote: > hi: > I'm Needing to get python 2.7.10 to cross compile correctly for an ARM > embedded device. When I execute python using shell, it comes out this > error:ImportError: No module named site.I have setted environment > varible:PYTHONHOME and PYTHONPATH. Is there some good idea to solve this > issue? This is the result of executing python -v: > > > > _______________________________________________ > Mobile-sig mailing list > Mobile-sig at python.org > https://mail.python.org/mailman/listinfo/mobile-sig > > -- --Guido van Rossum (python.org/~guido) -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: aedbdgga.png Type: image/png Size: 168900 bytes Desc: not available URL: From chenchao at inhand.com.cn Mon Jul 27 03:57:26 2015 From: chenchao at inhand.com.cn (chenchao at inhand.com.cn) Date: Mon, 27 Jul 2015 09:57:26 +0800 Subject: [Mobile-sig] ImportError: No module named site In-Reply-To: <55B1A0D8.6030202@inhand.com.cn> References: <55B1A0D8.6030202@inhand.com.cn> Message-ID: <55B59006.5080402@inhand.com.cn> hi: I'm Needing to get python 2.7.10 to cross compile correctly for an ARM embedded device. When I execute python using shell, it comes out this error:ImportError: No module named site.I have setted environment varible:PYTHONHOME and PYTHONPATH. Is there some good idea to sovle this issue? who can tell me how can I download the python2.7.10-xcompile.patch file?thanks. PYTHONHOME='/usr/sbin'. Python installing dir PYTHONPATH='/usr/lib' .The reference lib of python dir. This is the result of executingpython -v: -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 168900 bytes Desc: not available URL: From chenchao at inhand.com.cn Wed Jul 29 10:48:46 2015 From: chenchao at inhand.com.cn (chenchao at inhand.com.cn) Date: Wed, 29 Jul 2015 16:48:46 +0800 Subject: [Mobile-sig] cross compiling 3rd party packages Message-ID: <55B8936E.3090905@inhand.com.cn> hi: I had get python 2.7.10 to cross compile correctly for an ARM embedded device. But i donnot know how to cross compiling 3rd party packages in it. Does anyone know how to do it? thanks.