Skip to main content
lcpy gen never overwrites silently. A directory named after the problem already exists under the output directory, so generation stops.

Reproduce

Fix

  • Generate somewhere else: pass a different output directory, lcpy gen -n 1 -o practice/week-1.
  • Regenerate on purpose: add --force. The generated files replace whatever is there, including your edits. If the directory holds a solution you want, copy solution.py out first, regenerate, then copy it back.
Not this error? Every fix lives on Troubleshooting.
Last modified on August 31, 2026