When I try running the swift REPL using swift
or xcrun swift
, I get the following Python error:
Hristos-MacBook-Pro:~ Hristo$ swift
Fatal Python error: PyThreadState_Get: no current thread
Abort trap: 6
It looks like Swift's REPL was written in Python. I recently installed pip
, which might have broken something. I am using Xcode 6.1 (A1052d) and OS X Yosemite. What could be the case?
I changed the active python version (previously python 2.7 installed via macports) and it worked: