Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: No symbol __error found in library libc.so.6 when importing gevent in PyPy 1.9.0 #1

Open
nessita opened this issue Sep 28, 2012 · 0 comments

Comments

@nessita
Copy link

nessita commented Sep 28, 2012

I have a pypy 1.9.0 virtualenv where I copied the gevent/ folder from this project.

I have libev4 installed as follows:

user@host:~$ apt-cache policy libev4
libev4:
Installed: 1:4.11-1

The libc6 version is: 2.15-0ubuntu10

I tried to import gevent and I'm getting the following traceback:

(test-pypy-env)user@host:~$ pypy
Python 2.7.2 (341e1e3821ff, Jun 07 2012, 15:38:48)
[PyPy 1.9.0 with GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
And now for something completely different: ``PyPy development: the art of
waiting''

import gevent
Traceback (most recent call last):
File "", line 1, in
File "/home/user/test-pypy-env/site-packages/gevent/init.py", line 40, in
from gevent.hub import get_hub
File "/home/user/test-pypy-env/site-packages/gevent/hub.py", line 7, in
from gevent import ctypes_core as core
File "/home/user/test-pypy-env/site-packages/gevent/ctypes_core.py", line 694, in
standard_c_lib.error.restype = ctypes.POINTER(ctypes.c_int)
File "/home/user/projects/pypy/pypy-1.9/lib-python/2.7/ctypes/__init
.py", line 371, in getattr
func = self.getitem(name)
File "/home/user/projects/pypy/pypy-1.9/lib-python/2.7/ctypes/init.py", line 376, in getitem
func = self._FuncPtr((name_or_ordinal, self))
File "/home/user/projects/pypy/pypy-1.9/lib_pypy/_ctypes/function.py", line 250, in init
ptr = self._getfuncptr([], ctypes.c_int)
File "/home/user/projects/pypy/pypy-1.9/lib_pypy/_ctypes/function.py", line 421, in _getfuncptr
self._ptr = cdll.getfunc(self.name, ffi_argtypes, ffi_restype)
AttributeError: No symbol __error found in library libc.so.6

I also tried running the same example with the --jit off option, but I'm getting the same error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant