3

When I tried to import module dateparser, it gave me this error

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

Is there a way to fix this?

Simon Chang
  • 69
  • 2
  • 9

1 Answers1

3

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

find . -name "*.pyc" -exec rm -f {} \;
D.Morrissey
  • 114
  • 8