How to run a python script on Go : <p>I have got a python script (that's fairly complicated, but i'll just put the bare minimum here) that is something like this </p>

<pre><code>from cassandra.cluster import Cluster

cluster = Cluster()

session = cluster.connect('mykeyspace')

ta = session.execute(somecqlstatement)

print("The column names of the table are: ", ta.column_names)
</code></pre>

<p>I want to run this on Go - preferably not being read as a file but storing it as a string and executing it. </p>

<p>I looked into the following source </p>

<ol>
<li><a href="https://stackoverflow.com/questions/27021517/go-run-external-python-script">Go: Run External Python script</a></li>
<li><a href="https://forum.golangbridge.org/t/how-to-execute-python-code-without-having-to-write-it-to-a-file/6359/2" rel="nofollow noreferrer">https://forum.golangbridge.org/t/how-to-execute-python-code-without-having-to-write-it-to-a-file/6359/2</a></li>
</ol>

<p>Nothing seems to be working, as they throw a <code>FATA[0000] exit status 1</code></p>
