Dynamic member lookup was implemented in Swift 4.2.
Why is it then that when I do Python.import I'm getting an error?
I found a way to work around this by installing the TensorFlow toolchain and configuring the build system to use "Legacy" (more details at this SO answer) but I'm if that's the right path to go?
I'm hoping to use our python based code base in a new Swift project.
EDIT
Xcode 10.1
Maxims-MacBook-Pro:ontology-backend maximveksler$ swift --version
Apple Swift version 4.2.1 (swiftlang-1000.11.42 clang-1000.11.45.1)
Target: x86_64-apple-darwin18.0.0
If you need Python interoperability but not the TensorFlow capabilities, I'd suggest using the official swift.org toolchain and use @pvieito's PythonKit as a SwiftPM package.
TensorFlow toolchains come from the tensorflow branch which is in flux and not stable.