Skip to content

Pyomo deadlock #3908

@simonhackler

Description

@simonhackler

Summary

When running pyomo with solve we sometimes hit this error:

raise DeveloperError("Deadlock closing capture_output")\npyomo.common.errors.DeveloperError: Internal Pyomo implementation error:\n 'Deadlock closing capture_output'\n Please report this to the Pyomo Developers."

    solver.options["log_file"] = log_path
    solver.options["output_flag"] = True
    solver.options["log_to_console"] = False
    result = solver.solve(model, tee=False)

Steps to reproduce the issue

I tried but can't reproduce the error. It happens only sometimes

Error Message

raise DeveloperError("Deadlock closing capture_output")\npyomo.common.errors.DeveloperError: Internal Pyomo implementation error:\n 'Deadlock closing capture_output'\n Please report this to the Pyomo Developers."

Information on your system

Pyomo version: 6.10
Python version: 3.13
Operating system: ubuntu
How Pyomo was installed (PyPI, conda, source): pypi (uv)
Solver (if applicable): highs

Additional information

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions