The co-defendant in the the Tulisa Contostavlos trial has also walked free after the judge decided the case against him could not proceed.
Rapper Michael Coombs, whose stage name is Mike GLC, had pleaded guilty before the trial to supplying half a gram of cocaine to undercover reporter Mazher Mahmood.
On hearing the decision the 36-year-old reportedly wept and hugged his defence barrister, Jeremy Dein QC.
More top news
His comments followed the announcement of £620 million in financing to support projects and UK exports to Africa.
The 68-year-old is leaving this summer after seven years in the role.
Police were called to the first floor flat and were confronted by the 6-8ft snake. Residents had no idea how it came to be there.