mbraceproject / MBrace.StarterKit

A collection of demos and tutorials for MBrace
http://mbrace.io
57 stars 34 forks source link

kmeans sample giving an error #3

Closed dsyme closed 10 years ago

dsyme commented 10 years ago

The kmeans.fsx sample is giving me an error, VS2013

---> (Inner Exception #3) Nessos.FsPickler.NonSerializableTypeException: Type 'System.IO.ReadLinesIterator' is not serializable.

It looks like it's relate to this:

let parseFile name =
    File.ReadLines name
    |> Seq.collect (fun line -> line.Trim().Split(' '))
    |> Seq.filter(fun x -> x <> "")
    |> Seq.map (float)
    |> dimmed dim
krontogiannis commented 10 years ago

Fixed in 3a9d17e8ff.