Skip to content

Python Docker images are missing dbm.gnu support #151

@sebk-666

Description

@sebk-666

Hi,
I tested multiple of the official Python 3.x Docker images and they all are missing support for dbm.gnu.
While there is a <lib>/dbm/gnu.py file that imports _gdbm, the corresponding _gdbm.cpython.*.solibrary in <lib>/lib-dynload/ is missing.

I tested on python:3.4, python:3.5, python:3.6, python:3.4-alpine - all with the same result.

# python3
Python 3.4.5 (default, Sep 24 2016, 05:29:30)
[GCC 4.9.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import dbm.gnu
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.4/dbm/gnu.py", line 3, in <module>
    from _gdbm import *
ImportError: No module named '_gdbm'

Sebastian

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions