[pypy-dev] No Module _bsddb

wpf wpf710 at gmail.com
Tue Jun 10 05:31:36 CEST 2014


That really help!!

Thanks a lot.


On Tue, Jun 10, 2014 at 11:08 AM, Christopher Armstrong <
radix at twistedmatrix.com> wrote:

> On June 9, 2014 at 9:15:30 PM, wpf (wpf710 at gmail.com) wrote:
>
> Hi Benjamin
>
>     I understand that.
>
>     anyway, when I checking the code as below
>
>  norman at norman-ThinkCentre-M92P:/usr/lib/pypy/lib-python/2.7/bsddb$ which
> pypy
> /usr/bin/pypy
>  norman at norman-ThinkCentre-M92P:/usr/lib/pypy/lib-python/2.7/bsddb$ ls
> -lt /usr/bin/pypy
> lrwxrwxrwx 1 root root 22 May 20 19:57 /usr/bin/pypy ->
> ../lib/pypy/bin/pypy-c
>  norman at norman-ThinkCentre-M92P:/usr/lib/pypy/lib-python/2.7/bsddb$ pwd
> /usr/lib/pypy/lib-python/2.7/bsddb
>  norman at norman-ThinkCentre-M92P:/usr/lib/pypy/lib-python/2.7/bsddb$ ls
> -lt __init__.py
>  -rw-r--r-- 1 root root 15988 May 20 10:48 __init__.py
>
> from the code of __init__.py , it's still trying to load _bsddb module,
>  you know ,I am a newbie to python, did I misunderstand something?
>
> and also I will try to understand why my code(actually ,it's openstack tox
> env) will trigger that.
>
>
>
>
> This may be happening because you’ve run tests with normal python and then
> switched to pypy. Some of the testing tools used by openstack create a
> .testrepository directory with data files based on bsddb if it’s available,
> but use something else if it’s not. Try deleting your .testrepository
> directory and trying again.
>
>
> --
> Christopher Armstrong
> http://twitter.com/radix
> http://wordeology.com/
>
>
>
>
> On Mon, Jun 9, 2014 at 1:29 PM, Benjamin Peterson <benjamin at python.org>
> wrote:
>
>>  On Sun, Jun 8, 2014, at 22:18, wpf wrote:
>> > Hi All
>> >
>> >   I am trying to use the Pypy under Ubuntu 12.04, and pypy version as
>> >   below
>> >
>> > ~$ pypy --version
>> > Python 2.7.6 (2.3+dfsg-1~ppa0, May 20 2014, 09:11:18)
>> > [PyPy 2.3.0 with GCC 4.6.3]
>> >
>> > -$ python --version
>> > Python 2.7.3
>> >
>> > and when I  try to import _bsddb in pypy, it complains that 'No module
>> > named _bsddb'
>> >
>> > but it works for python.
>> >
>> > so how to resolve it? I 'd tried to google it ,but nothing useful found.
>>
>>  PyPy doesn't support the bsddb module.
>>
>
>
>
> --
> 祝好!
>
>    王鹏飞
>     msn: dragoninfield at hotmail.com
>     mobile: 13681265240
> _______________________________________________
> pypy-dev mailing list
> pypy-dev at python.org
> https://mail.python.org/mailman/listinfo/pypy-dev
>
>


-- 
祝好!

   王鹏飞
    msn: dragoninfield at hotmail.com
    mobile: 13681265240
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20140610/2d0b8e3a/attachment-0001.html>


More information about the pypy-dev mailing list