I'm running Python 3.4.3 on Ubuntu 15.04 and just encountered a very strange problem when trying to use the input()
function.
To isolate the problem Iv'e created a file called test.py contaning:
print(input())
When running it, I receive this error:
$ python3 test.py
Fatal Python error: Py_Initialize: can't initialize sys standard streams
ImportError: bad magic number in 'io': b'\x03\xf3\r\n'
[1] 8599 abort (core dumped) python3 test.py
Does anyone know what's going on?