Open Source Development

Power Open Source Development

Explore the open source tools and capabilities for building and deploying modern applications on IBM Power platforms including AIX, IBM i, and Linux.


#Power


#Power

 View Only
Expand all | Collapse all

Python module bsddb seems to be missing library on 2.7.15 level

  • 1.  Python module bsddb seems to be missing library on 2.7.15 level

    Posted Mon March 04, 2019 12:09 AM

    Originally posted by: UGP1_Alan_Collins


    Hi,

    We are currently upgrading python from the toolbox from 2.7.13  level to 2.7.15. The module "bsddb" is required to be imported.

     

    From 2.7.13-1 from the toolbox (works):

    $ python
    Python 2.7.13 (default, Oct 17 2017, 05:37:56) [C] on aix6
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import bsddb
    >>>

     

    After upgrade to 2.7.15-3 from the toolbox:

    $ python
    Python 2.7.15 (default, Jan  2 2019, 18:23:13)
    [GCC 6.3.0] on aix6
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import bsddb
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "/opt/freeware/lib/python2.7/bsddb/__init__.py", line 67, in <module>
        import _bsddb
    ImportError: No module named _bsddb
    >>>

     

    Comparing the versions, this looks to be the following being missing on 2.7.15-3 level in the toolbox:

    /opt/freeware/lib/python2.7/lib-dynload/_bsddb.so

     

    Copying this file from a 2.7.13 installation allows the module to import. 

     

    We have some applications that require this module, so this is currently breaking for us. 

     

    Could you please advise if this is as expected on the latest level or if there is a packaging issue?

     

    Thanks,

    Alan


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 2.  Re: Python module bsddb seems to be missing library on 2.7.15 level

    Posted Mon March 04, 2019 02:01 AM

    Originally posted by: AyappanP


    bsddb is deprecated since Python 2.6  --> https://docs.python.org/2/library/bsddb.html

    The python2 build will still produce this module if berkeley db 4 is used during the build. 

    Recently we have moved to db version 6.2.32  and started using it for the future builds. 

    That's the reason you are seeing it in 2.7.13 but not in 2.7.15.

    I would recommend to find & use other alternatives rather than using the deprecated one. 

     


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 3.  Re: Python module bsddb seems to be missing library on 2.7.15 level

    Posted Mon March 04, 2019 06:22 PM

    Originally posted by: UGP1_Alan_Collins


    Thanks a lot for the prompt response.

     

    We will look at moving the application to use a different module and use the older python version in the meantime. 

     

    Appreciate the help. 

     

    Thanks,

    Alan


    #AIXOpenSource
    #AIX-Open-Source-Software