← Observatory

PyYAML 6.0.4

The PyYAML repair.

The official tutorial missed a required argument. Day One reproduced the error twice, verified a one-line fix, and rebuilt the working example in a separate Studio.

Recorded on Fly · 2026-11-29

One line changed.

On PyYAML 6.0.4, the original call produced TypeError: load() missing 1 required positional argument: 'Loader'. Through the Fly Ollama connector, deepseek-v4.1-flash proposed this change.

--- documented/example.py
+++ patched/example.py
@@ line 2 @@
-result = yaml.load("""
+result = yaml.safe_load("""

Two clean runs and a separate Studio replay returned the tutorial’s list.

['Hesperiidae', 'Papilionidae', 'Apatelodidae', 'Epiplemidae']
Inspect all five runs →

Replay on this server.

This replay passed.

Original call

TypeError: load() missing 1 required positional argument: 'Loader'

Repaired call

['Hesperiidae', 'Papilionidae', 'Apatelodidae', 'Epiplemidae']
Run again →

Try your own input.

Your download includes the SDK and my_example.py. Extract it and run python3 -S my_example.py to repeat or edit your example offline.

Take the example with you.

Download and extract the folder, then run this command inside it with Python 3.12. The SDK is included, so the command works offline.

python3 -S example.py

On Windows use py -3.12 in place of python3.

To try your own input, add another item to the YAML list in example.py and run it again.

What happened after the guide changed?

Watch compared an archived tutorial with the current page and flagged a changed cookbook link. After review, an operator ran the tutorial’s existing example on a clean Rookie. It failed twice. One Ollama call proposed the fix, and a separate Studio reproduced the expected list.

In Studio, a second program parsed two new items. It returned ['first', 'next'] before and after Watch checked the source again.

Inspect the Watch events and five runs →

Return to your own workspace.

In a separate rehearsal, a signed-in owner claimed the repaired example on a private Fly Studio and added a Python program. After enabling Watch and reopening the request, the program still printed ['working', 'after reopening']. Its file checksum also matched.

Inspect the claim, edit and release →

Try the Markdown first run →