We found out it needs module 'select' to load '_pycparser' module: >>>> from cffi import _pycparser Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/yicong.hyc/pypy/lib_pypy/cffi/_pycparser/__init__.py", line 13, in <module> from subprocess import Popen, PIPE File "/home/yicong.hyc/pypy/lib-python/2.7/subprocess.py", line 427, in <module> import select ImportError: No module named select
Could we build _pycparser into libpypy.so, so that we don't need 'select' to load the module? On Fri, May 22, 2015 at 11:55 AM, Yicong Huang <hengha....@gmail.com> wrote: > Hi, > > I built pypy with some modules cut off, but met the errors as below for > executing python scripts: > > debug: OperationError: > debug: operror-type: ImportError > debug: operror-value: No module named pycparser > > Which modules do pycparser depends on? > I found the module might in /lib_pypy/cffi/_pycparser. But I did not > exclude cffi module, and it did not have any problems of importing cffi. > > The modules I cut of are: > ssl > bz2 > crypt > _csv > _minimal_curse > fcntl > _io > mmap > parser > pyexpat > select > _socket > _ssl > zlib > pwd > > And the list of used modules for the build: > [usemodules] > __pypy__ = True > _ast = True > _cffi_backend = True > _codecs = True > _collections = True > _continuation = True > _hashlib = True > _locale = True > _lsprof = True > _md5 = True > _minimal_curses = True > _multibytecodec = True > _multiprocessing = True > _pickle_support = True > _pypyjson = True > _random = True > _rawffi = True > _sha = True > _sre = True > _testing = True > _weakref = True > array = True > binascii = True > cStringIO = True > cmath = True > cppyy = True > cpyext = True > errno = True > gc = True > imp = True > marshal = True > math = True > micronumpy = True > operator = True > signal = True > struct = True > symbol = True > termios = True > thread = True > time = True > token = True > unicodedata = True > zipimport = True >
_______________________________________________ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev