Created attachment 363364 [details] Build log In compile phase for pypy2.0: Traceback (most recent call last): File "app_main.py", line 72, in run_toplevel File "setup.py", line 3, in <module> from pexpect import __version__ File "/tmp/portage/dev-python/pexpect-3.0/work/pexpect-3.0/pexpect/__init__.py", line 85, in <module> raise ImportError(str(err) + ''' ImportError: No module named ctypes_config_cache._resource_cache A critical module was not found. Probably this operating system does not support it. Pexpect is intended for UNIX-like operating systems. Is my pypy broken or did you add it without testing?
Looking closer at it, it seems to fail at import of resource module [1]. So it's most likely our pypy being broken somehow ;/. [1]:http://docs.python.org/2/library/resource.html
In progress here?
+ 06 Dec 2013; Justin Lecher <jlec@gentoo.org> pexpect-3.0.ebuild, + metadata.xml: + Drop pypy2_0 support, #491404 +
i could compile and import pexpect without problem http://bpaste.net/show/189957/ pexpect-3.1 pypy-2.0
I am not able to install it. Using pypy-bin-2.3.1, trying to install pexpect in virtualenv ( virtualenv-1.11.6 ) yiels the same error. I did not try to emerge it as I don't need it globally and don't know how to force pypy into its PYTHON_TARGETS. % pip install pexpect Downloading/unpacking pexpect Downloading pexpect-3.3.tar.gz (132kB): 132kB downloaded Running setup.py (path:/data/s3env/build/pexpect/setup.py) egg_info for package pexpect Traceback (most recent call last): File "app_main.py", line 75, in run_toplevel File "app_main.py", line 581, in run_it File "<string>", line 17, in <module> File "/data/s3env/build/pexpect/setup.py", line 3, in <module> from pexpect import __version__ File "pexpect/__init__.py", line 86, in <module> raise ImportError(str(err) + ''' ImportError: No module named ctypes_config_cache._resource_cache A critical module was not found. Probably this operating system does not support it. Pexpect is intended for UNIX-like operating systems. Complete output from command python setup.py egg_info: Traceback (most recent call last): File "app_main.py", line 75, in run_toplevel File "app_main.py", line 581, in run_it File "<string>", line 17, in <module> File "/data/s3env/build/pexpect/setup.py", line 3, in <module> from pexpect import __version__ File "pexpect/__init__.py", line 86, in <module> raise ImportError(str(err) + ''' ImportError: No module named ctypes_config_cache._resource_cache
installing dev-python/pexpect-3.3 with python_targets_pypy works fine with pypy 2.3.1 Maybe it's time to close this bug and readd the pypy support to the ebuild?
+ 26 Oct 2014; Justin Lecher <jlec@gentoo.org> pexpect-3.3.ebuild: + add pypy support, #491404 +
I'm getting the same error on both of my systems with pypy-bin-2.3.1.
(In reply to Michał Górny from comment #8) > I'm getting the same error on both of my systems with pypy-bin-2.3.1. works for me on native pypy, just rechecked.
Could you host a binpackage of your native pypy for comparison? Alternatively, compare what you get with pypy and pypy-bin :).
(In reply to Michał Górny from comment #10) > Could you host a binpackage of your native pypy for comparison? > Alternatively, compare what you get with pypy and pypy-bin :). http://dev.gentoo.org/~jlec/paste/pypy-2.3.1-r1.tbz2
So it seems that our pypy-bin is incomplete… Only in ./include: numpy Only in ./lib_pypy/ctypes_config_cache: _locale_64_.py Only in ./lib_pypy/ctypes_config_cache: _locale_cache.py Only in ./lib_pypy/ctypes_config_cache: _resource_64_.py Only in ./lib_pypy/ctypes_config_cache: _resource_cache.py
Using emerge output: <<< obj /usr/lib64/pypy/lib_pypy/ctypes_config_cache/_resource_cache.pyc <<< obj /usr/lib64/pypy/lib_pypy/ctypes_config_cache/_resource_cache.py <<< obj /usr/lib64/pypy/lib_pypy/ctypes_config_cache/_resource_64_.pyc <<< obj /usr/lib64/pypy/lib_pypy/ctypes_config_cache/_resource_64_.py <<< obj /usr/lib64/pypy/lib_pypy/ctypes_config_cache/_locale_cache.pyc <<< obj /usr/lib64/pypy/lib_pypy/ctypes_config_cache/_locale_cache.py <<< obj /usr/lib64/pypy/lib_pypy/ctypes_config_cache/_locale_64_.pyc <<< obj /usr/lib64/pypy/lib_pypy/ctypes_config_cache/_locale_64_.py <<< obj /usr/lib64/pypy/include/numpy/old_defines.h <<< obj /usr/lib64/pypy/include/numpy/npy_3kcompat.h <<< obj /usr/lib64/pypy/include/numpy/arrayobject.h
+*pypy-bin-2.3.1-r2 (04 Nov 2014) + + 04 Nov 2014; Michał Górny <mgorny@gentoo.org> +pypy-bin-2.3.1-r2.ebuild, + -pypy-bin-2.3.1-r1.ebuild, pypy-bin-2.4.0.ebuild: + Rebuild ctypes config cache to fix resources module, bug #491404. Install + missing numpy headers.