I have a compiled Python script called merlin.pyc which when I run it via a bash script in Linux returns:
RuntimeError: Bad magic number in .pyc file
I understand that this can be caused by using different versions of Python to compile the .py into .pyc and to the version that you run the .pyc with. I however complied merlin.py into merlin.pyc on the same Python build on the same platform a the one I am trying to run merlin.pyc with. I complied and am trything to run the python code using Python 2.7.13.
Are there any other possible causes for a bad magic number?
Edit
Please see below for output of dd if=merlin.pyc bs=8 count=1 | hexdump -C
: