I got this error while running the Django app file that I had downloaded from GitHub. How can I solve this problem?
Solution 2: Reinstalling the package – The error is just because of the temporary file. If we reinstall the package, the new temp file will be generated. In this way also we can get rid of the bad magic number-related errors.
Please go to your home directory. And then:
sudo find . -name "*.pyc" -exec rm -f {} \;
Finally, I found the answer, The project has .pyc files, which holds the previous version information and time date, so this error. After deleting those files I got the output.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With