ImportError: No module named site

2015-07-23 Thread chenc...@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? --

Fwd: ImportError: No module named site

2015-07-23 Thread chenc...@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?

Re: Fwd: ImportError: No module named site

2015-07-23 Thread chenc...@inhand.com.cn
..@openend.se>> wrote: In a message of Fri, 24 Jul 2015 09:37:35 +0800, "chenc...@inhand.com.cn <mailto:chenc...@inhand.com.cn>" write s: >hi: >I'm Needing to get python 2.7.10 to cross compile correctly for an ARM >embedded device. Whe

install pip

2015-08-31 Thread chenc...@inhand.com.cn
hi: I cross compiled python2.7.10 and install python on my embedded device. But now, I may install pip on my embedded device. So, how can i do that? -- https://mail.python.org/mailman/listinfo/python-list

pip

2015-08-31 Thread chenc...@inhand.com.cn
hi: Python 2.7.9 and later (on the python2 series), and Python 3.4 and later include pip by default.But i can not find it in python2.7.10 package. What's the matter? How can i install pip on my Embedded device? -- https://mail.python.org/mailman/listinfo/python-list

install pip

2015-09-07 Thread chenc...@inhand.com.cn
hi: I cross compiled python2.7.10 and install python on my embedded device. But now, I may install pip on my embedded device. So, I did it as follow: 1>I execute cmd:python -m ensurepip. It ocuurs errors as follow: Traceback (most recent call last): File "/usr

python---configure file

2015-09-07 Thread chenc...@inhand.com.cn
hi: I download the python2.7.10 package and execute cmd: ./configure --help.It is messages as follow: Optional Packages: --with-PACKAGE[=ARG]use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-universal-archs=ARCH

python---configure file

2015-09-07 Thread chenc...@inhand.com.cn
hi: I download the python2.7.10 package and execute cmd: ./configure --help.It is messages as follow: Optional Packages: --with-PACKAGE[=ARG]use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-universal-archs=ARCH

setenv

2015-09-09 Thread chenc...@inhand.com.cn
hi: This is not a question about python. It is a shell question. I'm sorry to bother you. But I really want to know it. As follow: I want to set a shell environment variable:PYTHONPATH. When i executeecho $PYTHONPATH, it is value:/usr/lib/python/Lib:/usr/lib/python/lib/python27.zip:/var/a

numpy

2015-09-10 Thread chenc...@inhand.com.cn
hi: I have to use numpy package. My python runs on my embedded arm device. So, how do i cross compile numpy? -- https://mail.python.org/mailman/listinfo/python-list

Re: numpy

2015-09-10 Thread chenc...@inhand.com.cn
hi, Laura: My embedded arm device supports floating point operation. I have to use numpy and pandas packages. But now, I do not known how to cross compile numpy and pandas packages? On 09/11/2015 12:05 AM, Laura Creighton wrote: In a message of Thu, 10 Sep 2015 18:11:08 +0800, "

python how to load multiple C libraries

2015-09-16 Thread chenc...@inhand.com.cn
hi: I encountered a problem. I use ctypes load multiple C libraries, but the libraries have dependence each other.So, how can i load these libraries. For example, I have two libraries:A、B, but A depends on B, B depends on A. So how do I load them? Is there anybody know how to do it? -- http

Re: python how to load multiple C libraries

2015-09-16 Thread chenc...@inhand.com.cn
/16/2015 05:41 PM, Chris Angelico wrote: On Wed, Sep 16, 2015 at 7:35 PM, chenc...@inhand.com.cn wrote: I encountered a problem. I use ctypes load multiple C libraries, but the libraries have dependence each other.So, how can i load these libraries. For example, I have two libraries:A、B, but A

Re: python how to load multiple C libraries

2015-09-17 Thread chenc...@inhand.com.cn
...} in _ctypes.c file. /* add RTLD_LAZY and RTLD_NOW definitions*/ PyModule_AddObject(m, "RTLD_LAZY", PyInt_FromLong(RTLD_LAZY)); PyModule_AddObject(m, "RTLD_NOW", PyInt_FromLong(RTLD_NOW)); So, Is there anybody know how the CDLL can accept mode flag:RTLD_LAZY? On 09/16/2015

libevent-python

2015-10-08 Thread chenc...@inhand.com.cn
hi: I use libevent-python package currently. I read the file eventmodule.c, but I can not understand the function: static EventObject *EventBase_CreateEvent(EventBaseObject *self, PyObject *args, PyObject *kwargs) { EventObject *newEvent = NULL; newEvent = (EventObject *)Event_Ne