[pypy-issue] [issue773] pyre2 fails import

Federico Scrinzi tracker at bugs.pypy.org
Thu Jun 30 14:13:38 CEST 2011


New submission from Federico Scrinzi <fox91 at anche.no>:

pyre2 is a Python wrapper for the google re2 lib.
http://code.google.com/p/re2/

There are different wrappers available:
this is in cython so i don't have any hope of seeing it running under pypy
https://github.com/axiak/pyre2

This is in python+C extension
https://github.com/facebook/pyre2

It builds without any problem but when i try to import the module i get:

>>>> import re2
 Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/opt/pypy/site-packages/re2.py", line 33, in <module>
    import _re2
 ImportError: function init_re2 not found in library
 /opt/pypy/site-packages/_re2.pypy-15.so


System info:
└> pypy --version
Python 2.7.1 (65b1ed60d7da, Jun 27 2011, 02:07:45)
[PyPy 1.5.0-alpha0 with GCC 4.4.3]

└> gcc -v
Using built-in specs.
COLLECT_GCC=/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.2/gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/4.5.2/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.5.2/work/gcc-4.5.2/configure
--prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.2
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/include
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.2
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.2/man
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.2/info
--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/include/g++-v4
--host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec
--disable-fixed-point --without-ppl --without-cloog --disable-ppl-version-check
--disable-lto --enable-nls --without-included-gettext --with-system-zlib
--disable-werror --enable-secureplt --enable-multilib --enable-libmudflap
--disable-libssp --enable-libgomp --enable-cld
--with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/4.5.2/python
--enable-checking=release --disable-libgcj --enable-languages=c,c++,fortran
--enable-shared --enable-threads=posix --enable-__cxa_atexit
--enable-clocale=gnu --with-bugurl=http://bugs.gentoo.org/
--with-pkgversion='Gentoo 4.5.2 p1.0, pie-0.4.5'
Thread model: posix
gcc version 4.5.2 (Gentoo 4.5.2 p1.0, pie-0.4.5) 

└> uname -a
Linux MachI 2.6.39.2-fox #1 SMP PREEMPT Mon Jun 27 23:15:58 CEST 2011 x86_64
Intel(R) Core(TM)2 CPU T7400 @ 2.16GHz GenuineIntel GNU/Linux

Is it a pypy bug? It's possibile to use pyre2 under pypy (maybe using another
wrapper)?

----------
messages: 2709
nosy: fox, pypy-issue
priority: bug
status: unread
title: pyre2 fails import

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue773>
________________________________________


More information about the pypy-issue mailing list