I'm trying to execute a Python program on Linux which I first created on Windows, but the following error is shown:
metadata = eval(metafile.read())
File "< string >", line 1
@
@
@
@
@
@
Any idea?
I'm trying to execute a Python program on Linux which I first created on Windows, but the following error is shown:
metadata = eval(metafile.read())
File "< string >", line 1
@
@
@
@
@
@
Any idea?
If you don't have
dos2unix
, here is some python code you can use instead. Just put this in dos2unix.py, and runpython dos2unix.py yourfile.py
above:This code was copied from Python dos2unix one liner.