}

SOLVED: ImportError: bad magic number in : b'\x03\xf3\r\n'

Usually doing a clean on the pyc files solves this issue:

find . -name "*.pyc" -exec rm -f {} \;

The command above will delete all pyc files recursively.

Leonardo Lazzaro

Software engineer and technical writer. 10+ years experience in DevOps, Python, and Linux systems.

More articles by Leonardo Lazzaro