Skip to content

ModuleNotFoundError: No module named 'openai.datalib' on main branch #403

@harupy

Description

@harupy

Describe the bug

Building the following Dockerfile with docker build .:

FROM python:3.8

RUN pip install git+https://github.com/openai/openai-python
RUN python -c 'from openai.api_resources.embedding import Embedding'

gives:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/local/lib/python3.8/site-packages/openai/__init__.py", line 19, in <module>
    from openai.api_resources import (
  File "/usr/local/lib/python3.8/site-packages/openai/api_resources/__init__.py", line 7, in <module>
    from openai.api_resources.embedding import Embedding  # noqa: F401
  File "/usr/local/lib/python3.8/site-packages/openai/api_resources/embedding.py", line 6, in <module>
    from openai.datalib.numpy_helper import assert_has_numpy
ModuleNotFoundError: No module named 'openai.datalib'

To Reproduce

See above

Code snippets

See above

OS

Linux

Python version

3.8

Library version

main

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions