Skip to content

v0.4.2 — Windows charmap (cp1252) hotfix

Choose a tag to compare

@krisss0mecom krisss0mecom released this 09 May 19:09
· 1 commit to main since this release

Hotfix for Windows users

v0.4.1 had a Unicode bug that prevented PDB generation on default Windows console (cp1252 charmap encoding):

(3D PDB generation skipped: 'charmap' codec can't encode character '→')

The auto-PDB code path raised on a arrow in a print statement, before the file was written.

Fix

  • Replace Unicode arrows () with ASCII -> in user-facing prints
  • Replace Å (Angstrom) with A in unit labels
  • Replace with Ca in inline messages
  • Add sys.stdout.reconfigure(encoding="utf-8", errors="replace") on Windows for extra safety

Result: PDB now generates correctly on all platforms (tested with cp1252 strict-encoding simulation).

Update

pip install -U alphadynamics    # → 0.4.2

Same auto-PDB behavior as v0.4.1, just doesn't crash on Windows.