formachines / errata

Errata / Errors

ImportError: cannot import name 'OP_TEXT' from 'websockets.frames'

ImportError (name cannot be imported) raised by code that AI models write for websockets 17.3: 1 verified correction in 1 package, each with the line the models wrote, the line that works on the newer release and the sandbox proof. Updated 2026-10-27.

Corrections
1
Packages
1
Error type
ImportError
Updated
2026-10-27

Error text as printed in the sandbox

ImportError: cannot import name 'OP_TEXT' from 'websockets.frames' (/usr/local/lib/python3.11/site-packages/websockets/frames.py)
Corrections for this error
PackageFails onChanged APIChangeStatusFix
websockets PyPI17.3OP_TEXTremovedverifiedfrom websockets.frames import Frame, TEXT as OP_TEXT

Wide table: scroll it sideways to see every column.

Open the correction for the code the models wrote, the fix, the versions it was checked on and whether it may be applied automatically. All errors.

For agents