Skip to content

ImportError: cannot import name 'ComputerCallOutput' from 'openai.types.responses' #2231

Closed
@guunergooner

Description

@guunergooner

Confirm this is an issue with the Python library and not an underlying OpenAI API

  • This is an issue with the Python library

Describe the bug

While using the openai-python SDK, I attempted to import the ComputerCallOutput data structure from openai.types.responses, but encountered the following error:

Traceback (most recent call last):
  File "/Users/gooner/Workbench/repo/github.com/browser-use/browser-use/apiserver.py", line 47, in <module>
    from openai.types.responses import ComputerCallOutput
ImportError: cannot import name 'ComputerCallOutput' from 'openai.types.responses' (/Users/gooner/Workbench/repo/github.com/browser-use/browser-use/.venv/lib/python3.11/site-packages/openai/types/responses/__init__.py)

It seems that ComputerCallOutput is not available in the openai.types.responses module, possibly due to a mismatch between the documentation and the codebase, or the data structure not being properly exposed.

To Reproduce

  • Steps to Reproduce

    • Install the openai-python SDK (e.g., via pip install openai).
    • Create a Python script with the following code:
      from openai.types.responses import ComputerCallOutput
    • Run the script and observe the error.
  • Environment
    Operating System: macOS
    Python Version: 3.11
    OpenAI SDK Version: 1.67.0

Code snippets

from openai.types.responses import ComputerCallOutput

OS

macOS

Python version

Python 3.11.11

Library version

openai 1.67.0

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